node-red-contrib-power-saver 2.1.0 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/.github/FUNDING.yml +12 -0
  2. package/CHANGELOG.md +1 -43
  3. package/README.md +3 -231
  4. package/docs/.vuepress/config.js +67 -0
  5. package/docs/.vuepress/dist/404.html +15 -0
  6. package/docs/.vuepress/dist/assets/css/styles.e835bef6.css +8 -0
  7. package/docs/.vuepress/dist/assets/img/back-to-top.8b37f773.svg +1 -0
  8. package/docs/.vuepress/dist/assets/img/elvia-config-no-config.b4bb972c.png +0 -0
  9. package/docs/.vuepress/dist/assets/img/elvia-config-no-tariff.3f89aba8.png +0 -0
  10. package/docs/.vuepress/dist/assets/img/elvia-config-select-tariff.0f73fd56.png +0 -0
  11. package/docs/.vuepress/dist/assets/img/elvia-config-subscription-key.8be8ab8a.png +0 -0
  12. package/docs/.vuepress/dist/assets/img/elvia-flow.bae2a4d5.png +0 -0
  13. package/docs/.vuepress/dist/assets/img/example-flow-1.3ff3e23f.png +0 -0
  14. package/docs/.vuepress/dist/assets/img/example-flow-2.b653b58d.png +0 -0
  15. package/docs/.vuepress/dist/assets/img/migrate-best-save.f73420f6.png +0 -0
  16. package/docs/.vuepress/dist/assets/img/migrate-power-saver.aae13f9d.png +0 -0
  17. package/docs/.vuepress/dist/assets/img/node-power-saver.51ff2e5d.png +0 -0
  18. package/docs/.vuepress/dist/assets/img/node-ps-elvia-add-tariff.94ea2b09.png +0 -0
  19. package/docs/.vuepress/dist/assets/img/node-ps-receive-price.76eaa418.png +0 -0
  20. package/docs/.vuepress/dist/assets/img/node-ps-strategy-best-save.392292d5.png +0 -0
  21. package/docs/.vuepress/dist/assets/img/node-ps-strategy-lowest-price.3a4ad347.png +0 -0
  22. package/docs/.vuepress/dist/assets/img/power-saver-nordpool-current-state.bf14afde.png +0 -0
  23. package/docs/.vuepress/dist/assets/img/power-saver-nordpool-events-state.8c392507.png +0 -0
  24. package/docs/.vuepress/dist/assets/img/power-saver-tibber-mqtt.16891dd2.png +0 -0
  25. package/docs/.vuepress/dist/assets/js/293.5e967839.js +1 -0
  26. package/docs/.vuepress/dist/assets/js/491.c183eba3.js +1 -0
  27. package/docs/.vuepress/dist/assets/js/812.79dad458.js +2 -0
  28. package/docs/.vuepress/dist/assets/js/812.79dad458.js.LICENSE.txt +8 -0
  29. package/docs/.vuepress/dist/assets/js/app.4ee3384b.js +1 -0
  30. package/docs/.vuepress/dist/assets/js/runtime~app.cafd6537.js +1 -0
  31. package/docs/.vuepress/dist/assets/js/v-08683c60.07fe8291.js +1 -0
  32. package/docs/.vuepress/dist/assets/js/v-0aca7ba6.aec5ba75.js +1 -0
  33. package/docs/.vuepress/dist/assets/js/v-0b5e3c8c.d008d8bc.js +1 -0
  34. package/docs/.vuepress/dist/assets/js/v-1ad821fa.85407071.js +1 -0
  35. package/docs/.vuepress/dist/assets/js/v-30acb564.73b8e29f.js +1 -0
  36. package/docs/.vuepress/dist/assets/js/v-3706649a.d7f73384.js +1 -0
  37. package/docs/.vuepress/dist/assets/js/v-4637f9e4.22ab9413.js +1 -0
  38. package/docs/.vuepress/dist/assets/js/v-510ed0d4.204a09ec.js +1 -0
  39. package/docs/.vuepress/dist/assets/js/v-5954bcb2.be07962c.js +1 -0
  40. package/docs/.vuepress/dist/assets/js/v-5db8da3a.ac192f35.js +1 -0
  41. package/docs/.vuepress/dist/assets/js/v-61f728ca.802ab15e.js +1 -0
  42. package/docs/.vuepress/dist/assets/js/v-677dfaed.9bbbd037.js +1 -0
  43. package/docs/.vuepress/dist/assets/js/v-7c87f26e.457a1a60.js +1 -0
  44. package/docs/.vuepress/dist/assets/js/v-8daa1a0e.db8b59c6.js +1 -0
  45. package/docs/.vuepress/dist/assets/js/v-b4a42144.6e0c5aa0.js +1 -0
  46. package/docs/.vuepress/dist/assets/js/v-e8c55052.5f85b6cd.js +1 -0
  47. package/docs/.vuepress/dist/assets/js/v-fffb8e28.e815e852.js +1 -0
  48. package/docs/.vuepress/dist/changelog/index.html +15 -0
  49. package/docs/.vuepress/dist/contribute/index.html +15 -0
  50. package/docs/.vuepress/dist/euro.png +0 -0
  51. package/docs/.vuepress/dist/examples/example-nordpool-current-state.html +169 -0
  52. package/docs/.vuepress/dist/examples/example-nordpool-events-state.html +173 -0
  53. package/docs/.vuepress/dist/examples/example-tibber-mqtt.html +182 -0
  54. package/docs/.vuepress/dist/examples/index.html +15 -0
  55. package/docs/.vuepress/dist/guide/index.html +52 -0
  56. package/docs/.vuepress/dist/index.html +15 -0
  57. package/docs/.vuepress/dist/logo.png +0 -0
  58. package/docs/.vuepress/dist/nodes/index.html +15 -0
  59. package/docs/.vuepress/dist/nodes/old-power-saver-doc.html +97 -0
  60. package/docs/.vuepress/dist/nodes/power-saver.html +15 -0
  61. package/docs/.vuepress/dist/nodes/ps-elvia-add-tariff.html +15 -0
  62. package/docs/.vuepress/dist/nodes/ps-receive-price.html +80 -0
  63. package/docs/.vuepress/dist/nodes/ps-strategy-best-save.html +65 -0
  64. package/docs/.vuepress/dist/nodes/ps-strategy-lowest-price.html +89 -0
  65. package/docs/.vuepress/dist/nodes/strategy-input.html +40 -0
  66. package/docs/.vuepress/public/euro.png +0 -0
  67. package/docs/.vuepress/public/logo.png +0 -0
  68. package/docs/README.md +32 -0
  69. package/docs/changelog/README.md +71 -0
  70. package/docs/contribute/README.md +39 -0
  71. package/docs/examples/README.md +5 -0
  72. package/docs/examples/example-nordpool-current-state.md +166 -0
  73. package/docs/examples/example-nordpool-events-state.md +170 -0
  74. package/docs/examples/example-tibber-mqtt.md +179 -0
  75. package/docs/guide/README.md +202 -0
  76. package/docs/images/all-nodes.png +0 -0
  77. package/docs/images/best-save-config.png +0 -0
  78. package/docs/images/elvia-add-tariff-node-used.png +0 -0
  79. package/docs/images/elvia-config-no-config.png +0 -0
  80. package/docs/images/elvia-config-no-tariff.png +0 -0
  81. package/docs/images/elvia-config-select-tariff.png +0 -0
  82. package/docs/images/elvia-config-subscription-key.png +0 -0
  83. package/docs/images/elvia-flow.png +0 -0
  84. package/docs/images/elvia-tariff-config.png +0 -0
  85. package/docs/images/euro.png +0 -0
  86. package/docs/images/example-flow-1.png +0 -0
  87. package/docs/images/example-flow-2.png +0 -0
  88. package/docs/images/logo.png +0 -0
  89. package/docs/images/lowest-price-config.png +0 -0
  90. package/docs/images/migrate-best-save.png +0 -0
  91. package/docs/images/migrate-power-saver.png +0 -0
  92. package/docs/images/node-power-saver.png +0 -0
  93. package/docs/images/node-ps-elvia-add-tariff.png +0 -0
  94. package/docs/images/node-ps-elvia-tariff-types.png +0 -0
  95. package/docs/images/node-ps-elvia-tariff.png +0 -0
  96. package/docs/images/node-ps-receive-price.png +0 -0
  97. package/docs/images/node-ps-strategy-best-save.png +0 -0
  98. package/docs/images/node-ps-strategy-lowest-price.png +0 -0
  99. package/{doc → docs/images}/node-red-contrib-power-saver-flow.png +0 -0
  100. package/docs/images/power-saver-nordpool-current-state.png +0 -0
  101. package/docs/images/power-saver-nordpool-events-state.png +0 -0
  102. package/docs/images/power-saver-tibber-mqtt.png +0 -0
  103. package/docs/nodes/README.md +53 -0
  104. package/docs/nodes/old-power-saver-doc.md +231 -0
  105. package/docs/nodes/power-saver.md +23 -0
  106. package/docs/nodes/ps-elvia-add-tariff.md +52 -0
  107. package/docs/nodes/ps-receive-price.md +153 -0
  108. package/docs/nodes/ps-strategy-best-save.md +142 -0
  109. package/docs/nodes/ps-strategy-lowest-price.md +165 -0
  110. package/docs/nodes/strategy-input.md +39 -0
  111. package/package.json +16 -4
  112. package/src/elvia/elvia-add-tariff.html +70 -0
  113. package/src/elvia/elvia-add-tariff.js +47 -0
  114. package/src/elvia/elvia-api.js +61 -0
  115. package/src/elvia/elvia-config.html +46 -0
  116. package/src/elvia/elvia-config.js +19 -0
  117. package/src/elvia/elvia-tariff-types.html +34 -0
  118. package/src/elvia/elvia-tariff-types.js +25 -0
  119. package/src/elvia/elvia-tariff.html +89 -0
  120. package/src/elvia/elvia-tariff.js +22 -0
  121. package/src/elvia/icons/elvia_hvite.svg +4 -0
  122. package/src/elvia/icons/elvia_positive_4 copy.svg +4 -0
  123. package/src/handle-input.js +162 -0
  124. package/src/power-saver.html +116 -0
  125. package/{power-saver.js → src/power-saver.js} +9 -32
  126. package/src/receive-price-functions.js +99 -0
  127. package/src/receive-price.html +30 -0
  128. package/src/receive-price.js +21 -0
  129. package/src/strategy-best-save-functions.js +110 -0
  130. package/src/strategy-best-save.html +116 -0
  131. package/src/strategy-best-save.js +95 -0
  132. package/src/strategy-lowest-price-functions.js +35 -0
  133. package/src/strategy-lowest-price.html +168 -0
  134. package/src/strategy-lowest-price.js +125 -0
  135. package/{utils.js → src/utils.js} +44 -100
  136. package/test/data/adjustedResult.js +219 -71
  137. package/test/data/adjustedResult_old.js +154 -0
  138. package/test/data/best-save-result.json +357 -0
  139. package/test/data/converted-prices.json +197 -0
  140. package/test/data/elvia-input-grid-tariff.json +760 -0
  141. package/test/data/elvia-input-power-prices.json +194 -0
  142. package/test/data/elvia-output-add-tariff.json +290 -0
  143. package/test/data/lowest-price-result-cont.json +18 -0
  144. package/test/data/lowest-price-result-split-allday.json +21 -0
  145. package/test/data/lowest-price-result-split-allday10.json +20 -0
  146. package/test/data/lowest-price-result-split.json +20 -0
  147. package/test/data/nordpool-current-state-prices.json +283 -0
  148. package/test/data/nordpool-event-prices.json +574 -0
  149. package/test/data/reconfigResult.js +220 -67
  150. package/test/data/reconfigResult_old.js +141 -0
  151. package/test/data/tibber-data-end-0-24h.json +197 -0
  152. package/test/data/tibber-data-end-0.json +101 -0
  153. package/test/data/tibber-prices-single-home.json +64 -0
  154. package/test/data/tibber-prices.json +124 -0
  155. package/test/data/tibber-result-end-0-24h.json +320 -0
  156. package/test/data/tibber-result-end-0.json +168 -0
  157. package/test/data/{tibber_result.json → tibber-result.json} +0 -0
  158. package/test/elvia.test.js +26 -0
  159. package/test/mostSavedStrategy.test.js +22 -55
  160. package/test/power-saver.test.js +21 -5
  161. package/test/receive-price-functions.test.js +153 -0
  162. package/test/receive-price.test.js +122 -0
  163. package/test/send-config-input.test.js +8 -10
  164. package/test/strategy-best-save-test-utils.js +32 -0
  165. package/test/strategy-best-save.test.js +103 -0
  166. package/test/strategy-lowest-price-functions.test.js +40 -0
  167. package/test/strategy-lowest-price.test.js +538 -0
  168. package/test/test-utils.js +0 -18
  169. package/test/utils.test.js +22 -180
  170. package/doc/example-nordpool-current-state.md +0 -166
  171. package/doc/example-nordpool-events-state.md +0 -153
  172. package/doc/example-tibber-mqtt.md +0 -189
  173. package/doc/power-saver-nordpool-current-state.png +0 -0
  174. package/doc/power-saver-nordpool-events-state.png +0 -0
  175. package/doc/power-saver-tibber-mqtt.png +0 -0
  176. package/mostSavedStrategy.js +0 -84
  177. package/power-saver.html +0 -308
  178. package/test/data/tibber_data.json +0 -412
  179. package/test/data/tibber_prices.json +0 -412
