Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Master keeps resetting to standard station
#7
A rebuild would probably be best.

However there is come code in helpers.py that writes the sd.json file with default settings on first run.

starting at line 89:
Code:
try:
    with open("./data/sd.json", "r") as sdf:  # A config file
        sd_temp = json.load(sdf)
    for key in sd:  # If file loaded, replce default values in sd with values from file
        if key in sd_temp:
            sd[key] = sd_temp[key]
except IOError:  # If file does not exist, it will be created using defaults.
    with open("./data/sd.json", "w") as sdf:  # save file
        json.dump(sd, sdf, indent=4, sort_keys=True)
You could try commenting out lines 96 - 97 and adding pass after.

The defaults are listed starting at line 46.

If for some reason the sd.json file is not being read on reboot this could cause the problem you are seeing.
<p><br></p>
Reply


Messages In This Thread
RE: Master keeps resetting to standard station - by dan - 2024 Nov 30, 04:14 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)