- python 2.7 - several python packages listed in requirements.txt - connection to a mqtt server, tested with mosquitto
Specific prerequisites for Windows 8.1
- hdparm
- smartmoontools
- bash, nohup, sudo Ensure hdparm.exe and smartctl.exe are added in the PATH
Specific prerequisites for Linux
- Enable sudo access for hdparm and smartctl
- virtualenv usage recommended
- for pyserial, set access rights to open /dev/ttyUSBx device: sudo usermod -a -G dialout $USER
On Linux, grant execute rights and run setup.sh.bat. This will install virtualenv and setup a python venv context with all required packages
Run startserver.sh OR python run_all.py Run stopserver.sh to stop the application - db_disk or db_mem parameters specify where the database file will be created. for db_disk option, db is created in the current path. for db_mem option, db is created in /tmp folder, on constrained devices (PI, BBB) this is usually mapped to ramfs. Note that db content will be lost at restarts if db is created in ram - model_auto_update, automatically updates db schema if changes are detected (implies drop tables and default values) https://github.com/woudt/pyRFXtrx