michaelmurfy:
Just battled Ruby (I hate Ruby so much... it never agrees with me) and got @mentalinc's script running. If anyone wants to try it then here is what you're needing to do:
Install Xubuntu (lightweight FTW). I went to the extreme and did the absolute minimum to get it going.
sudo apt purge firefox && apt autoremove
sudo apt update && apt install ruby ruby-dev firefox=45.0.2+build1-0ubuntu1 git
Grab the goods. Under a regular (non-root) user do:
cd ~/
git clone https://github.com/mentalinc/flick_scrape_halfhour.git
cd flick_scrape_halfhour
bundle install
On your influxdb host:
sudo influx
CREATE DATABASE FlickUsage
exit
Next, edit your main.rb file and give your Flick deets as well as point it to your influx database. Run with "bundle exec ruby main.rb" and it should work no problems. Generally follow the readme on the GitHub repo from this point.
I've noticed that with me the data Flick provides is missing quite a bit - I've manually vetted this and as it turns out I've got quite a few missing days in a row which also messes up the script so not sure what is going on with my readings... Such a shame as many people here seem to have more up-to-date data.
Cheers, will give this a try. Attempted to get it running the other day (on a less than ideal setup), but the CSV only got the date and time, no power details.