Privacywonk / MMM-Surf

MagicMirror module that pulls in tide, water temp, and Magicseaweed data to show an at-a-glance surf report for your favorite spot.
Other
5 stars 2 forks source link

setInterval back to node_helper #35

Closed Privacywonk closed 6 years ago

Privacywonk commented 6 years ago

A while back, the setInterval functionality was moved out of node_helper because of a bad BigO notation issue. The setInterval functionality was being set recursively, causing it trigger thousands of times.

The initial solution was to move that code into MMM-Surf; however, this created an issue around multiple clients. Each new client would trigger a separate update timer, as it was running in their client.

I have moved this functionality back into node_helper, minus the recursion issue.