Giter Club home page Giter Club logo

jerbzz / pi-eco-indicator Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 5.0 5.13 MB

Display at-a-glance data of carbon intensity or Octopus Agile prices on a Pimoroni Blinkt! display or a Pimoroni Inky pHAT display.

License: BSD 3-Clause "New" or "Revised" License

Python 93.67% Shell 6.33%
agile carbon carbon-emissions carbon-intensity carbon-intensity-api carbon-intensity-forecast climate climate-change octopus octopus-agile octopus-agile-prices octopus-api octopus-energy octopus-energy-agile pimoroni-blinkt pimoroni-inky-phat pimoroni-inkyphat

pi-eco-indicator's People

Contributors

jerbzz avatar joeboyc2 avatar sidewinder42 avatar stickler-ci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pi-eco-indicator's Issues

Display Agile Export prices.

As above - support Agile Export as an additional mode. Perhaps add a new configuration option for agile_price mode which is either "import" or "export".

How to Test without a screen

Is your feature request related to a problem? Please describe.
Wonderful project, I'm just trying to add my own tariff FLUX-IMPORT-23-02-14/ but trying to do it on a RPi Zero is soo slow, so would like to know the best way to just test this without the Inky pHat dependencies on my host machine. As I'm having issues adding the tarrif getting

Connected to database...
Inky pHAT display selected.
Standard display orientation.
Working in Octopus Agile import mode.
Agile version set: 40p cap Flux)
Detected Black pHAT (SSD1608)
Traceback (most recent call last):
  File "/home/pi/pi-eco-indicator/./update_display.py", line 67, in <module>
    eco_indicator.update_inky(config, data_rows, args.demo)
  File "/home/pi/pi-eco-indicator/eco_indicator.py", line 372, in update_inky
    high_slots_start_idx = high_slots_list.index(max(high_slots_list))
ValueError: max() arg is an empty sequence

Describe the solution you'd like
Option to have the output as the Inky, Blinkt or terminal ( for development )

Describe alternatives you've considered
I'm trying to work through it and have forked your repo here https://github.com/GraemeDBlue/pi-eco-indicator but if I can would like to contribute back to this repo.

Additional context
Great little project got me up and running in no time, fantastic docs.

update_display.py fails to run when mode is changed in config file and new data is not fetched

To Reproduce
Set mode to carbon, store data and update display
Then set mode to agile, and update display
Error occurs

Expected behaviour
The missing data should be handled gracefully, perhaps with a reminder to store data first

*Error

Traceback (most recent call last):
  File "/home/pi/pi-eco-indicator/./update_display.py", line 67, in <module>
    eco_indicator.update_inky(config, data_rows, args.demo)
  File "/home/pi/pi-eco-indicator/eco_indicator.py", line 261, in update_inky
    high_slots_start_idx = high_slots_list.index(max(high_slots_list))
ValueError: max() arg is an empty sequence

`os.chdir` fails when script invoked as `python x` rather than `./x`

Hi,

Firstly, great software and instructions !

I am running a Pi Zero with Inky pHat
Along with 32bit Buster with no desktop

I have only followed your instructions and not installed anything else.

After about 24 hours of usage I notice that the graphics for the graph start to not show from right to left as the day goes on?

Also if I restart the Pi, the graph doesnt come back, as though it remembers that it wasnt there!

I have fully reinstalled the system and started from scratch but the same has happened again.

Any idea on what could be wrong?

Thanks in advance

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.