logo elektroda
logo elektroda
X

How often to update data in Domoticz with ESP8266 without hanging the Atmega?

maximus22_kr 2253 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16570166
    maximus22_kr
    Level 18  
    I have managed to write code that updates ( although sometimes the Atmega crashes ) the Domoticz database.
    I wanted to ask, how often can it be updated ( ignoring of course the faster growth of the database size ) ?

    Currently I have
    every 5 minutes for each sensor
    every 20 seconds for each sensor
    in addition, I check the hysteresis of the sensors and the states of the inputs and if the indications have not changed, I do not send.
  • ADVERTISEMENT
  • #2 16570534
    Slawek K.
    Level 35  
    You can even do it every second, you have to answer yourself what interval you need. On the ESP8266 I recommend the ready-made Espeasy software version R120, it works very nicely with Domoticz and works "both ways", i.e. it can also execute commands from Domoticz.

    Greetings
  • #3 16570950
    maximus22_kr
    Level 18  
    Hello
    I've been playing with the latest one ( I think it's referred to as 2.0 ), well it has almost everything I need. "Almost" is what my "master" does - it sends selected measurement results via RFM12. Unfortunately, the elderly inhabitants of the house don't actively use the internet, so for them there are receivers with 20x4 LCDs with switchable content. The second "almost", i.e. recording on SD I can give up, a more readable archive is in the Domoticz database.

    Overall, ESPEasy is a great tool.
    In my case it supports the sensors I need:
    DS18B20
    DHT22
    BME280
    BHVI1750
    ADC converter I think
    PCF8574 and MCP23017 expanders

    only no RFM12 support - I know, maybe illogical

    Believe that if it was, I would have switched to ESPEasy straight away. I've already lost a great deal of time setting up sending to Domoticz via JSON. Now I have it running for 30 minutes to 4 hours and then it stops. Something wrong with the ESP8266, because when I unplugged it and the data was going to "space", it went through 8 hours without crashing. Maybe it sends rubbish from time to time, just strange that it hangs the Atmega - it just stalls. Of course you can enable Watchdog, but that's not the point. This is the last piece of my "blocks" and I have a problem with it. Well, I only have the PM2.5/PM10 sensor left, but I don't have time to get it working
ADVERTISEMENT