OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › Unable to connect UI
Tagged: login ui connection
- This topic has 8 replies, 4 voices, and was last updated 4 years, 2 months ago by Jimham04103.
-
AuthorPosts
-
May 19, 2020 at 6:13 pm #66168
OhadParticipantAfter almost a year with a working system, I suddenly can’t log in into the UI, not trough the Android app nor through the web browser.
With the Android app, I get the “Unable to connect to Home” message.
With the browser (Firefox or Chromium), I can see the login page but when I push the Submit button it’s loading for a half-second and then the page refreshes and I got the login page again.Strangely, the REST API works, and I can get and set info through it (with the MD5 of the password). http://local-ip/su also works.
I have tried to restart the device, my router, and my modem, nothing helps.
Any ideas? What is wrong or what can I do?
Thanks,
OhadMay 19, 2020 at 6:13 pm #66173
RayKeymasterWhat’s the hardware version? And do you know what firmware runs on it?
May 20, 2020 at 3:03 am #66186
OhadParticipantI have the AC powered OS3.0.
Actually, after I posted yesterday, I successfully update the firmware to 219_rev3 (it was rev2 before).
It didn’t solve the problem.May 20, 2020 at 1:58 pm #66200
RayKeymasterOne thing you can check is open a browser and type in the following:
http://x.x.x.x/ja?pw=yyyy
where x.x.x.x is your controller’s IP address, and yyyy is the md5 hash of your device password (you can use https://www.md5hashgenerator.com/ to generate md5 hash from your password).This should return controller settings in json format. One possibility is that the json string is corrupted, like there are garbage characters in the string. You can copy the entire string and paste it to a json parser (such as http://json.parser.online.fr/) to check its validity.
If indeed the string is corrupted, you can perform a factory reset. But I do suggest you keep a copy of the output of the /ja command above, as that will help recover the settings after the factory reset.
May 20, 2020 at 3:18 pm #66209
OhadParticipantOK, I fixed it 馃檪
I deleted the corrupted programs with/dp
and it all works now!Do you have any idea how it could have happened and how I can avoid it in the future?
Thanks a lot!
May 20, 2020 at 3:39 pm #66211
OhadParticipant(I posted this before and it deleted some how)
WOW. It seems to be the case!
That is the JSON:
{"settings":{"devt":1590013997,"nbrd":1,"en":1,"sn1":0,"sn2":0,"rd":0,"rdst":0,"sunrise":342,"sunset":1174,"eip":1599502721,"lwc":1590008749,"lswc":1590008749,"lupt":1589935790,"lrbtc":7,"lrun":[3,3,1200,1590006001],"RSSI":-65,"loc":"31.53830,34.91192","jsp":"https://ui.opensprinkler.com/js","wsp":"weather.opensprinkler.com","wto":{},"ifkey":"","wtdata":{"wp":"Manual"},"wterr":0,"curr":0,"sbits":[0,0],"ps":[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]]},"programs":{"nprogs":3,"nboards":1,"mnp":40,"mnst":4,"pnsize":32,"pd":[[1,127,0,[480,0,0,0],[0,0,600,0,0,2400,900,0],"讘讜拽专"],[49,0,2,[1080,0,0,0],[0,0,0,0,0,0,3600,0],"注爪讬诐 "],[1,127,0,[1200,0,0,0],[0,0,0,1200,0,0,0,0],"注爪讬爪"]]},"options":{"fwv":219,"tz":60,"ntp":1,"dhcp":1,"ip1":192,"ip2":168,"ip3":1,"ip4":7,"gw1":192,"gw2":168,"gw3":1,"gw4":1,"hp0":80,"hp1":0,"hwv":32,"ext":0,"sdt":0,"mas":1,"mton":10,"mtof":-10,"wl":100,"den":1,"ipas":0,"devid":0,"uwt":0,"ntp1":50,"ntp2":97,"ntp3":210,"ntp4":169,"lg":1,"mas2":0,"mton2":0,"mtof2":0,"fwm":3,"fpr0":100,"fpr1":0,"re":0,"dns1":192,"dns2":168,"dns3":1,"dns4":1,"sar":0,"ife":0,"sn1t":0,"sn1o":1,"sn2t":0,"sn2o":0,"sn1on":0,"sn1of":0,"sn2on":0,"sn2of":0,"subn1":255,"subn2":255,"subn3":255,"subn4":0,"wimod":42,"reset":0,"dexp":0,"mexp":8,"hwt":172},"status":{"sn":[0,0,0,0,0,0,0,0],"nstations":8},"stations":{"masop":[254],"masop2":[0],"ignore_rain":[0],"ignore_sn1":[0],"ignore_sn2":[0],"stn_dis":[146],"stn_seq":[254],"stn_spe":[0],"snames":["专讗砖讬","诪讬诐 讗驻讜专讬诐","讛诪讟专讛","诪专驻住讜转","专讝专讘讛","讟驻讟讜祝","注爪讬诐","S08"],"maxlen":32}}
And I got the error:
SyntaxError: JSON.parse: bad control character in string literal at line 1 column 651 of the JSON data
Can I override this JSON somehow?
Thanks for the help!
May 21, 2020 at 7:15 pm #66259
RayKeymasterGood to hear. I am not sure about the cause of the corruption. It’s possible that it got corrupted during a writing event to the flash memory. Generally a factory reset will wipe out the flash and get rid of the corrupted data. Therefore I would recommend saving a copy of the configurations every time you make changes, so that in the rare event this happens again, you can perform a factory reset and recover the configurations easily.
June 25, 2020 at 9:52 am #66991
MichaelParticipantI always seem to have a recurring issue where the UI goes blank screen on me .. for some reason I thought this was related to the weather adjustments historically, but not sure.
I’ve recently upgraded to latest firmware, but it seems every morning the screen goes back to blank.
When I do the json check with http://<ip>/ja?pw=<md5>
I only get the following
{"fwv":219}
only a reboot of the OS fixes it .. any thoughts? was this the problem you were having?
October 31, 2020 at 2:02 pm #68579
Jimham04103ParticipantI’m having a similar issue…. URGENT….
I was trying to copy programs to clean up the zones on my computer (some zone programs were out of place and cant move them?)
anyways, now I cant login to the app or ip on same wifi… it recognizes when i put in the wrong login password and acts like its going to log in but it just stays on the login screen…
on the app it says unable to connect. its not a wifi issue (orbi thats been working for a while)
any help? PLEASEeeeeeee
thanks!!
Jim -
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Mobile and Web App › Unable to connect UI