Git Product home page Git Product logo

octoplot's Introduction

OctoPlot

OctoPlot is a small command line tool that draws a graph of the Octopus Energy Agile pricing in your terminal.

Agile Octopus is a 100% green electricity tariff that regularly pays you to consume electricity. Welcome to the future.

If you are not already living in the future then you can switch to Octopus Energy and get £50 credit with this referral link.

Examples

Down to 11.

OctoPlot screenshot

Down to 12.

Getting pricing data...

Pricing data from Fri 22 May 13:00 to Sun 24 May 15:00 for region P

 18p                                                                                                     
 17p          £ £                                                                                        
 16p          £££                                                                                        
 15p        £ £££                                                                                        
 14p        £££££                                                                                        
 13p        £££££                                           £ £££                                        
 12p        £££££                                           £ £££                                        
 11p       ££££££                                           £££££                                        
 10p       ££££££                                           £££££                                        
 09p       ££££££                                           £££££                                        
 08p       ££££££                                           £££££                                        
 07p       ££££££                                           £££££                                        
 06p       £££££££                                         ££££££                                        
 05p       £££££££ £ £ £                                   ££££££                                        
 04p       £££££££££££££                                   ££££££        £                               
 03p       £££££££££££££                                   ££££££        £ £                             
 02p       £££££££££££££ £                                 ££££££        £ £                    £        
 01p       ££££££££££££££££                                £££££££££££££££££££                 ££        
 00p £     ££££££££££££££££££                ££££          £££££££££££££££££££                 ££   £    
---------------------------------------------------------------------------------------------------------
-01p £     £££££££££££££££££££               ££££          ££££££££££££££££££££                £££££££   
-02p £££   ££££££££££££££££££££             £££££  £       £££££££££££££££££££££ £        £   ££££££££ £ 
-03p ££££ ££££££££££££££££££££££            £££££££££      £££££££££££££££££££££ £        £   £££££££££££
-04p £££££££££££££££££££££££££££          ££££££££££££     £££££££££££££££££££££££      £ £ £ £££££££££££
-05p £££££££££££££££££££££££££££        £ ££££££££££££     ££££££££££££££££££££££££££   £ £ £££££££££££££
-06p £££££££££££££££££££££££££££££      £ £££££££££££££    ££££££££££££££££££££££££££££££££££££££££££££££
-07p £££££££££££££££££££££££££££££     ££ £££££££££££££    ££££££££££££££££££££££££££££££££££££££££££££££
-08p ££££££££££££££££££££££££££££££    ££ £££££££££££££    ££££££££££££££££££££££££££££££££££££££££££££££
-09p ££££££££££££££££££££££££££££££    ££ £££££££££££££    ££££££££££££££££££££££££££££££££££££££££££££££
-10p ££££££££££££££££££££££££££££££££ £££ £££££££££££££    ££££££££££££££££££££££££££££££££££££££££££££££
-11p ££££££££££££££££££££££££££££££££££££ £££££££££££££    ££££££££££££££££££££££££££££££££££££££££££££££
     1 1 1 1 1 1 1 2 2 2 2                     1 1 1 1 1 1 1 1 1 1 2 2 2 2                     1 1 1 1 1 
     3 4 5 6 7 8 9 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 

Paid most for electricity between Sat 23 May 14:30 and Sat 23 May 15:00 (-12.327p/kWh inc. VAT)

Use

Download a pre-built self-contained binary from the releases page and decompress it to a folder.

Change directory to the folder in a command prompt.

Run the app in your terminal specifying the region ID character for the area you are interested in.

E.g. ./octoplot j for South East England. The default value is P (North Scotland).

Add the folder to your PATH if you want to run octoplot from anywhere.

Regions

These are the region codes:

EastEngland = "A"
EastMidlands = "B"
London = "C"
NorthWales = "D"
WestMidlands = "E"
NorthEastEngland = "F"
NorthWestEngland = "G"
SouthEngland = "H"
SouthEastEngland = "J"
SouthWales = "K"
SouthWestEngland = "L"
Yorkshire = "M"
SouthScotland = "N"
NorthScotland = "P"

Build

To build and run from source you will need the .NET SDK.

Clone the repo.

git clone [email protected]:jpsingleton/octoplot.git

Run the tool for the region you are in.

dotnet run j

License

Licensed under the EUPL-1.2-or-later

This project is treeware! If you found it useful then please plant a tree for me.

Buy me a tree!

octoplot's People

Contributors

jpsingleton 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.