n8n-nodes-elecz 0.1.0
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/LICENSE +21 -0
- package/README.md +56 -0
- package/dist/Elecz/Elecz.node.d.ts +5 -0
- package/dist/Elecz/Elecz.node.js +213 -0
- package/dist/Elecz/Elecz.node.js.map +1 -0
- package/package.json +52 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zemlo AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# n8n-nodes-elecz
|
|
2
|
+
|
|
3
|
+
An [n8n](https://n8n.io/) community node for [Elecz](https://elecz.com) — real-time electricity price signals and contract comparison for Nordic and German markets.
|
|
4
|
+
|
|
5
|
+
## Operations
|
|
6
|
+
|
|
7
|
+
| Operation | Description |
|
|
8
|
+
|---|---|
|
|
9
|
+
| **Spot Price** | Current electricity spot price for a zone |
|
|
10
|
+
| **Best Energy Contract** | Top 3 contracts ranked by your consumption profile |
|
|
11
|
+
| **Cheapest Hours** | Cheapest upcoming hours in the next 24h |
|
|
12
|
+
| **Energy Decision Signal** | Full decision signal: price level, trend, recommendation |
|
|
13
|
+
| **Optimize** | One-call optimization — best action right now |
|
|
14
|
+
|
|
15
|
+
## Supported Zones
|
|
16
|
+
|
|
17
|
+
**Nordic/Baltic:** FI, SE1–SE4, NO1, NO2, NO5, DK1, DK2, EE, LV, LT
|
|
18
|
+
**Germany:** DE-LU
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
In your n8n instance:
|
|
23
|
+
|
|
24
|
+
1. Go to **Settings → Community Nodes**
|
|
25
|
+
2. Click **Install**
|
|
26
|
+
3. Enter `n8n-nodes-elecz`
|
|
27
|
+
4. Confirm install
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
No API key required. Elecz is a public read-only API.
|
|
32
|
+
|
|
33
|
+
### Example: Cheapest hours automation
|
|
34
|
+
|
|
35
|
+
1. Add **Elecz** node
|
|
36
|
+
2. Operation: `Cheapest Hours`
|
|
37
|
+
3. Zone: `FI`
|
|
38
|
+
4. Hours needed: `3`
|
|
39
|
+
5. Connect to your washing machine / EV charger automation
|
|
40
|
+
|
|
41
|
+
### Example: Contract comparison
|
|
42
|
+
|
|
43
|
+
1. Operation: `Best Energy Contract`
|
|
44
|
+
2. Zone: `FI`
|
|
45
|
+
3. Consumption: `2000` kWh/year
|
|
46
|
+
4. Current price: `7.5` c/kWh → get savings estimate
|
|
47
|
+
|
|
48
|
+
## Links
|
|
49
|
+
|
|
50
|
+
- API docs: [elecz.com/docs](https://elecz.com/docs)
|
|
51
|
+
- MCP server: [elecz.com/mcp](https://elecz.com/mcp)
|
|
52
|
+
- GitHub: [zemloai-ctrl/n8n-nodes-elecz](https://github.com/zemloai-ctrl/n8n-nodes-elecz)
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
MIT
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Elecz = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
class Elecz {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.description = {
|
|
8
|
+
displayName: 'Elecz',
|
|
9
|
+
name: 'elecz',
|
|
10
|
+
icon: 'file:elecz.svg',
|
|
11
|
+
group: ['transform'],
|
|
12
|
+
version: 1,
|
|
13
|
+
subtitle: '={{$parameter["operation"]}}',
|
|
14
|
+
description: 'Get real-time electricity price signals and contract comparisons for Nordic and German markets',
|
|
15
|
+
defaults: {
|
|
16
|
+
name: 'Elecz',
|
|
17
|
+
},
|
|
18
|
+
inputs: ['main'],
|
|
19
|
+
outputs: ['main'],
|
|
20
|
+
properties: [
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Operation',
|
|
23
|
+
name: 'operation',
|
|
24
|
+
type: 'options',
|
|
25
|
+
noDataExpression: true,
|
|
26
|
+
options: [
|
|
27
|
+
{
|
|
28
|
+
name: 'Spot Price',
|
|
29
|
+
value: 'spot_price',
|
|
30
|
+
description: 'Get current electricity spot price for a zone',
|
|
31
|
+
action: 'Get spot price',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Best Energy Contract',
|
|
35
|
+
value: 'best_energy_contract',
|
|
36
|
+
description: 'Find the best electricity contract for your consumption',
|
|
37
|
+
action: 'Find best energy contract',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Cheapest Hours',
|
|
41
|
+
value: 'cheapest_hours',
|
|
42
|
+
description: 'Get the cheapest upcoming hours to use energy',
|
|
43
|
+
action: 'Get cheapest hours',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Energy Decision Signal',
|
|
47
|
+
value: 'energy_decision_signal',
|
|
48
|
+
description: 'Get a full energy decision signal for a zone',
|
|
49
|
+
action: 'Get energy decision signal',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Optimize',
|
|
53
|
+
value: 'optimize',
|
|
54
|
+
description: 'Get a one-call electricity optimization recommendation',
|
|
55
|
+
action: 'Optimize electricity usage',
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
default: 'spot_price',
|
|
59
|
+
},
|
|
60
|
+
// Zone — shared across all operations
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Zone',
|
|
63
|
+
name: 'zone',
|
|
64
|
+
type: 'options',
|
|
65
|
+
options: [
|
|
66
|
+
{ name: 'Finland (FI)', value: 'FI' },
|
|
67
|
+
{ name: 'Sweden (SE1)', value: 'SE1' },
|
|
68
|
+
{ name: 'Sweden (SE2)', value: 'SE2' },
|
|
69
|
+
{ name: 'Sweden (SE3)', value: 'SE3' },
|
|
70
|
+
{ name: 'Sweden (SE4)', value: 'SE4' },
|
|
71
|
+
{ name: 'Norway (NO1)', value: 'NO1' },
|
|
72
|
+
{ name: 'Norway (NO2)', value: 'NO2' },
|
|
73
|
+
{ name: 'Norway (NO5)', value: 'NO5' },
|
|
74
|
+
{ name: 'Denmark (DK1)', value: 'DK1' },
|
|
75
|
+
{ name: 'Denmark (DK2)', value: 'DK2' },
|
|
76
|
+
{ name: 'Estonia (EE)', value: 'EE' },
|
|
77
|
+
{ name: 'Latvia (LV)', value: 'LV' },
|
|
78
|
+
{ name: 'Lithuania (LT)', value: 'LT' },
|
|
79
|
+
{ name: 'Germany (DE-LU)', value: 'DE-LU' },
|
|
80
|
+
],
|
|
81
|
+
default: 'FI',
|
|
82
|
+
description: 'Electricity price zone',
|
|
83
|
+
displayOptions: {
|
|
84
|
+
show: {
|
|
85
|
+
operation: ['spot_price', 'best_energy_contract', 'cheapest_hours', 'energy_decision_signal', 'optimize'],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
// Consumption — for contract and optimize
|
|
90
|
+
{
|
|
91
|
+
displayName: 'Annual Consumption (kWh)',
|
|
92
|
+
name: 'consumption_kwh',
|
|
93
|
+
type: 'number',
|
|
94
|
+
default: 2000,
|
|
95
|
+
description: 'Your annual electricity consumption in kWh. Nordic default: 2000, German default: 3500.',
|
|
96
|
+
displayOptions: {
|
|
97
|
+
show: {
|
|
98
|
+
operation: ['best_energy_contract', 'optimize'],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
// Contract type filter
|
|
103
|
+
{
|
|
104
|
+
displayName: 'Contract Type',
|
|
105
|
+
name: 'contract_type',
|
|
106
|
+
type: 'options',
|
|
107
|
+
options: [
|
|
108
|
+
{ name: 'Any', value: '' },
|
|
109
|
+
{ name: 'Spot', value: 'spot' },
|
|
110
|
+
{ name: 'Fixed', value: 'fixed' },
|
|
111
|
+
{ name: 'Dynamic', value: 'dynamic' },
|
|
112
|
+
{ name: 'Hybrid', value: 'hybrid' },
|
|
113
|
+
],
|
|
114
|
+
default: '',
|
|
115
|
+
description: 'Filter by contract type (leave empty for all types)',
|
|
116
|
+
displayOptions: {
|
|
117
|
+
show: {
|
|
118
|
+
operation: ['best_energy_contract'],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
// Current price for savings calculation
|
|
123
|
+
{
|
|
124
|
+
displayName: 'Current Price (c/kWh)',
|
|
125
|
+
name: 'current_price_ckwh',
|
|
126
|
+
type: 'number',
|
|
127
|
+
default: 0,
|
|
128
|
+
description: 'Your current electricity price in cents/kWh. Used to calculate potential savings.',
|
|
129
|
+
displayOptions: {
|
|
130
|
+
show: {
|
|
131
|
+
operation: ['best_energy_contract'],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
// Hours needed — for cheapest_hours
|
|
136
|
+
{
|
|
137
|
+
displayName: 'Hours Needed',
|
|
138
|
+
name: 'hours_needed',
|
|
139
|
+
type: 'number',
|
|
140
|
+
default: 3,
|
|
141
|
+
description: 'How many cheap hours you need in the next 24 hours',
|
|
142
|
+
displayOptions: {
|
|
143
|
+
show: {
|
|
144
|
+
operation: ['cheapest_hours'],
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
async execute() {
|
|
152
|
+
const items = this.getInputData();
|
|
153
|
+
const returnData = [];
|
|
154
|
+
const BASE_URL = 'https://elecz.com';
|
|
155
|
+
for (let i = 0; i < items.length; i++) {
|
|
156
|
+
const operation = this.getNodeParameter('operation', i);
|
|
157
|
+
const zone = this.getNodeParameter('zone', i);
|
|
158
|
+
let url = '';
|
|
159
|
+
const params = new URLSearchParams({ zone });
|
|
160
|
+
if (operation === 'spot_price') {
|
|
161
|
+
url = `${BASE_URL}/spot_price?${params}`;
|
|
162
|
+
}
|
|
163
|
+
else if (operation === 'best_energy_contract') {
|
|
164
|
+
const consumption = this.getNodeParameter('consumption_kwh', i);
|
|
165
|
+
const contractType = this.getNodeParameter('contract_type', i);
|
|
166
|
+
const currentPrice = this.getNodeParameter('current_price_ckwh', i);
|
|
167
|
+
params.append('consumption_kwh', String(consumption));
|
|
168
|
+
if (contractType)
|
|
169
|
+
params.append('contract_type', contractType);
|
|
170
|
+
if (currentPrice > 0)
|
|
171
|
+
params.append('current_price_ckwh', String(currentPrice));
|
|
172
|
+
url = `${BASE_URL}/best_energy_contract?${params}`;
|
|
173
|
+
}
|
|
174
|
+
else if (operation === 'cheapest_hours') {
|
|
175
|
+
const hours = this.getNodeParameter('hours_needed', i);
|
|
176
|
+
params.append('hours_needed', String(hours));
|
|
177
|
+
url = `${BASE_URL}/cheapest_hours?${params}`;
|
|
178
|
+
}
|
|
179
|
+
else if (operation === 'energy_decision_signal') {
|
|
180
|
+
url = `${BASE_URL}/energy_decision_signal?${params}`;
|
|
181
|
+
}
|
|
182
|
+
else if (operation === 'optimize') {
|
|
183
|
+
const consumption = this.getNodeParameter('consumption_kwh', i);
|
|
184
|
+
params.append('consumption_kwh', String(consumption));
|
|
185
|
+
url = `${BASE_URL}/optimize?${params}`;
|
|
186
|
+
}
|
|
187
|
+
try {
|
|
188
|
+
const response = await this.helpers.request({
|
|
189
|
+
method: 'GET',
|
|
190
|
+
url,
|
|
191
|
+
json: true,
|
|
192
|
+
});
|
|
193
|
+
returnData.push({
|
|
194
|
+
json: response,
|
|
195
|
+
pairedItem: { item: i },
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
catch (error) {
|
|
199
|
+
if (this.continueOnFail()) {
|
|
200
|
+
returnData.push({
|
|
201
|
+
json: { error: error.message },
|
|
202
|
+
pairedItem: { item: i },
|
|
203
|
+
});
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex: i });
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return [returnData];
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.Elecz = Elecz;
|
|
213
|
+
//# sourceMappingURL=Elecz.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Elecz.node.js","sourceRoot":"","sources":["../../nodes/Elecz/Elecz.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AAEtB,MAAa,KAAK;IAAlB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,gBAAgB;YACtB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,gGAAgG;YAC7G,QA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C;IACrB,CAAC;CACD;AArND,sBAqNC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-elecz",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "n8n community node for Elecz — real-time electricity price signals and contract comparison for Nordic and German markets",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"electricity",
|
|
8
|
+
"energy",
|
|
9
|
+
"nordic",
|
|
10
|
+
"germany",
|
|
11
|
+
"elecz",
|
|
12
|
+
"spot-price",
|
|
13
|
+
"automation"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"homepage": "https://elecz.com",
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "Zemlo AI",
|
|
19
|
+
"email": "hello@elecz.com",
|
|
20
|
+
"url": "https://elecz.com"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/zemloai-ctrl/n8n-nodes-elecz"
|
|
25
|
+
},
|
|
26
|
+
"main": "index.js",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsc",
|
|
29
|
+
"dev": "tsc --watch",
|
|
30
|
+
"prepublishOnly": "npm run build"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"n8n": {
|
|
36
|
+
"n8nNodesApiVersion": 1,
|
|
37
|
+
"credentials": [],
|
|
38
|
+
"nodes": [
|
|
39
|
+
"dist/nodes/Elecz/Elecz.node.js"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^18.16.16",
|
|
44
|
+
"eslint": "^8.49.0",
|
|
45
|
+
"n8n-workflow": "*",
|
|
46
|
+
"prettier": "^3.0.3",
|
|
47
|
+
"typescript": "^5.1.6"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"n8n-workflow": "*"
|
|
51
|
+
}
|
|
52
|
+
}
|