Hi All, back again. This time the culprit is memory overflow/leak. So basically I have stripped down my code back to where it only reads the DHT22 which works fine. However, the RAM on my Pi maxes out after about 24hours running the DHT22 script. This is been the base of all my issues.
I mean guys are sending Pi’s to the moon and I can’t get a script to run more than 24hours!! do I reload Rasbian or what? do we have an event logger to see why the ram filles up or do I clear variables I am stumped?
That looks like the Cayenne agent, not the script. Is the Cayenne agent installed? Also, i would just remove that block of if statements in the triple single quote if you’re not using it.