Page 2 of 2

Re: Daily Energy usage cost

Posted: Wednesday 04 April 2018 10:12
by MikeF
Run it at the command line (e.g., python </path to script/>energy_cost.py ) and see if you get any errors.

Re: Daily Energy usage cost

Posted: Wednesday 04 April 2018 17:59
by EdwinK
When I run the script from command line there are no errors.

Re: Daily Energy usage cost

Posted: Wednesday 04 April 2018 18:01
by EdwinK
These are the costs I find at the Eneco site.

fixed = 0 # fixed cost in euro
unit = 0.2032 # unit cost in eurocents

Re: Daily Energy usage cost

Posted: Wednesday 04 April 2018 23:27
by MikeF
Wow, that's cheap! :o
My unit rate is 13.94p = 16.03 cents (approx.)
- are you sure your rate isn't 20.32 cents? (my script divides by 100, to convert to pounds / euros)

Mike

Re: Daily Energy usage cost

Posted: Thursday 05 April 2018 9:14
by EdwinK
Yes, you are right.

€ 0,2271 Per kwh High
€ 0,2130 Per kwh Low
Fixed costs € 3,46 month

Re: Daily Energy usage cost

Posted: Sunday 03 June 2018 23:12
by astrapowerrr
Edwink
I have also toon can i copy your script so i can change it to my own costs.
I am very interested in using daily cost just like toon.
And use this in dashticz too.

Can you help me with this one?

Re: Daily Energy usage cost

Posted: Friday 04 January 2019 20:41
by garethiowc
Hi All,

recently rebuild my computer and have run into the following problem -

Code: Select all

/usr/bin/python2.7  energy_cost.py
Traceback (most recent call last):
  File "energy_cost.py", line 36, in <module>
    kW = domoticzread(OwlIdx, 'CounterToday')
  File "energy_cost.py", line 32, in domoticzread
    jsonData = json.loads(response.text)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
any ideas?

Re: Daily Energy usage cost

Posted: Sunday 13 January 2019 16:52
by simon_rb
This looks good.

I am looking for a way to calculate the cost which takes into account dual tariffs like Economy 7? Some how add a time calculation into the equation or rely on a dummy switch/VAR which could be timed with the ECO 7 timings?

Would also love the monthly cost also..

Any help would be great.

Many Thanks