forked from stenehall/node-red-contrib-nordpool-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nordpool-api.html
118 lines (115 loc) · 4.68 KB
/
nordpool-api.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<script type="text/javascript">
RED.nodes.registerType('nordpool-api',{
category: 'request',
color: '#a6bbcf',
defaults: {
name: {value:""},
area: {value:"Oslo"},
currency: {Value:"EUR"},
},
inputs:1,
outputs:1,
icon: "white-globe.png",
label: function() {
return this.name ||"nordpool-api";
}
});
</script>
<script type="text/html" data-template-name="nordpool-api">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-area"><i class="fa fa-globe"></i> Area</label>
<select value="" id="node-input-area">
<option value="SYS">SYS</option>
<option value="SE1">SE1</option>
<option value="SE2">SE2</option>
<option value="SE3">SE3</option>
<option value="SE4">SE4</option>
<option value="FI">FI</option>
<option value="DK1">DK1</option>
<option value="DK2">DK2</option>
<option value="Oslo">Oslo</option>
<option value="Kr.sand">Kr.sand</option>
<option value="Bergen">Bergen</option>
<option value="Molde">Molde</option>
<option value="Tr.heim">Tr.heim</option>
<option value="Tromsø">Tromsø</option>
<option value="EE">EE</option>
<option value="LV">LV</option>
<option value="LT">LT</option>
<option value="AT">AT</option>
<option value="BE">BE</option>
<option value="DE-LU">DE-LU</option>
<option value="FR">FR</option>
<option value="NL">NL</option>
</select>
</div>
<div class="form-row">
<label for="node-input-currency"><i class="fa fa-usd"></i> Currency pr MWh</label>
<select value="" id="node-input-currency">
<option value="EUR">EUR</option>
<option value="DKK">DKK</option>
<option value="NOK">NOK</option>
<option value="SEK">SEK</option>
</select>
</div>
<div class="form-tips"><p>Find your area code at <a href="https://www.nordpoolgroup.com/" target="_blank">www.nordpoolgroup.com</a></p></div>
</script>
<script type="text/html" data-help-name="nordpool-api">
<p>A Node-Red Node for collecting `day ahead` prices from Nord Pool Group.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>area
<span class="property-type">String</span>
</dt>
<dd>
If set in msg, will accept the area as a string, else the node's settings is used. Possible areas can be found at <a href="https://www.nordpoolgroup.com/Market-data1/#/nordic/map" target="_blank">nordpoolgroup map</a>
Or the main site <a href="https://www.nordpoolgroup.com/" target="_blank">www.nordpoolgroup.com</a>.
</dd>
<dt>currency
<span class="property-type">String</span>
</dt>
<dd>
If set in msg, will accept the currency as a string, else the node's settings is used. Possible currencies can be found on the <a href="https://github.com/samuelmr/nordpool-node#options" target="_blank">webpage of the API</a>.
<p>Note that not all areas support all currencies.</p>
</dd>
<dt>date
<span class="property-type">date</span>
</dt>
<dd>
If not defined in input todays date will be used. If you request tomorrows data before 14:42 theres risk that data is not available yet and you will get the data from the current date. See <a href="https://github.com/samuelmr/nordpool-node/issues/1#issuecomment-316583765" target="_blank">API issue#1</a>.
</dd>
</dl>
<h3>Output</h3>
<p>Returns an array with 24 objects.</p>
<dl class="message-properties">
<dt>timestamp
<span class="property-type">timestamp</span>
</dt>
<dd>
UTC timestamp of hour with this price.
<p><i>An hour of 04:00 means this price is valid from 04:00 to 04:59</i></p>
</dd>
<dt>price
<span class="property-type">number</span>
</dt>
<dd>
The price pr. MWh and without local taxes.
</dd>
<dt>currency
<span class="property-type">String</span>
</dt>
<dd>
The currency of the price.
</dd>
<dt>area
<span class="property-type">String</span>
</dt>
<dd>
The area the returned price applies to.
</dd>
</dl>
</script>