OpenSprinkler › Forums › Third-Party Software › Time is not changing on Main Controller with this URL string
- This topic has 6 replies, 2 voices, and was last updated 2 years ago by AndreasSprink.
-
AuthorPosts
-
January 8, 2023 at 5:06 pm #74664
AndreasSprinkParticipantHello!
I am trying to set the time on the Main Controller to: GMT+02:00.
I have tried the below string with both a “GET” and another request with a “POST” HttpWebRequest in this test: (password is “opendoor” in MD5 Hash. tz=56 should be GMT+02:00)
http://15.1.0.6/cv?pw=a6d82bced638de3def1e9bbb4983225c&tz=56
I receive below JSON response in both Requests which means that I should have a “Success”?
But the time doesn’t change on the Main Controller(It is off by -7 hours). I wonder what I could be doing wrong?{“result”:1,”item”:””}
Thank you!
January 8, 2023 at 6:21 pm #74666
RayKeymasterIs there any reason you need to set the time zone manually? The controller uses your location to automatically get your time zone.
If you need to set it manually you need to clear out the location. Also the command to set time zone is not /cv, it’s /co, please check the API document again.
January 8, 2023 at 8:44 pm #74667
AndreasSprinkParticipantIt seemed that the controller showed -7 hours wrong time by default.
This is why I try to change the time. I now then tried changing the timezones like the below Greece and Sweden examples.
Time is changing on the controller but are -4 hours and -3 hours wrong.I got the coordinates on google maps. I am not sure if I do this correctly?
http://15.1.0.6:80/co?pw=a6d82bced638de3def1e9bbb4983225c&loc=37.98,-23.72 //Greece shows -4 hours wrong time?
http://15.1.0.6:80/co?pw=a6d82bced638de3def1e9bbb4983225c&loc=60.12,-18.64 //Sweden shows -3 hours wrong time?January 8, 2023 at 8:46 pm #74670
RayKeymasterI think it’s best you submit a support ticket with a copy of your configurations so we can check your firmware version, location, and related settings.
January 9, 2023 at 9:00 am #74673
AndreasSprinkParticipantThanks, I did submit a support ticket with configuration responses from the controller.
January 9, 2023 at 9:35 am #74674
RayKeymasterThe GPS coord of Athens, Greece should be 37.98, 23.72, why did you have 37.98,-23.72 (negative 23.72)??? You shouldn’t need to input the GPS coord manually, once you input the location or select a location on the map in the UI, it will calculate the GPS coord automatically.
January 9, 2023 at 11:04 am #74676
AndreasSprinkParticipantYes you are right, my mistake. I think I in the code had the example from the API manual: “change location to GPS coord 42.01,-75.22”
where the minus sign was still in the second argument there as I just follwed the example and changed the values and the minus sign was still intact.The time is correct when I tried it manually now. Yes, I can set the location in the UI also which is a better idéa.
Thank you for your help!
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Third-Party Software › Time is not changing on Main Controller with this URL string