@@ -0,0 +1,197 @@
1
+ {
2
+ "source": "Tibber",
3
+ "priceData": [
4
+ {
5
+ "value": 0.4675,
6
+ "start": "2021-12-14T00:00:00.000+01:00"
7
+ },
8
+ {
9
+ "value": 0.4488,
10
+ "start": "2021-12-14T01:00:00.000+01:00"
11
+ },
12
+ {
13
+ "value": 0.4344,
14
+ "start": "2021-12-14T02:00:00.000+01:00"
15
+ },
16
+ {
17
+ "value": 0.4124,
18
+ "start": "2021-12-14T03:00:00.000+01:00"
19
+ },
20
+ {
21
+ "value": 0.413,
22
+ "start": "2021-12-14T04:00:00.000+01:00"
23
+ },
24
+ {
25
+ "value": 0.4232,
26
+ "start": "2021-12-14T05:00:00.000+01:00"
27
+ },
28
+ {
29
+ "value": 0.4,
30
+ "start": "2021-12-14T06:00:00.000+01:00"
31
+ },
32
+ {
33
+ "value": 0.4067,
34
+ "start": "2021-12-14T07:00:00.000+01:00"
35
+ },
36
+ {
37
+ "value": 0.504,
38
+ "start": "2021-12-14T08:00:00.000+01:00"
39
+ },
40
+ {
41
+ "value": 0.5341,
42
+ "start": "2021-12-14T09:00:00.000+01:00"
43
+ },
44
+ {
45
+ "value": 0.5179,
46
+ "start": "2021-12-14T10:00:00.000+01:00"
47
+ },
48
+ {
49
+ "value": 0.5375,
50
+ "start": "2021-12-14T11:00:00.000+01:00"
51
+ },
52
+ {
53
+ "value": 0.535,
54
+ "start": "2021-12-14T12:00:00.000+01:00"
55
+ },
56
+ {
57
+ "value": 0.5403,
58
+ "start": "2021-12-14T13:00:00.000+01:00"
59
+ },
60
+ {
61
+ "value": 0.5291,
62
+ "start": "2021-12-14T14:00:00.000+01:00"
63
+ },
64
+ {
65
+ "value": 0.5175,
66
+ "start": "2021-12-14T15:00:00.000+01:00"
67
+ },
68
+ {
69
+ "value": 0.4914,
70
+ "start": "2021-12-14T16:00:00.000+01:00"
71
+ },
72
+ {
73
+ "value": 0.4698,
74
+ "start": "2021-12-14T17:00:00.000+01:00"
75
+ },
76
+ {
77
+ "value": 0.4609,
78
+ "start": "2021-12-14T18:00:00.000+01:00"
79
+ },
80
+ {
81
+ "value": 0.4408,
82
+ "start": "2021-12-14T19:00:00.000+01:00"
83
+ },
84
+ {
85
+ "value": 0.4263,
86
+ "start": "2021-12-14T20:00:00.000+01:00"
87
+ },
88
+ {
89
+ "value": 0.3946,
90
+ "start": "2021-12-14T21:00:00.000+01:00"
91
+ },
92
+ {
93
+ "value": 0.3852,
94
+ "start": "2021-12-14T22:00:00.000+01:00"
95
+ },
96
+ {
97
+ "value": 0.373,
98
+ "start": "2021-12-14T23:00:00.000+01:00"
99
+ },
100
+ {
101
+ "value": 0.4675,
102
+ "start": "2021-12-15T00:00:00.000+01:00"
103
+ },
104
+ {
105
+ "value": 0.4488,
106
+ "start": "2021-12-15T01:00:00.000+01:00"
107
+ },
108
+ {
109
+ "value": 0.4344,
110
+ "start": "2021-12-15T02:00:00.000+01:00"
111
+ },
112
+ {
113
+ "value": 0.4124,
114
+ "start": "2021-12-15T03:00:00.000+01:00"
115
+ },
116
+ {
117
+ "value": 0.413,
118
+ "start": "2021-12-15T04:00:00.000+01:00"
119
+ },
120
+ {
121
+ "value": 0.4232,
122
+ "start": "2021-12-15T05:00:00.000+01:00"
123
+ },
124
+ {
125
+ "value": 0.4,
126
+ "start": "2021-12-15T06:00:00.000+01:00"
127
+ },
128
+ {
129
+ "value": 0.4067,
130
+ "start": "2021-12-15T07:00:00.000+01:00"
131
+ },
132
+ {
133
+ "value": 0.504,
134
+ "start": "2021-12-15T08:00:00.000+01:00"
135
+ },
136
+ {
137
+ "value": 0.5341,
138
+ "start": "2021-12-15T09:00:00.000+01:00"
139
+ },
140
+ {
141
+ "value": 0.5179,
142
+ "start": "2021-12-15T10:00:00.000+01:00"
143
+ },
144
+ {
145
+ "value": 0.5375,
146
+ "start": "2021-12-15T11:00:00.000+01:00"
147
+ },
148
+ {
149
+ "value": 0.535,
150
+ "start": "2021-12-15T12:00:00.000+01:00"
151
+ },
152
+ {
153
+ "value": 0.5403,
154
+ "start": "2021-12-15T13:00:00.000+01:00"
155
+ },
156
+ {
157
+ "value": 0.5291,
158
+ "start": "2021-12-15T14:00:00.000+01:00"
159
+ },
160
+ {
161
+ "value": 0.5175,
162
+ "start": "2021-12-15T15:00:00.000+01:00"
163
+ },
164
+ {
165
+ "value": 0.4914,
166
+ "start": "2021-12-15T16:00:00.000+01:00"
167
+ },
168
+ {
169
+ "value": 0.4698,
170
+ "start": "2021-12-15T17:00:00.000+01:00"
171
+ },
172
+ {
173
+ "value": 0.4609,
174
+ "start": "2021-12-15T18:00:00.000+01:00"
175
+ },
176
+ {
177
+ "value": 0.4408,
178
+ "start": "2021-12-15T19:00:00.000+01:00"
179
+ },
180
+ {
181
+ "value": 0.4263,
182
+ "start": "2021-12-15T20:00:00.000+01:00"
183
+ },
184
+ {
185
+ "value": 0.3946,
186
+ "start": "2021-12-15T21:00:00.000+01:00"
187
+ },
188
+ {
189
+ "value": 0.3852,
190
+ "start": "2021-12-15T22:00:00.000+01:00"
191
+ },
192
+ {
193
+ "value": 0.373,
194
+ "start": "2021-12-15T23:00:00.000+01:00"
195
+ }
196
+ ]
197
+ }
@@ -0,0 +1,101 @@
1
+ {
2
+ "source": "Tibber",
3
+ "priceData": [
4
+ {
5
+ "value": 0.4675,
6
+ "start": "2021-12-14T00:00:00.000+01:00"
7
+ },
8
+ {
9
+ "value": 0.4488,
10
+ "start": "2021-12-14T01:00:00.000+01:00"
11
+ },
12
+ {
13
+ "value": 0.4344,
14
+ "start": "2021-12-14T02:00:00.000+01:00"
15
+ },
16
+ {
17
+ "value": 0.4124,
18
+ "start": "2021-12-14T03:00:00.000+01:00"
19
+ },
20
+ {
21
+ "value": 0.413,
22
+ "start": "2021-12-14T04:00:00.000+01:00"
23
+ },
24
+ {
25
+ "value": 0.4232,
26
+ "start": "2021-12-14T05:00:00.000+01:00"
27
+ },
28
+ {
29
+ "value": 0.4,
30
+ "start": "2021-12-14T06:00:00.000+01:00"
31
+ },
32
+ {
33
+ "value": 0.4067,
34
+ "start": "2021-12-14T07:00:00.000+01:00"
35
+ },
36
+ {
37
+ "value": 0.504,
38
+ "start": "2021-12-14T08:00:00.000+01:00"
39
+ },
40
+ {
41
+ "value": 0.5341,
42
+ "start": "2021-12-14T09:00:00.000+01:00"
43
+ },
44
+ {
45
+ "value": 0.5179,
46
+ "start": "2021-12-14T10:00:00.000+01:00"
47
+ },
48
+ {
49
+ "value": 0.5375,
50
+ "start": "2021-12-14T11:00:00.000+01:00"
51
+ },
52
+ {
53
+ "value": 0.535,
54
+ "start": "2021-12-14T12:00:00.000+01:00"
55
+ },
56
+ {
57
+ "value": 0.5403,
58
+ "start": "2021-12-14T13:00:00.000+01:00"
59
+ },
60
+ {
61
+ "value": 0.5291,
62
+ "start": "2021-12-14T14:00:00.000+01:00"
63
+ },
64
+ {
65
+ "value": 0.5175,
66
+ "start": "2021-12-14T15:00:00.000+01:00"
67
+ },
68
+ {
69
+ "value": 0.4914,
70
+ "start": "2021-12-14T16:00:00.000+01:00"
71
+ },
72
+ {
73
+ "value": 0.4698,
74
+ "start": "2021-12-14T17:00:00.000+01:00"
75
+ },
76
+ {
77
+ "value": 0.4609,
78
+ "start": "2021-12-14T18:00:00.000+01:00"
79
+ },
80
+ {
81
+ "value": 0.4408,
82
+ "start": "2021-12-14T19:00:00.000+01:00"
83
+ },
84
+ {
85
+ "value": 0.4263,
86
+ "start": "2021-12-14T20:00:00.000+01:00"
87
+ },
88
+ {
89
+ "value": 0.3946,
90
+ "start": "2021-12-14T21:00:00.000+01:00"
91
+ },
92
+ {
93
+ "value": 0.3852,
94
+ "start": "2021-12-14T22:00:00.000+01:00"
95
+ },
96
+ {
97
+ "value": 0.373,
98
+ "start": "2021-12-14T23:00:00.000+01:00"
99
+ }
100
+ ]
101
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "payload": {
3
+ "viewer": {
4
+ "home": {
5
+ "currentSubscription": {
6
+ "priceInfo": {
7
+ "today": [
8
+ { "total": 0.2494, "startsAt": "2021-10-11T00:00:00.000+02:00" },
9
+ { "total": 0.2209, "startsAt": "2021-10-11T01:00:00.000+02:00" },
10
+ { "total": 0.2099, "startsAt": "2021-10-11T02:00:00.000+02:00" },
11
+ { "total": 0.219, "startsAt": "2021-10-11T03:00:00.000+02:00" },
12
+ { "total": 0.2614, "startsAt": "2021-10-11T04:00:00.000+02:00" },
13
+ { "total": 0.4426, "startsAt": "2021-10-11T05:00:00.000+02:00" },
14
+ { "total": 0.5433, "startsAt": "2021-10-11T06:00:00.000+02:00" },
15
+ { "total": 0.5667, "startsAt": "2021-10-11T07:00:00.000+02:00" },
16
+ { "total": 0.5847, "startsAt": "2021-10-11T08:00:00.000+02:00" },
17
+ { "total": 0.5762, "startsAt": "2021-10-11T09:00:00.000+02:00" },
18
+ { "total": 0.5391, "startsAt": "2021-10-11T10:00:00.000+02:00" },
19
+ { "total": 0.5124, "startsAt": "2021-10-11T11:00:00.000+02:00" },
20
+ { "total": 0.504, "startsAt": "2021-10-11T12:00:00.000+02:00" },
21
+ { "total": 0.5057, "startsAt": "2021-10-11T13:00:00.000+02:00" },
22
+ { "total": 0.5066, "startsAt": "2021-10-11T14:00:00.000+02:00" },
23
+ { "total": 0.5136, "startsAt": "2021-10-11T15:00:00.000+02:00" },
24
+ { "total": 0.5143, "startsAt": "2021-10-11T16:00:00.000+02:00" },
25
+ { "total": 0.5306, "startsAt": "2021-10-11T17:00:00.000+02:00" },
26
+ { "total": 0.5534, "startsAt": "2021-10-11T18:00:00.000+02:00" },
27
+ { "total": 0.5511, "startsAt": "2021-10-11T19:00:00.000+02:00" },
28
+ { "total": 0.5491, "startsAt": "2021-10-11T20:00:00.000+02:00" },
29
+ { "total": 0.5485, "startsAt": "2021-10-11T21:00:00.000+02:00" },
30
+ { "total": 0.5481, "startsAt": "2021-10-11T22:00:00.000+02:00" },
31
+ { "total": 0.5218, "startsAt": "2021-10-11T23:00:00.000+02:00" }
32
+ ],
33
+ "tomorrow": [
34
+ { "total": 0.4533, "startsAt": "2021-10-12T00:00:00.000+02:00" },
35
+ { "total": 0.4196, "startsAt": "2021-10-12T01:00:00.000+02:00" },
36
+ { "total": 0.4037, "startsAt": "2021-10-12T02:00:00.000+02:00" },
37
+ { "total": 0.3829, "startsAt": "2021-10-12T03:00:00.000+02:00" },
38
+ { "total": 0.4555, "startsAt": "2021-10-12T04:00:00.000+02:00" },
39
+ { "total": 0.4721, "startsAt": "2021-10-12T05:00:00.000+02:00" },
40
+ { "total": 0.4903, "startsAt": "2021-10-12T06:00:00.000+02:00" },
41
+ { "total": 0.5028, "startsAt": "2021-10-12T07:00:00.000+02:00" },
42
+ { "total": 0.5163, "startsAt": "2021-10-12T08:00:00.000+02:00" },
43
+ { "total": 0.5264, "startsAt": "2021-10-12T09:00:00.000+02:00" },
44
+ { "total": 0.5346, "startsAt": "2021-10-12T10:00:00.000+02:00" },
45
+ { "total": 0.5224, "startsAt": "2021-10-12T11:00:00.000+02:00" },
46
+ { "total": 0.5071, "startsAt": "2021-10-12T12:00:00.000+02:00" },
47
+ { "total": 0.5045, "startsAt": "2021-10-12T13:00:00.000+02:00" },
48
+ { "total": 0.5024, "startsAt": "2021-10-12T14:00:00.000+02:00" },
49
+ { "total": 0.5038, "startsAt": "2021-10-12T15:00:00.000+02:00" },
50
+ { "total": 0.5118, "startsAt": "2021-10-12T16:00:00.000+02:00" },
51
+ { "total": 0.5111, "startsAt": "2021-10-12T17:00:00.000+02:00" },
52
+ { "total": 0.5108, "startsAt": "2021-10-12T18:00:00.000+02:00" },
53
+ { "total": 0.5055, "startsAt": "2021-10-12T19:00:00.000+02:00" },
54
+ { "total": 0.5042, "startsAt": "2021-10-12T20:00:00.000+02:00" },
55
+ { "total": 0.5259, "startsAt": "2021-10-12T21:00:00.000+02:00" },
56
+ { "total": 0.5282, "startsAt": "2021-10-12T22:00:00.000+02:00" },
57
+ { "total": 0.5252, "startsAt": "2021-10-12T23:00:00.000+02:00" }
58
+ ]
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,124 @@
1
+ {
2
+ "payload": {
3
+ "viewer": {
4
+ "homes": [
5
+ {
6
+ "currentSubscription": {
7
+ "priceInfo": {
8
+ "today": [
9
+ { "total": 0.2494, "startsAt": "2021-10-11T00:00:00.000+02:00" },
10
+ { "total": 0.2209, "startsAt": "2021-10-11T01:00:00.000+02:00" },
11
+ { "total": 0.2099, "startsAt": "2021-10-11T02:00:00.000+02:00" },
12
+ { "total": 0.219, "startsAt": "2021-10-11T03:00:00.000+02:00" },
13
+ { "total": 0.2614, "startsAt": "2021-10-11T04:00:00.000+02:00" },
14
+ { "total": 0.4426, "startsAt": "2021-10-11T05:00:00.000+02:00" },
15
+ { "total": 0.5433, "startsAt": "2021-10-11T06:00:00.000+02:00" },
16
+ { "total": 0.5667, "startsAt": "2021-10-11T07:00:00.000+02:00" },
17
+ { "total": 0.5847, "startsAt": "2021-10-11T08:00:00.000+02:00" },
18
+ { "total": 0.5762, "startsAt": "2021-10-11T09:00:00.000+02:00" },
19
+ { "total": 0.5391, "startsAt": "2021-10-11T10:00:00.000+02:00" },
20
+ { "total": 0.5124, "startsAt": "2021-10-11T11:00:00.000+02:00" },
21
+ { "total": 0.504, "startsAt": "2021-10-11T12:00:00.000+02:00" },
22
+ { "total": 0.5057, "startsAt": "2021-10-11T13:00:00.000+02:00" },
23
+ { "total": 0.5066, "startsAt": "2021-10-11T14:00:00.000+02:00" },
24
+ { "total": 0.5136, "startsAt": "2021-10-11T15:00:00.000+02:00" },
25
+ { "total": 0.5143, "startsAt": "2021-10-11T16:00:00.000+02:00" },
26
+ { "total": 0.5306, "startsAt": "2021-10-11T17:00:00.000+02:00" },
27
+ { "total": 0.5534, "startsAt": "2021-10-11T18:00:00.000+02:00" },
28
+ { "total": 0.5511, "startsAt": "2021-10-11T19:00:00.000+02:00" },
29
+ { "total": 0.5491, "startsAt": "2021-10-11T20:00:00.000+02:00" },
30
+ { "total": 0.5485, "startsAt": "2021-10-11T21:00:00.000+02:00" },
31
+ { "total": 0.5481, "startsAt": "2021-10-11T22:00:00.000+02:00" },
32
+ { "total": 0.5218, "startsAt": "2021-10-11T23:00:00.000+02:00" }
33
+ ],
34
+ "tomorrow": [
35
+ { "total": 0.4533, "startsAt": "2021-10-12T00:00:00.000+02:00" },
36
+ { "total": 0.4196, "startsAt": "2021-10-12T01:00:00.000+02:00" },
37
+ { "total": 0.4037, "startsAt": "2021-10-12T02:00:00.000+02:00" },
38
+ { "total": 0.3829, "startsAt": "2021-10-12T03:00:00.000+02:00" },
39
+ { "total": 0.4555, "startsAt": "2021-10-12T04:00:00.000+02:00" },
40
+ { "total": 0.4721, "startsAt": "2021-10-12T05:00:00.000+02:00" },
41
+ { "total": 0.4903, "startsAt": "2021-10-12T06:00:00.000+02:00" },
42
+ { "total": 0.5028, "startsAt": "2021-10-12T07:00:00.000+02:00" },
43
+ { "total": 0.5163, "startsAt": "2021-10-12T08:00:00.000+02:00" },
44
+ { "total": 0.5264, "startsAt": "2021-10-12T09:00:00.000+02:00" },
45
+ { "total": 0.5346, "startsAt": "2021-10-12T10:00:00.000+02:00" },
46
+ { "total": 0.5224, "startsAt": "2021-10-12T11:00:00.000+02:00" },
47
+ { "total": 0.5071, "startsAt": "2021-10-12T12:00:00.000+02:00" },
48
+ { "total": 0.5045, "startsAt": "2021-10-12T13:00:00.000+02:00" },
49
+ { "total": 0.5024, "startsAt": "2021-10-12T14:00:00.000+02:00" },
50
+ { "total": 0.5038, "startsAt": "2021-10-12T15:00:00.000+02:00" },
51
+ { "total": 0.5118, "startsAt": "2021-10-12T16:00:00.000+02:00" },
52
+ { "total": 0.5111, "startsAt": "2021-10-12T17:00:00.000+02:00" },
53
+ { "total": 0.5108, "startsAt": "2021-10-12T18:00:00.000+02:00" },
54
+ { "total": 0.5055, "startsAt": "2021-10-12T19:00:00.000+02:00" },
55
+ { "total": 0.5042, "startsAt": "2021-10-12T20:00:00.000+02:00" },
56
+ { "total": 0.5259, "startsAt": "2021-10-12T21:00:00.000+02:00" },
57
+ { "total": 0.5282, "startsAt": "2021-10-12T22:00:00.000+02:00" },
58
+ { "total": 0.5252, "startsAt": "2021-10-12T23:00:00.000+02:00" }
59
+ ]
60
+ }
61
+ }
62
+ },
63
+ {
64
+ "currentSubscription": {
65
+ "priceInfo": {
66
+ "today": [
67
+ { "total": 0.2494, "startsAt": "2021-10-11T00:00:00.000+02:00" },
68
+ { "total": 0.2209, "startsAt": "2021-10-11T01:00:00.000+02:00" },
69
+ { "total": 0.2099, "startsAt": "2021-10-11T02:00:00.000+02:00" },
70
+ { "total": 0.219, "startsAt": "2021-10-11T03:00:00.000+02:00" },
71
+ { "total": 0.2614, "startsAt": "2021-10-11T04:00:00.000+02:00" },
72
+ { "total": 0.4426, "startsAt": "2021-10-11T05:00:00.000+02:00" },
73
+ { "total": 0.5433, "startsAt": "2021-10-11T06:00:00.000+02:00" },
74
+ { "total": 0.5667, "startsAt": "2021-10-11T07:00:00.000+02:00" },
75
+ { "total": 0.5847, "startsAt": "2021-10-11T08:00:00.000+02:00" },
76
+ { "total": 0.5762, "startsAt": "2021-10-11T09:00:00.000+02:00" },
77
+ { "total": 0.5391, "startsAt": "2021-10-11T10:00:00.000+02:00" },
78
+ { "total": 0.5124, "startsAt": "2021-10-11T11:00:00.000+02:00" },
79
+ { "total": 0.504, "startsAt": "2021-10-11T12:00:00.000+02:00" },
80
+ { "total": 0.5057, "startsAt": "2021-10-11T13:00:00.000+02:00" },
81
+ { "total": 0.5066, "startsAt": "2021-10-11T14:00:00.000+02:00" },
82
+ { "total": 0.5136, "startsAt": "2021-10-11T15:00:00.000+02:00" },
83
+ { "total": 0.5143, "startsAt": "2021-10-11T16:00:00.000+02:00" },
84
+ { "total": 0.5306, "startsAt": "2021-10-11T17:00:00.000+02:00" },
85
+ { "total": 0.5534, "startsAt": "2021-10-11T18:00:00.000+02:00" },
86
+ { "total": 0.5511, "startsAt": "2021-10-11T19:00:00.000+02:00" },
87
+ { "total": 0.5491, "startsAt": "2021-10-11T20:00:00.000+02:00" },
88
+ { "total": 0.5485, "startsAt": "2021-10-11T21:00:00.000+02:00" },
89
+ { "total": 0.5481, "startsAt": "2021-10-11T22:00:00.000+02:00" },
90
+ { "total": 0.5218, "startsAt": "2021-10-11T23:00:00.000+02:00" }
91
+ ],
92
+ "tomorrow": [
93
+ { "total": 0.4533, "startsAt": "2021-10-12T00:00:00.000+02:00" },
94
+ { "total": 0.4196, "startsAt": "2021-10-12T01:00:00.000+02:00" },
95
+ { "total": 0.4037, "startsAt": "2021-10-12T02:00:00.000+02:00" },
96
+ { "total": 0.3829, "startsAt": "2021-10-12T03:00:00.000+02:00" },
97
+ { "total": 0.4555, "startsAt": "2021-10-12T04:00:00.000+02:00" },
98
+ { "total": 0.4721, "startsAt": "2021-10-12T05:00:00.000+02:00" },
99
+ { "total": 0.4903, "startsAt": "2021-10-12T06:00:00.000+02:00" },
100
+ { "total": 0.5028, "startsAt": "2021-10-12T07:00:00.000+02:00" },
101
+ { "total": 0.5163, "startsAt": "2021-10-12T08:00:00.000+02:00" },
102
+ { "total": 0.5264, "startsAt": "2021-10-12T09:00:00.000+02:00" },
103
+ { "total": 0.5346, "startsAt": "2021-10-12T10:00:00.000+02:00" },
104
+ { "total": 0.5224, "startsAt": "2021-10-12T11:00:00.000+02:00" },
105
+ { "total": 0.5071, "startsAt": "2021-10-12T12:00:00.000+02:00" },
106
+ { "total": 0.5045, "startsAt": "2021-10-12T13:00:00.000+02:00" },
107
+ { "total": 0.5024, "startsAt": "2021-10-12T14:00:00.000+02:00" },
108
+ { "total": 0.5038, "startsAt": "2021-10-12T15:00:00.000+02:00" },
109
+ { "total": 0.5118, "startsAt": "2021-10-12T16:00:00.000+02:00" },
110
+ { "total": 0.5111, "startsAt": "2021-10-12T17:00:00.000+02:00" },
111
+ { "total": 0.5108, "startsAt": "2021-10-12T18:00:00.000+02:00" },
112
+ { "total": 0.5055, "startsAt": "2021-10-12T19:00:00.000+02:00" },
113
+ { "total": 0.5042, "startsAt": "2021-10-12T20:00:00.000+02:00" },
114
+ { "total": 0.5259, "startsAt": "2021-10-12T21:00:00.000+02:00" },
115
+ { "total": 0.5282, "startsAt": "2021-10-12T22:00:00.000+02:00" },
116
+ { "total": 0.5252, "startsAt": "2021-10-12T23:00:00.000+02:00" }
117
+ ]
118
+ }
119
+ }
120
+ }
121
+ ]
122
+ }
123
+ }
124
+ }