Statistics for motd on spoorkuil
Go to file
Stefan Weijers 6cc5a298f8 Fixed time script to make use of -p option for uptime 2021-07-31 13:58:42 +02:00
.gitignore Initial commit 2021-07-24 18:54:53 +02:00
README.md Deleted useless start.sh file, added author notes to all files, create 2021-07-25 21:36:30 +02:00
config.py Deleted useless start.sh file, added author notes to all files, create 2021-07-25 21:36:30 +02:00
diskusage.py Deleted useless start.sh file, added author notes to all files, create 2021-07-25 21:36:30 +02:00
init.py last fix, added chmod call to init.py 2021-07-25 21:51:11 +02:00
services.py Deleted useless start.sh file, added author notes to all files, create 2021-07-25 21:36:30 +02:00
time.py Fixed time script to make use of -p option for uptime 2021-07-31 13:58:42 +02:00

README.md

SPRKLstats

Statistics for motd on Spoorkuil VM

Installation

  1. Clone repo via https/ssh
https://git.dehosting.club/stefanw/SPRKLstats.git
  1. Run init.py with escalated privileges
sudo python3 init.py
  1. Check if works correctly by running
run-parts /etc/update-motd > /dev/null

Usage

Configuration

All configuration is done in config.py

Adding mounting points

In order to add extra mounting points to be displayed in SPRKLstats, you have to edit the mountpoints variable. In the env class, there is a variable named mountpoints, simply add another entry into the list as a string.

Adding services

In order to add extra services to be displayed by SPRKLstats, you have to edit the services variable. This is a python dictionary, therefore there is specific syntax. A new entry is of the following syntax:

'service name': 'Display Name' 

Make sure entries are seperated with a comma.

Changing the text art

Simply change the name variable in the env class.