Skip to content

kaushleshchandel/stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stats

Instructions for LCD https://github.com/IOT-MCU/Mini-PiTFT-for-Raspberry-Pi/wiki/Usage

sudo apt-get update
sudo apt-get install python3-pip
sudo pip3 install adafruit-circuitpython-rgb-display
sudo pip3 install --upgrade --force-reinstall spidev

DejaVu TTF Font Raspberry Pi usually comes with the DejaVu font already installed, but in case it didn't, you can run the following to install it:

sudo apt-get install ttf-dejavu

Pillow Library We also need PIL, the Python Imaging Library, to allow graphics and using text with custom fonts. There are several system libraries that PIL relies on, so installing via a package manager is the easiest way to bring in everything:

sudo apt-get install python3-pil

NumPy Library A recent improvement of the RGB_Display library makes use of NumPy for some additional speed. This can be installed with the following command:

sudo apt-get install python3-numpy

Setup startup

create a file named app.sh

sudo nano app.sh

cd / cd home/pi sudo python app.py cd /

sudo chmod 755 app.sh

Log direectory

mkdir logs
sudo crontab -e

Add to the end of file

@reboot sh /home/pi/app.sh >/home/pi/logs/cronlog 2>&1

Use this to monitor over MQTT

https://github.com/Sennevds/system_sensors

git clone https://github.com/Sennevds/system_sensors.git
cd system_sensors
pip3 install -r requirements.txt
sudo apt-get install python3-apt

Edit settings_example.yaml in "~/system_sensors/src" to reflect your setup and save as settings.yaml:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages