Expected duration: 1 day or less I'm looking for someone to write some code (I have existing Ruby code) to:
1) poll my smart power meter API (Nuerio) and then 2) tell my Kasa TP Link smart plug to turn on 2a) if over a 10 min average solar generation exceeds my current consumption by say 700 Watts. 2b) It should then turn off if over a 10 min average solar generation does not exceed current consumption. 3) Write to a Google sheet (or similar) when it is turning the switch on and off, and the present Neurio power values as it does it
Essentially its a smart switch to divert power to other uses in the home rather than exporting to the grid. I'm very open to how exactly to do this. Both Nuerio and Kasa TP Link have applets on IFTT, but none have the functionality I need described above. Neuerio has an API available to access the raw power consumption data.
I had some current code written in Ruby and running on Heroku, but... although it worked fine for a few months, its stopped working recently - I have the code to share. Ideally I'd like the new code to run on a Raspberry Pi or similar, so at least I can more easily get to it and see what is happening if it's not working than using Heroku.
Some background reading below.
Neruio API info: https://api-docs.neur.io/ https://www.neur.io/