(05-01-2020, 01:53 PM)romain Wrote:(05-01-2020, 01:50 PM)Tim Curtis Wrote: Those files plus you may need to add a row to cfg_system to store the setting.many thanks, I'll see if I can do something
Heres the row for the current LED state seting
Code:pi@rp3:~ $ sqlite3 /var/local/www/db/moode-sqlite3.db "SELECT * FROM cfg_system WHERE param='led_state'"
130|led_state|1,1
if you need to add a new row then run the command below substituting for new_param_name and default_value.
Code:sqlite3 /var/local/www/db/moode-sqlite3.db "INSERT INTO cfg_system VALUES (138, 'new_param_name', 'default_value')"
Hello Tim,
sorry for the late reply, I haven't had the time to work on this until today.
I've finished adding the mount status feature to the moOde interface and it works.
The new parameter name is "mount_status", possible values are 0 (disabled, by default) or 1 (enabled).
If you enable the mount status feature, LED0 and LED1 toggle buttons are hidden. If you disable the mount status feature, LED0 and LED1 toggle buttons are displayed again and original LEDs configuration is restored.
Do you want me to send you the 3 modified files (worker.php, sys-config.php and sys-config.html) ?