HadrienLG / SailUI

Portable sailing instruments
MIT License
2 stars 0 forks source link

SailUI

Portable sailing instruments

Hardware

SERVER

MODULES

Raspberry OS configuration

Standard RaspberryOS installation

Default graphic installation

Install and configure InfluxDB and Grafana

Python 3 - Depandancies

sudo pip3 install -r requirements.txt

Install the depandancies as root solve an issue with busio module when run as systemd service

All librairies for Waveshare Sense Hat are copied in libs/ from: https://www.waveshare.com/wiki/Sense_HAT_(B)

Some adjustements have been made to run them easily in threads

SystemCTL

To run the server from boot: cp sailui_server.service /lib/systemd/system/sailui_server.service

Reload systemd daemon sudo systemctl daemon-reload

And enable your new service sudo systemctl enable sailui_server.service

You can check the service's status: sudo systemctl status sailui_server.service

Or see the journal: journalctl -u sailui_server.service

Autostart

To run Chrome at startup, edit 'sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart'

And add: @chromium-browser --start-fullscreen --start-maximized http://localhost:1880/ui