bdwilson / ThingSpeak-Energy-Logger

SmartThings SmartApp Energy Logger for ThingSpeak
4 stars 11 forks source link

Rate limit #3

Closed cipnt closed 3 years ago

cipnt commented 3 years ago

Hi Brian,

Very useful little monitoring app. Thanks for putting it together. One issue I noticed is that if one device reports changes too frequently, it can saturate the ThingSpeak free account allowance (approx 1 message / 15 seconds) very easily.

In my case I had a ZigBee plug on my laptop charger which was reporting changes almost every second due to CPU usage fluctuations. Because of this in ThingSpeak that, the laptop charger was showing correct data, but all the other fields/devices were not showing any data at all despite the fact that SmartThings logs were showing successful API calls. It took me a while to work out what the issue was :)

It would be useful if there was an option to set a rate limit per account (defaulting to the free allowance of 8,200 messages/day) which would be equally divided between each active device. Maybe also add a warning in the Readme doc?

Hope this helps anyone else that might have this same issue.

Cheers!

bdwilson commented 3 years ago

For my HEMv1 devices, I configured them to send update every 30 seconds - it was an option in whatever driver I was using, so this put me under the free limit. I've since moved to Hubitat and Grafana/Influx for my graphs because Thingspeak's free account was too limiting.