OpenSprinkler › Forums › OpenSprinkler Unified Firmware › PWS – Almost there
- This topic has 4 replies, 2 voices, and was last updated 2 years, 3 months ago by franzstein.
-
AuthorPosts
-
April 29, 2022 at 1:55 pm #72587
Steve CampbellParticipantI am in the process of getting my Opensprinker to update from my Netatmo PWS. My Current Opensprinkkler Hardware/software is as follows.
App Version 2.2.5
Firmware 2.1.9(9)
Hardware Version 3.2 – ACI have WeeWX and Nginx running on a Raspberry Pi which is successfully downloading Data from Netatmo. I have tested this by monitoring http://10.0.0.49/weewx/ which I’ve aliased in the default file for Nginx as follows.
##########################################
server {
location /weewx {
alias /home/weewx/public.html;
}
}
##########################################All works a treat 🙂
Now to get Opensprinkler to get that data.
I followed the instructions on the forum and edited the weewx.conf file to the following.
###############################################################
# This section is for uploading data to Internet sites[StdRESTful]
[[Wunderground]]
# This section is for configuring posts to the Weather Underground.# If you wish to post to the Weather Underground, set the option ‘enable’ to true, then
# specify a station (e.g., ‘KORHOODR3’) and password. To guard against parsing errors, put
# the password in quotes.
enable = true
station = anyText
password = anyText
server_url = http://10.0.0.49:80/weatherstation/updateweatherstation.php# If you plan on using wunderfixer, set the following
# to your API key:
api_key = replace_me# Set the following to True to have weewx use the WU “Rapidfire”
# protocol. Not all hardware can support it. See the User’s Guide.
rapidfire = False
############################################################so presumably the url is called by Opensprinkler to get updates via a php script – but how! I note in the instructions that Opensprinkler will ask on port 80. Nginx is listening on port 80 but does preclude weewx form listening as well?
In http//10.0.0.32/su I have the following
###############################################
JavaScript: https://ui.opensprinkler.com/js
Default: https://ui.opensprinkler.com/jsWeather: weather.opensprinkler.com
Default: weather.opensprinkler.comPassword:
###############################################I take it the weather field needs to be updated to point at the server url in weewx but how? Or maybe there is another incantation to summon the data 🙂
I think I’m so close 🙂 Any Help would be appreciated.
Cheers
SteveApril 30, 2022 at 1:09 am #72653
franzsteinParticipantHi Steve,
I’m a little bit unsure if I understand this correctly? Do you have installed a local instance of the Weather Service on your Raspberry Pi? You will find all associated details in the OpenSprinkler Github, Credits and License section.
Regards
FranzMay 3, 2022 at 7:36 pm #72686
Steve CampbellParticipantFrank,
Yup, the netatmo data is on the Raspberry Pi using WeeWX. Just got to do the last step of getting it on the OS.
Cheers
SteveMay 14, 2022 at 8:35 am #72715
Steve CampbellParticipantSorry, been sick for a while and things have slipped.
added in the /su table
JavaScript: https://ui.opensprinkler.com/js
Default: https://ui.opensprinkler.com/js
Weather: http://10.0.0.49:80 (Raspberry Pi address and port)
Default: weather.opensprinkler.com
Password:Added MD5 Hash password and received the response
{“result”:255}
Note
Rebooted opensprinkler and get the followingWeather Service Offline
Last Response FailedIs this because I have to wait for 24 hours worth of data, or is the call to Port 80 failing
I have NGINX on the raspberry pi and this could be listening on Port 80.Cheers
SteveMay 16, 2022 at 9:30 am #72774
franzsteinParticipantYou have to update the server URL to reflect port 3000 rather than port 80. The availability of your Weather service can be checked with http://10.0.0.49:3000. Hopefully that will fix it.
Regards
Franz
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Unified Firmware › PWS – Almost there