Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RainMachine Sprinkler Irrigation Controller Driver
#1
Kfly (Kevin) and I developed a CQC Driver for RainMachine that interfaces with the REST API that the hardware provides.

It currently works with the Mini-8, Pro, and Touch HD models. The driver will query for program and zone names and settings, and give you the ability to view and control various aspects of the device. 

All of the program and zone settings will have to be managed through the RainMachine application, as this driver only displays information that has already been programmed in the device. It also allows manual start and stop operations of programs and zones along with the ability to Snooze the Rainmachine for up to 365 days (i.e. disable) or Pause a currently running program and/or zone for up to 12 hours.

See the Help file (attached) for more information on how this driver works.

Updated to V1.96 which fixes the way the Snooze start time is gathered, and also adds the RainLastStartTime field which provides a date/time when the last Rain event occurred if you have a Rain sensor.

Updated to V1.97 to fix a few bugs that occur between the various systems.


Attached Files
.cqcdrvpack   RainMachine V1.97.CQCDrvPack (Size: 26.24 KB / Downloads: 2)
.html   RainMachine Help V1.97.html (Size: 74.21 KB / Downloads: 1)
Reply
#2
Amazing work. Thank you all for your efforts.
Reply
#3
Here is my template that I created for the RainMachine Driver.
Thanks
Kevin

RainMachine Template

[Image: ZrmU5S4.png]
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#4
Do you have the definitions associated with the RainMachine Fonts for weather icons? (i.e. Partly Cloudy = "C").   I would like to see if I could match them up with the Weather Underground Icons.  I looked on the Rainmachine forum and knowledge base but never did find where they were defined.
Reply
#5
(02-29-2020, 04:06 AM)kblagron Wrote: Do you have the definitions associated with the RainMachine Fonts for weather icons? (i.e. Partly Cloudy = "C").   I would like to see if I could match them up with the Weather Underground Icons.  I looked on the Rainmachine forum and knowledge base but never did find where they were defined.

Not sure it helps but the rainmachine stores the day weather icons as a number.   The driver just converts to the corresponding letter to display.
You may want to load the font on a windows machine and see if the Letters A-Z fit some kind of standard.

// An enum we use to convert the weather icon number to font letter
    // left as default but could be changed if needed.
    // Rainmachine has a numeric value for condition icon. We convert to letter to be used by the rainmachine font
    Enum=WeatherConIcon
        a  : "0"; 
        b  : "1"; 
        c  : "2"; 
        d  : "3"; 
        e  : "4"; 
        f  : "5";
        g  : "6";
        h  : "7";
        i  : "8";
        j  : "9";
        k  : "10";
        l  : "11";
        m  : "12";
        n  : "13";
        o  : "14";
        p  : "15";
        q  : "16";
        r  : "17";
        s  : "18";
        t  : "19";
        u  : "20";
        v  : "21";
        w  : "22";
        x  : "23";
        y  : "24";
        z  : "25";
    EndEnum;
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#6
Does anyone have opinions on the best weather source to use? Finally got my RainMachine and am setting it up.
Reply
#7
Here is a soil survey map for use with the custom soil types in RainMachine settings

https://websoilsurvey.nrcs.usda.gov/app/...urvey.aspx
Reply
#8
(03-05-2020, 10:58 AM)gReatAutomation Wrote: Does anyone have opinions on the best weather source to use? Finally got my RainMachine and am setting it up.
I use NOAA. Seems accurate for my area.
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#9
I am using NOAA also, but haven't looked hard at the others to evaluate.  From what I can tell, you can select multiple weather sources and RainMachine will somehow come up with an average.  I will probably look at that down the road.

On the V1.91 driver - I fixed a bug but haven't posted it yet.  The bug will occur if you have a program that isn't programmed to start (I have one that is a 2 minute Manual Check of each zone to view sprinklers for issues), you will get an error - but driver still works.   I also increased the number of programs you can have from 4 to 16.  

The reason I haven't posted it yet is because I wanted to add this to the driver -> Show what Restrictions may be in play for your next Program's run.  Right now the driver will show the next run, but, in actuality, it may not run if something is restricting it.  For me in particular right now, it is "Water Surplus" which is where it has already rained enough or forecast to rain enough for my soil conditions and doesn't need to run, even though you may think it will run.

Let me know if you need an updated version and I will post before I get the restriction part completed.
Reply
#10
Thanks. This thing is great. Is it possible to update the driver so that you can run a zone on demand? I see that this is an option from the web interface. There are times when I need to run a particular zone on demand, especially when I am trimming the grass around the sprinkler hears and need to locate a particular sprinkler head.

Could be a series of R/W fields for each zone:

Zone_X_Start - Write only - true
Zone_X_Stop - Write only - true
Zone_X_Pause - Write only - true
Zone_X_RunFor - Read/Write - x minutes

Thoughts?


[Image: Screen-Shot-2020-03-05-at-23-15-59.jpg]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Russound MCA-66 on TCP driver lapointe.sc@gmail.com 5 55 05-24-2020, 06:23 AM
Last Post: gReatAutomation
  Samsung SmartTV Driver George M 0 24 05-20-2020, 09:04 AM
Last Post: George M
  OpenWeatherMap Weather Driver Using OneCall API kblagron 11 149 05-18-2020, 04:09 AM
Last Post: dlmorgan999
  Tesla Driver Driver kfly 10 679 05-08-2020, 08:49 AM
Last Post: gReatAutomation
  JVC D-ILA Driver jokermac 34 3,744 04-13-2020, 01:28 AM
Last Post: Mark Stega
  Generic Irrigation Scheduler jkish 577 218,006 03-12-2020, 12:25 PM
Last Post: gReatAutomation
  LIFX Driver bobskie708 15 5,811 01-05-2020, 11:00 AM
Last Post: simplextech
  Universal Devices ISY Insteon Driver wuench 369 173,947 12-28-2019, 05:15 PM
Last Post: simplextech
  RunTimer2 driver rbroders 18 7,569 10-17-2019, 04:38 PM
Last Post: rbroders
  Writing Driver - Varying commands based on checksum gReatAutomation 3 757 07-22-2019, 01:08 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)