Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RainMachine Sprinkler Irrigation Controller Driver
#51
A common scenario is to keep a 'fail counter' and only consider a failure if it fails some number of times in a row. Any time you get a good response, zero the counter again.
Dean Roddey
Explorans limites defectum
Reply
#52
Blake,
Is V1.97 the latest? I Finally got around to figuring out why I was seeing so many "$LostConn"  issues with the driver.
Not really an issue except for WebRiva users. Every time you get a LostConn and the driver restarts you get all the fields on a Webriva screen go to ???(not just the rainmachine fields). Maybe once every 15-20 minutes at most.
Just had to change the DoGET timeout a little longer.. from 4 seconds to 8 seconds. (8000 miliseconds)
Will watch for a few days but Driver seems to be much happier with my RainmachineHD touch...

        StatusCode := m_HTTP.SendGET
        (
            SrcURL
            , 8000
            , kHTTPAgent
            , kJSONType
            , m_RepText
            , m_OutHdrs
            , m_ContType
            , m_IOBuf
            , ContLen
            , False
            , m_InHdrs
        );

Thanks.
Kevin
_______________
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
#53
1.98 is the latest, but is identical except for the problem below:

// 1.98 10Feb21 Fixed a problem with one of the flags that is generated for the next run date. The JSON item "wateringFlag" is described to have
// 12 different numeric indexes to describe the various restrictions (if any) on the upcoming watering cycle. On one user's device, it was
// giving a 13th item, causing the driver to fail. A 13th item was added with the description "Unknown" was added to remedy this problem.

The DoGet timeout was not changed. Let me know how it works out, and we can send out a new update. I updated this for another user but never posted it, so can add it with this fix if it works.
Reply
#54
(06-03-2021, 10:40 PM)kblagron Wrote: The DoGet timeout was not changed.  Let me know how it works out, and we can send out a new update.  I updated this for another user but never posted it, so can add it with this fix if it works.
OK looks like that solved my issue. I also changed my other driver(Tesla) to 8 seconds and  both drivers now don't experience "$LostConn"'.
I have my rainmachine hooked up via Wi-Fi so an occasianal 5-6 second "get" does happen, so 4 seconds maybe to low. Guess if we did this for a living Smile, the DoGet would retry instead of just resetting the driver after a timeout.
Hope all is well
K
_______________
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
#55
You can always use a counter and bump it for each failure. So don't want very long, maybe a few seconds. If it fails, bump the counter. If you get X number of failures in a row consider it dead and cycle the driver. When you get a good response, zero the counter.

That makes the driver a little quicker to recover if the device connection is lost, and quicker to respond to shutdown requests in the same circumstances, but still deals with the occasional slow response. Obviously, if the device almost never responds in a few seconds, that won't work.
Dean Roddey
Explorans limites defectum
Reply
#56
I updated the driver to 1.99.  Apparently RainMachine added another weather day to their setup, which the driver only can handle 7, so it would fail on error.  I adjusted the driver to only read 7 days (it was the easier fix than adding an 8th day of fields, and it is working fine again.  I also changed the DoGet() for 8 seconds as kfly recommended in the previous posts.  The new driver pack is in the first post.

Regards,
Blake
Reply
#57
(03-10-2022, 09:31 PM)kblagron Wrote: I updated the driver to 1.99.  Apparently RainMachine added another weather day to their setup, which the driver only can handle 7, so it would fail on error.  I adjusted the driver to only read 7 days (it was the easier fix than adding an 8th day of fields, and it is working fine again.  I also changed the DoGet() for 8 seconds as kfly recommended in the previous posts.  The new driver pack is in the first post.

Regards,
Blake
Thanks Blake!
_______________
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
#58
Guess we need to see what stops working 30 days after June 8th when they start to move remote services to the Premium Tier($29.99 a year).

Not real clear if local API access is affected.
https://www.rainmachine.com/premium/

Still very happy with RainMachine and the CQC Driver. Works Great.
_______________
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
#59
(06-03-2022, 04:22 AM)kfly Wrote: Guess we need to see what stops working 30 days after June 8th when they start to move remote services to the Premium Tier($29.99 a year).

Since we access the rainmachine on our local subnet, I can't imagine it affecting too much, but the big question will be if the weather data it provides will only be provided on the premium tier.  That would pi$$ me off, if it's true, but it seems like everything wants a subscription these days.
Reply
#60
(06-03-2022, 04:22 AM)kfly Wrote: Guess we need to see what stops working 30 days after June 8th when they start to move remote services to the Premium Tier($29.99 a year).

So far everything I use is still working great. 
Only thing I have noticed is now you need premium Tier to access your Rainmachine via the RM web portal. since I only use the Android APP or CQC for remote access, I don't need to login to the Rainmachine website for remote administration.

Fingers crossed...
Kevin
_______________
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


Possibly Related Threads…
Thread Author Replies Views Last Post
  SmartThings API V1 driver kfly 5 799 02-22-2022, 07:55 AM
Last Post: kfly
  Tesla Driver Driver kfly 14 5,808 02-21-2022, 10:11 AM
Last Post: kfly
  Help on editing existing Driver Spot 5 678 02-03-2022, 06:50 PM
Last Post: kblagron
  New to driver development - where to start? jokermac 2 691 09-22-2021, 04:01 PM
Last Post: Spot
  Yamaha RX-V673 IP control Driver jdmevo123 22 11,519 03-27-2021, 03:02 PM
Last Post: Spot
  Updated SMS Driver gReatAutomation 0 706 01-28-2021, 12:53 PM
Last Post: gReatAutomation
  Sage Media Server driver (beta) Fonceur 698 345,643 07-26-2020, 04:59 PM
Last Post: sic0048
  Russound MCA-66 on TCP driver lapointe.sc@gmail.com 5 2,739 05-24-2020, 06:23 AM
Last Post: gReatAutomation
  Samsung SmartTV Driver George M 0 963 05-20-2020, 09:04 AM
Last Post: George M
  OpenWeatherMap Weather Driver Using OneCall API kblagron 11 4,500 05-18-2020, 04:09 AM
Last Post: dlmorgan999

Forum Jump:


Users browsing this thread: 1 Guest(s)