pufferfish-tech / octopus-agile-pi-prices

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

VAT Exclusive Price Shown #13

Closed graydon2212 closed 3 years ago

graydon2212 commented 3 years ago

Hi,

I'm new to all of this, so hope I'm not making a mistake here....

I noticed the price shown on my Inky pHAT is 10.7p, but the account page on my Octopus Agile says 11.25p. I have looked at the data downloaded from the Octopus API (Area K) and it says the exclusive rate is 10.71p and the inclusive rate is 11.255p.

Then I took a look at store_prices.py - this is where I'm totally clueless - I'm a complete newbie...

The code seems to say it is printing the value including vat to the Inky pHAT??? Is this correct?

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

graydon2212 commented 3 years ago

Screenshot 2020-11-02 at 10 22 02 Screenshot 2020-11-02 at 10 22 22 Screenshot 2020-11-02 at 10 22 58

pufferfish-tech commented 3 years ago

Have you changed your code to "K" in the first line of store_prices.py? You would need to re-run store_prices.py (and probably also delete the sqlite database file (octoprice.sqlite) first too) for this to update for existing data. I think its an area issue not a vat issue as my area is showing 10.7p for 10am->10:30am :)

graydon2212 commented 3 years ago

Ah!..that might explain it!... my area code K is exactly 5% different to the default area code!! Thanks....

my brain = garbage in, garbage out