OpenSprinkler Forums OpenSprinkler Mobile and Web App Issue with water level in logs view

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #65133

    franzstein
    Participant

    The Logs View gives not the correct average water level. My OS was running in the morning with a water time of 30 minutes and a water level of 67% for 30 minutes x 0.67 = 20 minutes and 6 seconds. The log shows the average with 62%, which was the calculated water level by the end of the day. . Please find the log view attached.

    Attachments:
    #65144

    Ray
    Keymaster

    This likely has to do with how the average watering percentage is calculated for the log view. If I remember correctly, it pulls the log, which contains separate records for watering level, and calculates an average of those numbers. In the past, it used to be that the watering percentage changes across a day — for example, the weather algorithm sends a request every 2 hours and it may get watering levels that vary depending on when the request was sent out. As a result, the average watering level you see in the log may not match any specific watering level displayed on the homepage. This should be less of an issue now, since the watering level across a day should be consistent.

    One way to check is to pull the log record directly and find out what’s going on. To do so, you can open a browser and type:
    http://x.x.x.x/jl?pw=yyyyyyy&hist=1&type=wl
    where x.x.x.x is your opensprinkler’s IP address, and yyyyyyy is the md5hash of your password (you can use https://www.md5hashgenerator.com/ to calculate md5hash from your password).
    The above command pulls log record of the most recent 1 day (hist=1) and with type wl (watering level).

    Of course another issue could be what the log view counts as one day — it may be checking the past 24 hours (from now to 24 hours ago) and if so that would cross the boundary of a day resulting in average numbers inconsistent with your calculation. In any case, I will take a look at the corresponding part of the UI code and figure out.

    #65145

    franzstein
    Participant

    @Ray Thanks for your quick response. The screenshot shows yesterday’s watering at my local time 7:00 am. Immediately after the watering the water level was given with 67%. It changes thereafter!

    Running above command gives:

    	
    0	
    0	0
    1	"wl"
    2	68
    3	1586570325
    1	
    0	0
    1	"wl"
    2	68
    3	1586577527
    2	
    0	0
    1	"wl"
    2	67
    3	1586584729
    3	
    0	0
    1	"wl"
    2	65
    3	1586592079
    4	
    0	0
    1	"wl"
    2	64
    3	1586599281
    5	
    0	0
    1	"wl"
    2	62
    3	1586606483
    6	
    0	0
    1	"wl"
    2	61
    3	1586613685
    7	
    0	0
    1	"wl"
    2	61
    3	1586620887
    8	
    0	0
    1	"wl"
    2	62
    3	1586628089
    9	
    0	0
    1	"wl"
    2	63
    3	1586635291
    10	
    0	0
    1	"wl"
    2	62
    3	1586642493
    11	
    0	0
    1	"wl"
    2	61
    3	1586649695
    12	
    0	0
    1	"wl"
    2	60
    3	1586656897
    13	
    0	0
    1	"wl"
    2	58
    3	1586664099
    14	
    0	0
    1	"wl"
    2	56
    3	1586671301
    15	
    0	0
    1	"wl"
    2	55
    3	1586678503
    16	
    0	0
    1	"wl"
    2	54
    3	1586685705
    17	
    0	0
    1	"wl"
    2	56
    3	1586692907
    18	
    0	0
    1	"wl"
    2	59
    3	1586700109
    19	
    0	0
    1	"wl"
    2	59
    3	1586707311
    20	
    0	0
    1	"wl"
    2	58
    3	1586714513

    The corresponding Unix time to look at is 1586584729. Our local time zone is GMT+2, due to the summertime valid now.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Mobile and Web App Issue with water level in logs view