Giter Site home page Giter Site logo

griddy_view's Introduction

Griddy View

Look up prices for Griddy electrical service in your region, then track and view over time.

I build this application to run on a Raspberry Pi, but it should run on any Linux/Unix system. I have a cron job that runs every 5 minutes to check the price of electricity with Griddy. The prices are logged in a SQLite3 database (future use will be to display in a web front end) and if the price is higher/lower than the self configured spike amount the application will send an SMS notification to a list of recipients.

Configuration values

The application requires several configuration values that should be placed in the root of the project in a .env file. The cfg.py file will read these values and import them into the app.

SETTLEMENT_POINT=<LZ_SOME_AREA>

METERID=<YOUR_METER_NUMBER>

MEMBERID=<YOUR_GRIDDY_ACCOUNT_NUMBER>

ALERT_STATE_VALUE=<YOUR_SPIKE_NUMBER> Example: 12.5

ACCOUNT_SID=<YOUR_TWILIO_ACCOUNT_SID>

AUTH_TOKEN=<YOUR_TWILIO_AUTH_TOKEN>

FROM_NUMBER=<YOUR_TWILIO_SEND_NUMBER>

TO_NUMBERS=<COMMA_SEPERATED_PHONE_NUMBER_LIST> Example: 8005551212,8885551212

COST_PERIOD=2019-08-01 Future Use - Not Required

COST_INTERVAL=monthly Future Use - Not Required

Cron Job

Create a cron job by going to the terminal on the Raspberry Pi and running the following command: crontab -e Scroll to the bottom of the file and on a blank line at the bottom of the file enter the following:

*/5 * * * * cd /home/pi/griddy_view && /usr/local/bin/python3.7 griddy.py

Install Python 3.7

I followed the following guide for installing Python on the Raspberry Pi Install Python on Raspberry Pi

griddy_view's People

Contributors

marty331 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.