Closed billmania closed 1 month ago
There are two separate scenarios to cover.
Writing a corrupted file This one must be detected at run-time by enhancing the ConfigFile.save_config() method.
Corruption of the file after writing This could be caused by any of improper halting of the RaspPi and failure of the microSD. This scenario is best detected by the updater.py script, before the docker containers are started.
updater.py doesn't use the configuration.json, but ensures a parseable version is in place
rq_core doesn't need configuration.json to start
**rq_ui does require the configuration.json
Reconfiguring allows the user to change the label on a widget, but this causes the configuration object to lose its "id" property.
Before writing the configuration.json file to the persistent storage, check a few things: