OpenSprinkler Forums OpenSprinkler Unified Firmware PWS – Almost there

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #72587

    Steve Campbell
    Participant

    I 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 – AC

    I 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/js

    Weather: weather.opensprinkler.com
    Default: weather.opensprinkler.com

    Password:
    ###############################################

    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
    Steve

    #72653

    franzstein
    Participant

    Hi 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
    Franz

    #72686

    Steve Campbell
    Participant

    Frank,

    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
    Steve

    #72715

    Steve Campbell
    Participant

    Sorry, 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 following

    Weather Service Offline
    Last Response Failed

    Is 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
    Steve

    #72774

    franzstein
    Participant

    You 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware PWS – Almost there