billmania / roboquest_core

The backend functionality for the RoboQuest project
1 stars 0 forks source link

Added monitoring of configuration.json to updater.py #57

Closed billmania closed 10 months ago

billmania commented 10 months ago

Version 10 of updater.py.

updater.py now monitors configuration.py, watching for: missing file; empty file; missing version attribute (proxy for corrupt file). If any of these conditions occur at startup, updater.py will attempt to restore configuration.json from the old version. Any time any of the conditions occur, updater.py will log them.

Tested on rasppi4b by manually: deleting the file; truncating the file; and removing the version attribute. At startup the file is restored. Others it's just logged.

rq_core Issue #56