FlickElectricApi icon indicating copy to clipboard operation
FlickElectricApi copied to clipboard

instructions for install

Open benwilliams opened this issue 7 years ago • 4 comments

Could you please give an example of how to use this the command line. I have installed nodejs, coffeescript but am not familiar with javascript so don't know how use it.

benwilliams avatar May 17 '17 08:05 benwilliams

This is a library built in nodejs (a flavour of JavaScript). You will need to import this library into your application running nodejs code. As it is now, you will not be able to simply call this from the command line.

scotty-p avatar May 18 '17 01:05 scotty-p

Heya, I built a little webapp for myself based on the information from this library. It can pull your price every x minutes. http://flick.it-innovation.systems

You can set your own threshold(s) to trigger an email, slack notification or IFTTT event. It also has a little graph, csv and xls export of all the data since using the app and I'll probably add more integrations as I add more IoT devices at home.

It's built with Joget 6 and I am happy to share the app file.

Himmig avatar May 20 '17 08:05 Himmig

@Himmig how are the flick login details stored?

scotty-p avatar May 21 '17 01:05 scotty-p

Hi Scotty, I don't store them - they are encrypted and temporarily used to obtain the token. Once the notification is set up they are deleted immediately. I wish Flick would use OAuth2 - then I wouldn't need it at all. Let me know if there's anything you'd like to see improved.

Himmig avatar May 21 '17 02:05 Himmig