August 2, 2020 at 7:14 pm #67693
I thought I had posted before, but don’t see it now; if this is not appropriate for this forum, just let me know.
I have a 3.0 openSprinkler WiFi esp8266 based system and am trying to create a simple alternative front end web page to do basic programming without connection to a router or a phone App.
1) Has anyone implemented something similar? Any recommendations on where to find information about it?
I know these are open ended questions; I’m just looking for some thoughts from anyone on how feasible an idea it is or what the major challenges would be.
Thank youAugust 2, 2020 at 8:32 pm #67694
Have you looked at the official OpenSprinkler App? I run it from a web server but you can just run it by opening index.html. It worked fine for me as is last week when lightning struck my cable and damaged the tap at the road. My internet was down for almost a week due to all the storm damage techs had to fix ahead of mine. I’m guessing you’ll need an ntp server running that it can access if it’s not connected to the internet.August 2, 2020 at 9:35 pm #67696
Hi, Thanks for the comments.
I had considered it, and just played with it a bit more based on your comments. It’s nice, and does work without the router… I had no idea it would!
However, I want to customize the interface a bit and am trying to avoid having to learn how to write a phones App on top of everything else 🙂
I suspect in your case that OS was still connected to your router, even though your internet was down, and that’s why the <ipaddress>/index worked.
I’ve been able to replace that page (I actually just added a different page) but am finding it difficult to give it much content. I’m having trouble understanding how big the ‘html.h’ string can be, and it seems like I can’t seem have a separate style.css file because the browser tries to request it before the full page has finished loading. This pushed me into putting everything in one big html.h string. Maybe I’m running out of flash space. When make the build I see this:
Ram: 44924 bytes
Flash: 603768 bytes
Do you or does anyone know the max flash available for use? (am I over the limit, what is the limit…)
So thank you for the comment; it led me to learn lot I didn’t know.August 3, 2020 at 11:52 am #67704
@slick: if I understand it correctly, you want to use the controller in AP mode (without another router). This is possible. You have to either use the OpenSprinkler mobile app, or as KSprinkler75 said, download the OpenSprinkler app from github, and run its index.html. This is NOT the same as typing 192.168.4.1/index.html — the correct approach is to open the index.html in OpenSprinkler app folder.
You can of course also write your own front end interface, using the OpenSprinkler HTTP API. In fact, as I explained in this post:
the testing script is a simple front end (not much features other than just testing a subset of the HTTP API) and you can obviously improve it significantly to make it more usable.
- You must be logged in to reply to this topic.