OpenSprinkler Forums Comments, Suggestions, Requests Adding Sunset/Sunrise, 433MHz support

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23149

    smnt
    Member

    Hi,

    thank you for the great product. What do you think about integrating following libraries/projects?

    1) http://libhdate.sourceforge.net/ – (which is also used in the famous linux “remind” tool) provides an easy way to calculate sunset/sunrise times based on geographical location and a Hebrew calendar.

    It would be cool if you could add 433Mhz hardware support to the OpenSprinkler. Following open-source projects might help you to support a huge amount of devices out-of-the-box:
    2) http://www.telldus.se/products/tellstick
    3) https://ninjablocks.com/

    #28152

    Ray
    Keymaster

    Thanks for the suggestions.

    1) Sunrise/Sunset time is being considered together with the weather feature. As a preview of what’s happening recently, I’ve written a Python script which can take a location and output sunrise sunset time, as well as water percentage adjustment (based on Rich Zimmerman’s algorithm). You can run the script by using:
    http://rayshobby.net/scripts/weather1.py?loc=01002,USA&key=WUKEY&tz=32
    where you have to substitute WUKEY with your Wunderground API key, and tz gives the time zone value (your time zone multiplied by 4 and offset by +48. for example, UTC-4 is -4*4+48=32). Of course the parameters are meant to be populated automatically by OpenSprinkler.
    The script will return one line:
    &scale=19&sunrise=382&sunset=1153&maxh=94&minh=51&meant=77&pre=0.330000&prec=0.000000&hc=62
    which can be easily parsed by Arduino. Here:
    -scale: water scale / percentage
    -sunrise: local sunrise time (number of minutes from midnight)
    -sunset: sunset time
    -the other parameters like maxh, minh are the humidity, temperature and precipitation data used to calculate water scaling (these parameters are obtained from WUnderground using the location).

    This way the device can send a query once a day to retrieve the data.

    2) OpenSprinkler 2.0 and 2.1 have pin headers on the circuit board to directly plug in a standard 433 or 315MHz RF transmitter. I’ve written a few blog posts about how to use this to interface with remote power sockets:
    http://rayshobby.net/?p=3381
    It’s also possible to connect a RF receiver so the device can listen to remote sensors. I’ve written a series of blog posts about interfacing with various sensors like temperature, humidity, rain, soil moisture:
    http://rayshobby.net/?p=8827
    http://rayshobby.net/?p=8998
    http://rayshobby.net/?p=9056
    http://rayshobby.net/?p=9413
    so the pieces are all there, but the support has not been added to the provided firmware yet.

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

OpenSprinkler Forums Comments, Suggestions, Requests Adding Sunset/Sunrise, 433MHz support