pufferfish-tech / octopus-agile-pi-prices

Display the upcoming prices on the Octopus Energy "Agile" tariff.
Apache License 2.0
84 stars 27 forks source link

Rotate screen on inkyPhat #6

Open pufferfish-tech opened 4 years ago

pufferfish-tech commented 4 years ago

Nice to have, easy to include: allow 180 degree rotation of display.

Info from abbottcam:

I’ve found out how...

https://forums.pimoroni.com/t/inkyphat-display-rotation-command-changed/9675/2

Put this at the bottom of octoprice_main_inky.py

flipped = img.rotate(180) inky_display.set_image(flipped) inky_display.show()

Mobile: 07843448046 Website: www.abbottcam.co.uk IMDb:http://www.imdb.com/name/nm2555732/ —————————————————— Sent from my iPhone

On 20 Apr 2020, at 11:04, pufferfish-tech notifications@github.com wrote:

 It uses PIL which is a standard library so I imagine you can, I am not sure how to though either.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Originally posted by @abbottcam in https://github.com/pufferfish-tech/octopus-agile-pi-prices/issues/2#issuecomment-616551435

sidewinder42 commented 4 years ago

I had this in my fork of your code. There’s also a fix for Daylight Savings, but not nearly as elegantly as how you did it! 😎

pufferfish-tech commented 4 years ago

I had this in my fork of your code. There’s also a fix for Daylight Savings, but not nearly as elegantly as how you did it! 😎

I used Chiny91's DST fix for that one I think. I need to put some time into understanding the intricacies of github...I hadn't spotted your fork!

pufferfish-tech commented 4 years ago

Ah, I see what you have done there with not plotting missing prices. Hmm. Must include that...