rdmtc / RedMatic

Node-RED packaged as Addon for the Homematic CCU3 and RaspberryMatic 🤹‍♂️
Apache License 2.0
535 stars 47 forks source link

Automatically delete corrupted context store before RedMatic start #452

Open hobbyquaker opened 3 years ago

hobbyquaker commented 3 years ago

Mitigate Issues like #451 #435

Sineos commented 3 years ago

Also see https://github.com/rdmtc/RedMatic/issues/446 Mitigation should take defect USB drives into account. Maybe a telling error message would be the best

hobbyquaker commented 3 years ago

currently I'm thinking of using jq to validate the context store files in the redmaticLoader script, if the file isn't valid json rename it to <filename>.corrupt.<timestamp> or smth and possibly show a popup in redmatic ui with a wiki link (and possible further hints there to check filesystem...).