API returns flapping status

I wrote a simple Munin multigraph plugin to monitor the status of my devices through the resin API. About a week ago the online status of two devices in one of my applications started flapping. The two devices are in different cities, one on LTE and the other on fiber. What could be the reason for this happening? Should I blame an unstable internet connection?

LTE=green, Fiber=blue

(plugin attached, renamed to .log as .py isn’t allowed :confused: )
Resin-munin.py.log (2.0 KB)

It has become worse, but everything points to the ISP of the LTE service that is intermittent.

Feel free to close this topic.

Glad to hear you’ve chased this down, I’ll close this now. Let us know if there’s anything we can do to help investigate further.