Blog ≫ 2024 ≫ I have simplified my energy usage graph a bit
Mon Jun 3
Simplified the graph I put on here a bit, dropping some features, and reducing the size of the code. I'm not so interested in the "how much it has used while I was asleep" value now, so removing that. Also simplified how I display what was peak usage. Will have to see if it still works when we next have some free energy 1 .
Here's a snapshot of how it looked before I changed it, just for posterity
Energy usage graph, electricity and gas - 🕖 is cost at getting up time...
Graph line from 2.07 to 97.93p last week
p last week
Graph line from 1.91 to 73.74p
p
🕖 £0.79
By 6:30 on Sun May 26 cost was £0.79
Sun £4.70
Total cost for Sun May 26 was £4.70
🕖 £0.88
By 6:30 on Mon May 27 cost was £0.88
7:30 is peak energy use period
8:00 is peak energy use period
8:30 is super peak energy use period
9:00 is super peak energy use period
9:30 is peak energy use period
10:00 is peak energy use period
15:30 is peak energy use period
16:00 is peak energy use period
16:30 is super peak energy use period
17:00 is super peak energy use period
17:30 is peak energy use period
18:00 is peak energy use period
Mon £4.43
Total cost for Mon May 27 was £4.43
🕖 £0.83
By 6:30 on Tue May 28 cost was £0.83
7:30 is peak energy use period
8:00 is peak energy use period
8:30 is super peak energy use period
9:00 is super peak energy use period
9:30 is peak energy use period
10:00 is peak energy use period
15:30 is peak energy use period
16:00 is peak energy use period
16:30 is super peak energy use period
17:00 is super peak energy use period
17:30 is peak energy use period
18:00 is peak energy use period
Tue £4.60
Total cost for Tue May 28 was £4.60
🕖 £0.83
By 6:30 on Wed May 29 cost was £0.83
7:30 is peak energy use period
8:00 is peak energy use period
8:30 is super peak energy use period
9:00 is super peak energy use period
9:30 is peak energy use period
10:00 is peak energy use period
15:30 is peak energy use period
16:00 is peak energy use period
16:30 is super peak energy use period
17:00 is super peak energy use period
17:30 is peak energy use period
18:00 is peak energy use period
Wed £5.96
Total cost for Wed May 29 was £5.96
🕖 £0.95
By 6:30 on Thu May 30 cost was £0.95
7:30 is peak energy use period
8:00 is peak energy use period
8:30 is super peak energy use period
9:00 is super peak energy use period
9:30 is peak energy use period
10:00 is peak energy use period
15:30 is peak energy use period
16:00 is peak energy use period
16:30 is super peak energy use period
17:00 is super peak energy use period
17:30 is peak energy use period
18:00 is peak energy use period
Thu £7.20
Total cost for Thu May 30 was £7.20
🕖 £0.97
By 6:30 on Fri May 31 cost was £0.97
7:30 is peak energy use period
8:00 is peak energy use period
8:30 is super peak energy use period
9:00 is super peak energy use period
9:30 is peak energy use period
10:00 is peak energy use period
15:30 is peak energy use period
16:00 is peak energy use period
16:30 is super peak energy use period
17:00 is super peak energy use period
17:30 is peak energy use period
18:00 is peak energy use period
Fri £6.54
Total cost for Fri May 31 was £6.54
🕖 £0.78
By 6:30 on Sat Jun 01 cost was £0.78
Sat £3.11
Total cost for Sat Jun 01 was £3.11
Y axis of graph
0 -
50 -
X axis of graph
May 27
28
29
30
31
Jun 1
and here's a snapshot of the smaller version. It's about 30% less code 40% less code by also deduplicating some of the points:
Energy usage graph, electricity and gas
Graph line from 2.07 to 97.93p last week
p last week
Graph line from 1.91 to 73.74p
p
Mon £4.34
Total cost for Mon May 27 was £4.34
Tue £4.60
Total cost for Tue May 28 was £4.60
Wed £5.96
Total cost for Wed May 29 was £5.96
Thu £7.20
Total cost for Thu May 30 was £7.20
Fri £6.54
Total cost for Fri May 31 was £6.54
Sat £3.19
Total cost for Sat Jun 01 was £3.19
Sun £6.17
Total cost for Sun Jun 02 was £6.17
Graph line from 0.0 to 73.74
0
Y axis of graph
0 -
50 -
X axis of graph
May 28
29
30
31
Jun 1
2
Light cloud and light winds, 13 - 19℃.
Join Octopus Energy here and we both earn money.
🕵️
⬅️ Oh there is a ghost in my house messing with my blinds :: Health stats 4/6/24 ➡️
Paul Clarkeʼs blog - I live in Hythe near Folkestone, Kent. Married to Clare + father to two, I'm a full-stack web engineer, + I do js / nodejs, some ruby, other languages etc. I like pubs, running, eating, home automation and other diy jiggery-pokery, history, genealogy, TV, squirrels, pirates, lego, and TIME TRAVEL.