Giter Club home page Giter Club logo

go-griddy's Introduction

go-griddy

A simple Go package for pulling live pricing from GoGriddy.com

Requirements

You will need to get your Meter ID, Member ID and Settlement Point from https://app.gogriddy.com

Look for a network request ending in /getnow. The Request Payload will contain all this information.

Usage

$ go run cmd/query.go -help
Usage of query:
  -config string
    	Path to toml configuration file.
  -memberid string
    	Your Member ID
  -meterid string
    	Your meter ID
  -settlement string
    	Settlement Point (ex: LZ_HOUSTON)
  -url string
    	URL to be queried
go run cmd/query.go -config config.toml
go run cmd/query.go -memberid abc123 -meterid your-uuid -settlement LZ_YOUR_CITY

Example

$ go run cmd/query.go -config config.toml
Server Time   : 2018-07-23T23:10:00Z
Settlement    : LZ_CITY
Price Type    : lmp
Price         : 3.30 ¢
Value Score   : 10
Mean Price    : 17.98 ¢
Diff Mean     : -14.67 ¢
High          : 206.04 ¢
Low           : 1.02 ¢
Local Time    : 2018-07-23T18:10:00-07:00
---------------
Data TTL      : 28 Sec.

go-griddy's People

Contributors

mikemrm avatar

Watchers

James Cloos 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.