Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts

  • D N
    Participant

    It is possible that you have the same problem I have with Apple where the Weather Service returns “Error” and the Last Response is “Weather Data Error”. If you check the System Diagnostics in the left menu, do you have errors like this?

    If you do have this problem, in a support ticket Ray suggested I export the configuration. Then check the value of “wterr” in the JSON output. For me it’s almost always “1”. The weather service in the past few months has only been working occasionally. Before that it had always been reliable.

    in reply to: Listen address and SSL #80463

    D N
    Participant

    I’m moving to a new Raspberry Pi and came across this when preparing. I’m sorry I didn’t say thank you before nachtigall!

    in reply to: Firmware 2.2.0(1) official released #75186

    D N
    Participant

    The bundle which used to have to be downloaded to be hosted from a local web server to avoid needing to be online to use OSPi.

    Anyway, if it has all changed, are there instructions on how to host/run the App component please? I’ve followed the upgrade guide but saw no mention of a separate App component sorry.

    I have an OpenSprinkler Pi and wish to host the app with HTTPS/TLS.

    Thank you!

    in reply to: Firmware 2.2.0(1) official released #75179

    D N
    Participant

    Hello,

    Is it still possible to host the javascript files on a local webserver with this firmware release?
    Where exactly are the javascript files please? I’ve not been able to find them again (I imagine they’ve been changed?).

    Thank you!

    PS: Found instructions at the bottom of this repo’s readme, but the javascript bundle can’t be downloaded any longer: https://github.com/OpenSprinkler/OpenSprinkler-App

    in reply to: Listen address and SSL #73203

    D N
    Participant

    I wanted to delete my second post (above) as I had updated the first after (mostly) solving the issue.

    Sadly both my posts got stuck waiting for a moderator. It seems the forum filters don’t like my habit of going back and editing posts more than once to get them just_right!

    To work around the intermittent (non-fatal) errors I ended up adding the following lines to the end of my reverseproxy-ssl.conf file in apache:

    # Avoid races (at the cost of performance) to re-use a pooled connection
    # where the connection is closed
    SetEnv proxy-nokeepalive 1
    SetEnv force-proxy-request-1.0 1

    Could you share some of your config please nachtigall?

    in reply to: Listen address and SSL #73168

    D N
    Participant

    Hello,
    I realise the last post was some time ago, but I’m also wrestling with the same problem. I want to host my OpenSprinkler setup over HTTPS, locally on my home network.

    I have configured an instance of apache2 on my Raspberry Pi to host the UI assets and reconfigured OSPi to use it (with the help of a support ticket). I have tried various reverse proxy configuration (using Apache’s mod_proxy) and now have it mostly working.

    The system appears to respond, but occasionally shows a generic “Network error” in the red ticker at the bottom of the OpenSprinkler UI (the same thing which shows if you have Raid delay set). I think this is possibly a problem with the “Weather Service” due to “mixed content” loading in the Browser, but I’m still trying to figure it out.

    I stumbled through the official guide as it is lacking a lot of detail but eventually got the UI assets hosted
    https://openthings.freshdesk.com/support/solutions/articles/5000164006-using-a-different-server-for-ui-assets

    I then wrestled with the mod_proxy configuration and got the following to *mostly* work.

    Firstly I have two DNS entries for the Raspberry Pi hosting this. For these examples they are “opensprinkler.lan” and “othername.lan”. both names resolve to the same IP, that of the Raspberry PI.

    I then configured Apache for a basic SSL configuration (not documented here) using self-signed certificates for now (I’ll fix this later)

    Then I enabled the following two “site” config files, after extracting the OSPi assets file in to /var/www/html

    This is saved as ospi-assets-ssl.conf:
    `
    <IfModule mod_ssl.c>
    <VirtualHost *:443>
    ServerName othername.lan
    ServerAlias othername.lan
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
    <FilesMatch “\.(cgi|shtml|phtml|php)$”>
    SSLOptions +StdEnvVars
    </FilesMatch>
    <Directory /usr/lib/cgi-bin>
    SSLOptions +StdEnvVars
    </Directory>
    DocumentRoot /var/www/html
    <Location />
    Order allow,deny
    Allow from all
    </Location>
    </VirtualHost>
    </IfModule>
    `

    This is saved as reverseproxy-ssl.conf:
    `
    IfModule mod_ssl.c>
    <VirtualHost _default_:443>
    ServerName opensprinkler.lan
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
    <FilesMatch “\.(cgi|shtml|phtml|php)$”>
    SSLOptions +StdEnvVars
    </FilesMatch>
    <Directory /usr/lib/cgi-bin>
    SSLOptions +StdEnvVars
    </Directory>
    ProxyRequests Off
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    ProxyPass / http://127.0.0.1:8008/
    ProxyPassReverse / http://127.0.0.1:8008/
    <Location />
    Order allow,deny
    Allow from all
    </Location>
    </VirtualHost>
    </IfModule>
    `
    Then reloaded apache and tested.

    I then configured my OpenSprinkler to use Javascript assets from https://othersite.lan/js . I had to do this by going to http://opensprinkler.lan:8008 (the insecure port I have OpenSprinkler run on) and I followed the instructions in the guide linked at the top of this post to change the JavaScript URL there.

    As mentioned this *mostly* works. Occasional network errors occur but the interface otherwise seems to work.

    in reply to: Possible to run a second Web Server on an OSPi? #69098

    D N
    Participant

    Thanks Ray,

    I already have something running on the port so was looking to configure OpenSprinkler before using it!

    I’ll stop the other service and try OpenSprinkler on it’s own so I can see the option you’re talking about.

    Thank you

    in reply to: Possible to run a second Web Server on an OSPi? #69086

    D N
    Participant

    Hi Ray,

    Thank you for confirming this is possible. I’m a new user, so how can I change the port? Is there a way to configure the port using a variable or do I have to modify the code before building it?

    Thank you in advance!

    in reply to: Recommended flow meter #69008

    D N
    Participant

    Hello,
    I’m also looking for a flow meter, but the only two-wire “pulse output water meter” I can find are on eBay and usually cost much more than AU$77. Most have a display, but I don’t need that – just digital output to my OSPI.

    I came across much cheaper Hall Effect Flow Meters, but all of the 3/4″ ones are 3-wire. Would these work at all please?

    https://www.alibaba.com/product-detail/SEN-HZ43WA-Flow-sensor-magnetic-water_60586963647.html

    This one appears to be a pulse output “turbine” with 3 wires.
    https://www.alibaba.com/product-detail/Digital-Water-Flow-Meter-Pulse-Output_62357976205.html?spm=a2700.galleryofferlist.normal_offer.d_title.6b4d5360grukZB

    Thank you in advance!

Viewing 9 posts - 1 through 9 (of 9 total)