Thread Rating:
  • 0 Vote(s) - 0 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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tesla Driver Driver kfly 13 3,710 06-16-2021, 05:43 AM
Last Post: Dean Roddey
  Yamaha RX-V673 IP control Driver jdmevo123 22 9,350 03-27-2021, 03:02 PM
Last Post: Spot
  Updated SMS Driver gReatAutomation 0 296 01-28-2021, 12:53 PM
Last Post: gReatAutomation
  Sage Media Server driver (beta) Fonceur 698 314,647 07-26-2020, 04:59 PM
Last Post: sic0048
  Russound MCA-66 on TCP driver lapointe.sc@gmail.com 5 1,707 05-24-2020, 06:23 AM
Last Post: gReatAutomation
  Samsung SmartTV Driver George M 0 546 05-20-2020, 09:04 AM
Last Post: George M
  OpenWeatherMap Weather Driver Using OneCall API kblagron 11 2,729 05-18-2020, 04:09 AM
Last Post: dlmorgan999
  JVC D-ILA Driver jokermac 34 11,566 04-13-2020, 01:28 AM
Last Post: Mark Stega
  Generic Irrigation Scheduler jkish 577 289,263 03-12-2020, 12:25 PM
Last Post: gReatAutomation
  LIFX Driver bobskie708 15 9,183 01-05-2020, 11:00 AM
Last Post: simplextech

Forum Jump:


Users browsing this thread: 1 Guest(s)