@flecoufle/node-red-linky 0.1.3 → 1.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/README.md +1 -1
- package/linky/linky.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# node-red-linky
|
|
2
2
|
Retreive linky power consumption and production from <a href="https://github.com/bokub/conso-api#readme">bokub/conso-api</a>
|
|
3
3
|
|
|
4
|
-
See Enedis documentation on <a href="https://datahub-enedis.fr/services-api/data-connect/documentation/">data-connect</a>
|
|
4
|
+
See Enedis API documentation on <a href="https://datahub-enedis.fr/services-api/data-connect/documentation/">data-connect</a>
|
|
5
5
|
|
|
6
6
|
## consumption usage
|
|
7
7
|
- <b>Récupération de la consommation énergétique quotidienne</b>: <code>daily_consumption</code>
|
package/linky/linky.js
CHANGED
|
@@ -21,8 +21,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
21
21
|
|
|
22
22
|
"use strict";
|
|
23
23
|
|
|
24
|
-
module.exports = function (RED) {
|
|
25
|
-
const got =
|
|
24
|
+
module.exports = async function (RED) {
|
|
25
|
+
const { got } = await import('got');
|
|
26
26
|
|
|
27
27
|
const nodeStatus = {
|
|
28
28
|
WAIT: "Waiting...",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flecoufle/node-red-linky",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Retrieve Linky power consumption",
|
|
5
5
|
"main": "linky/linky.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -38,6 +38,6 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/flecoufle/node-red-linky#readme",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"got": "
|
|
41
|
+
"got": "13.0.0"
|
|
42
42
|
}
|
|
43
43
|
}
|