I'm trying to implement a script that fetches a set of temperatures from two different sources.
One I have those temperatures, depending on the values I'll toggle the switch.
But I'm trying to avoid callback hell and keep the code readable and keeping with best practices.
Here's a gist of what I have: https://gist.github.com/BeyondEvil/50c…cd8d03ce011cad9
How do I solve it?