Universite-Gustave-Eiffel / Rail4Earth

OnoSensor (Open Noise Sensor) empowering communities through complete noise monitoring — From acquisition to distributed networked storage and visualization.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Update zero_trigger.py to load configuration file from home directory… #53

Closed Nitnelav closed 4 months ago

Nitnelav commented 4 months ago

… if it exists, otherwise create a symlink and load from specified file

to modify a config locally :

pi@rpi-XXX:~ $ cd .noisesensor
pi@rpi-XXX:~/.noisesensor $ mv zerotrigger_config.json zerotrigger_config.json.old
pi@rpi-XXX:~/.noisesensor $ cp zerotrigger_config.json.old zerotrigger_config.json
pi@rpi-XXX:~/.noisesensor $ nano zerotrigger_config.json

to go back to the standard config, just delete ~/.noisesensor/zerotrigger_config.json

allways restart zerotrigger.service :

pi@rpi-XXX:~ $ sudo systemctl restart zerotrigger.service