Change OSPi websites
- This topic has 4 replies, 2 voices, and was last updated 5 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Hello,
I loaded OSPi onto my Raspi as a test and played around with it. Because the weather function is a bit suspicious to me, I would like to display the amount of precipitation that is fetched from the weather server under the weather display on the website. I searched the sources for snippets of the website, but didn't find anything. How are the OpenSprinkler websites put together by the application and where can I find the output of the current weather information, for example?
Gruß,
crickets
The OSPi doesn't have a web server, just an API interface.
The actual UI comes from ui.OpenSprinkler.com, the source code is available here:
https://github.com/OpenSprinkler/OpenSprinkler-App
If you want to create your own site, you can change the configuration. Calls in the browser http://<ip-deines-OSPi:8080>/su
on. Now you can provide the link to your own page.
The OpenSprinkler app is the smartphone app, right? I actually want to go to the page that comes up when I enter the IP of my OSPi in the web browser. It must have gotten onto the Raspi somehow. And if the install script doesn't load anything from the internet, the website would have to be included in the OpenSprinkler firmware repo - that's all I loaded onto the Raspi.
I could create my own weather calculation page under /su, right? The API is probably in the manual. I'm actually interested in seeing on the website how much precipitation the OSPi is expecting. Or does the OSPi not have this information at all?
No, the app and website are all written in Javascript and the same program code. And no, it is not preserved in the firmware repo.
So solution is:
1. Download source code from Github
2. Set up a web server and configure the above source code as a website
3. Change the /su settings to point to the web server.