n8n-nodes-fingrid 0.2.9 → 0.2.11
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.
package/README.md
CHANGED
|
@@ -8,6 +8,10 @@ status, production/consumption, cross-border transmission, balancing and reserve
|
|
|
8
8
|
|
|
9
9
|
**Not affiliated with, endorsed by, or sponsored by Fingrid Oyj.**
|
|
10
10
|
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
In n8n, go to **Settings → Community Nodes → Install**, enter `n8n-nodes-fingrid`, and click **Install**.
|
|
14
|
+
|
|
11
15
|
## Data license
|
|
12
16
|
|
|
13
17
|
Fingrid's data is published under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode)
|
|
@@ -47,9 +51,28 @@ You need a free Fingrid Open Data API key:
|
|
|
47
51
|
- Get Active Notifications
|
|
48
52
|
- Get Health Status
|
|
49
53
|
|
|
54
|
+
## Usage example
|
|
55
|
+
|
|
56
|
+
1. Add the **Fingrid** node to your workflow.
|
|
57
|
+
2. Set **Resource** to `Dataset` and **Operation** to `Get Data`.
|
|
58
|
+
3. Set **Dataset ID** to `74` (Electricity production in Finland).
|
|
59
|
+
4. Set a **Start Time** and **End Time**, for example `2026-08-01T00:00:00Z` to `2026-08-02T00:00:00Z`.
|
|
60
|
+
5. Run the node.
|
|
61
|
+
|
|
62
|
+
The output is a list of JSON objects, one per time interval, for example:
|
|
63
|
+
|
|
64
|
+
```json
|
|
65
|
+
{
|
|
66
|
+
"value": 9605.14,
|
|
67
|
+
"startTime": "2026-08-01T23:45:00.000Z",
|
|
68
|
+
"endTime": "2026-08-02T00:00:00.000Z",
|
|
69
|
+
"datasetId": 74
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
50
73
|
## Finding dataset IDs
|
|
51
74
|
|
|
52
|
-
Use the **Dataset →
|
|
75
|
+
Use the **Dataset → Get Many** operation (with or without search text) to browse available datasets
|
|
53
76
|
and find their numeric IDs, or browse https://data.fingrid.fi/en/datasets in a browser.
|
|
54
77
|
|
|
55
78
|
## Development
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-fingrid.fingrid",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Data & Storage"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://github.com/MychelGarzon/n8n-nodes-fingrid?tab=readme-ov-file#prerequisites"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://github.com/MychelGarzon/n8n-nodes-fingrid?tab=readme-ov-file"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -178,6 +178,7 @@ async function fetchPaginated(endpoint, qs, i) {
|
|
|
178
178
|
return returnAll ? collected : collected.slice(0, limit);
|
|
179
179
|
}
|
|
180
180
|
async function fetchSingle(endpoint, qs, i) {
|
|
181
|
+
await respectRateLimit();
|
|
181
182
|
const responseData = await requestWithRateLimitHandling.call(this, {
|
|
182
183
|
method: "GET",
|
|
183
184
|
url: `${exports.BASE_URL}${endpoint}`,
|