Config file not updating on new SD card

I had my SD card fail and have uploaded the GitHub files. The unit is working ok but when I try loading my old config file config+1.txt (3.7 KB) I am having errors on lines 168,178,188, 228.

All these lines except 188 had a “ | “ at the end so I tried removing but that did not help.

178 and 188 are the same formula and 168 and 228 are the same formula so I tried deleting one of each which also didn’t help.

I then tried deleting the remaining and I’m still not successful in updating just getting the log errors

1/10/26 13:24:58z Config file parse failed.
1/10/26 13:24:58z Config update failed.

Can I just load this straight to the config file on the SD card? Or is this going to cause issues.

The config that you uploaded is not valid json. It appears that the first line containing the opening brace for the overall json object is missing (‘{‘).

I always use the jsonlint before to check my json files.

Adding that line, validating with jsonlint and uploading as config+1.txt. Yes you can just remove the SDcard and replace config.txt, but as you suspect it will not go well if there is an error. The reason you upload as config+1.txt is to pre-screen the file, IoTaWatt will install and replace your config.txt if the file not only is valid json, but also many other checks to insure it will install OK.

1 Like