Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Internal Server Error" on Programs page after update
#3
(2020 Dec 05, 03:31 AM)dan Wrote: SIP version 4 uses a new format for the json file that stores the irrigation programs.

There is a conversion utility in the SIP directory that should have converted your old programs.json to the new format in a new file named programData.json in the SIP/data directory.

The program data you posted looks like the old format.
You can try running the conversion manually from the SIP directory by running
Code:
python convert_progs.py
or
python3 convert_progs.py
It should leave the old file intact and create the new one that SIP 4 can use.

Thanks for the reply!  Here's what I got in the new file.  Same result.

Code:
[
    {
        "cycle_min": 0,
        "day_mask": 84,
        "duration_sec": [
            180,
            180,
            0,
            0,
            180,
            0,
            0,
            300,
            300,
            240,
            0,
            300,
            240,
            300,
            300,
            0
        ],
        "enabled": 0,
        "interval_base_day": 0,
        "name": "Unnamed",
        "start_min": 240,
        "station_mask": [
            147
        ],
        "stop_min": 282,
        "type": "alldays"
    },
    {
        "cycle_min": 0,
        "day_mask": 127,
        "duration_sec": [
            0,
            240,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "enabled": 1,
        "interval_base_day": 0,
        "name": "Unnamed",
        "start_min": 360,
        "station_mask": [
            2
        ],
        "stop_min": 364,
        "type": "alldays"
    },
    {
        "cycle_min": 0,
        "day_mask": 45,
        "duration_sec": [
            420,
            120,
            0,
            0,
            120,
            0,
            0,
            480,
            480,
            420,
            0,
            720,
            300,
            720,
            0,
            0
        ],
        "enabled": 1,
        "interval_base_day": 0,
        "name": "Unnamed",
        "start_min": 180,
        "station_mask": [
            147
        ],
        "stop_min": 243,
        "type": "alldays"
    },
    {
        "cycle_min": 0,
        "day_mask": 127,
        "duration_sec": [
            0,
            0,
            0,
            0,
            0,
            0,
            60,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0,
            0
        ],
        "enabled": 1,
        "interval_base_day": 0,
        "name": "Unnamed",
        "start_min": 600,
        "station_mask": [
            64
        ],
        "stop_min": 601,
        "type": "alldays"
    }
]
Reply


Messages In This Thread
RE: "Internal Server Error" on Programs page after update - by tvwebguy - 2020 Dec 05, 04:50 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)