Giter Site home page Giter Site logo

wattview's Introduction

WattView

Summary

WattView - a collection of Go language command line routines written on the Raspberry Pi for the WattTime (watttime.org) API to read real-time and historic electric power grid information on the USA (and eventually European) Grids.

Written by Maurice Bizzarri, Bizzarri Software, January 2019
See https://watttime.org for more information on this system

Getting Started

Just clone the repository and compile the go routines with go install. There is also a script called INSTALL that can be run after cloning
To install go on a Raspberry pi, use sudo apt install golang

Prerequisites

A working GO environment. No fancy features used so older GO installs should work.

Documentation on the routines

All routines support the -h flag to document the parameters

emissions - get the emissions status for a Balancing Authority
griddata - get the detailed grid data for a specific BA over a specific time period. This may be restricted according to the type of account you have.
gridregion - get the grid region (BA) for a specific longitude/latitude pair
makeacct - make an account for WattTime

- makeacct will make a free account on WattTime.org. It will also write the account name, password, and other info you supplied to WattTime.org into a file ($HOME/.WattTime/account) that the other programs will look for and use. You can also create this file from scratch if you already have an account. The file is documented later in this README.

- gridregion takes a latitude/longitude pair and returns the short abbreviation for the balancing authority. It also writes the abbreviation into the location file in .WattTime directory. This will also be used by other programs.

- emissions will return the emissions status for a specific Balancing Authority. You can specify a BA on the command line or use the one already in the location file. There is a quiet mode that will allow use of this function in scripts. It returns 0 if the grid is green, else it returns 1.

- griddata returns detailed grid power supply history information on 5 minute increments. In a free account this is limited to CAISO_ZP26 BA. It uses the account file but can be overridden on the command line. You can also specify a file name to write the grid data to instead. It can write a JSON formatted file or a CSV (comma separated value) file.

- passrecover allows password recovery of an existing account. WattTime will send a recovery link to the email address associated with the account.

Author

Maurice Bizzarri
Bizzarri Software
[email protected]
https://bizzarrisoftware.com

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Files Created

$HOME/.WattTime/account
Contains information on account - written by makeacct
Example File:
{"username":"account-name","password":"account-password","email":"email address","org":"organization name"}

$HOME/.WattTime/ba
Contains location searched for in gridregion. Will be used by griddata and emissions. Can be overridden by using command line arguments.
Example File:
CAISO_ZP26

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.