Teste-00123

teste de flow rtrtre reter ertret

[{"id":"6b9c0ef48e2852d9","type":"tab","label":"Bateria Virtual Proxima Energía","disabled":false,"info":"","env":[]},{"id":"7c6df70a333a1965","type":"solax-cloud-api-client","z":"6b9c0ef48e2852d9","apiToken":"YOUR-TOKEN-HERE","apiSn":"YOUR-SN-HERE","endPoint":"https://www.solaxcloud.com/proxyApp/proxy/api/getRealtimeInfo.do","refreshPeriod":"300","x":200,"y":40,"wires":[["e577f4a7ab1d9d31"]]},{"id":"9e8d0e5421b29a59","type":"debug","z":"6b9c0ef48e2852d9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1070,"y":240,"wires":[]},{"id":"e577f4a7ab1d9d31","type":"virtual-battery-solax-slotter","z":"6b9c0ef48e2852d9","x":540,"y":40,"wires":[["4c8ae55e8f7217f4"]]},{"id":"b582db433923ce34","type":"esios-api-client","z":"6b9c0ef48e2852d9","apiToken":"ESIOS-TOKEN-HERE","pvpcEndpoint":"https://api.esios.ree.es/archives/70/download_json","pmhEndpoint":"https://api.esios.ree.es/indicators/1739","refreshPeriod":"300","x":180,"y":320,"wires":[["a7665a0a14921887"]]},{"id":"a521d838d8151726","type":"influxdb out","z":"6b9c0ef48e2852d9","influxdb":"ce708094b3332442","name":"Balance Neto Horario","measurement":"balance.neto.horario","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"YOUR-ORG","bucket":"YOUR-BUCKET","x":1260,"y":40,"wires":[]},{"id":"a7665a0a14921887","type":"virtual-battery-proxima-energia","z":"6b9c0ef48e2852d9","wastePercent":"5","x":790,"y":320,"wires":[["9e8d0e5421b29a59","5fa4f430678bbab7","e2b7d2dad4f50a34"],["a2ee371999e2a041","76b2653790f48e75","1bcb31ec6ff4a6dc"]]},{"id":"4c8ae55e8f7217f4","type":"virtual-battery-balance-neto-horario","z":"6b9c0ef48e2852d9","resetTimeout":"3600000","x":860,"y":40,"wires":[["a521d838d8151726","a7665a0a14921887"]]},{"id":"474c6bdf8d9418bb","type":"function","z":"6b9c0ef48e2852d9","name":"Battery balance no cerrado","func":"msg.payload={feeded:-105.08333333333333,consumed:105.08333333333333,produced:0,startAt:\"2022-05-27T00:00\",endAt:\"2022-05-27T01:00\",isConsolidable:false};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":380,"y":560,"wires":[[]]},{"id":"fccc1f2420679f8e","type":"delay","z":"6b9c0ef48e2852d9","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":600,"y":400,"wires":[["a7665a0a14921887"]]},{"id":"a2ee371999e2a041","type":"influxdb out","z":"6b9c0ef48e2852d9","influxdb":"ce708094b3332442","name":"Battery Balance","measurement":"battery.balance","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"YOUR-ORG","bucket":"YOUR-BUCKET","x":1260,"y":380,"wires":[]},{"id":"5fa4f430678bbab7","type":"influxdb out","z":"6b9c0ef48e2852d9","influxdb":"ce708094b3332442","name":"Balance Neto Horario","measurement":"balance.neto.horario","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"YOUR-ORG","bucket":"YOUR-BUCKET","x":1260,"y":280,"wires":[]},{"id":"76b2653790f48e75","type":"debug","z":"6b9c0ef48e2852d9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1070,"y":400,"wires":[]},{"id":"ead2c580d775544d","type":"function","z":"6b9c0ef48e2852d9","name":"Battery balance cerrado","func":"msg.payload={\n  feeded: 700.6666666666666,\n  consumed: 125.66666666666667,\n  produced: 826.3333333333334,\n  startAt: {\n    _date: {\n      _year: 2022,\n      _month: 5,\n      _day: 27,\n    },\n    _time: {\n      _hour: 11,\n      _minute: 0,\n      _second: 0,\n      _nano: 0,\n    },\n  },\n  endAt: {\n    _date: {\n      _year: 2022,\n      _month: 5,\n      _day: 27,\n    },\n    _time: {\n      _hour: 12,\n      _minute: 0,\n      _second: 0,\n      _nano: 0,\n    },\n  },\n  isConsolidable: false,\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":370,"y":500,"wires":[["fccc1f2420679f8e"]]},{"id":"51eaad9b987b59bf","type":"inject","z":"6b9c0ef48e2852d9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":500,"wires":[["ead2c580d775544d"]]},{"id":"1bcb31ec6ff4a6dc","type":"file","z":"6b9c0ef48e2852d9","name":"battery-balance-backup","filename":"battery-balance-backup","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":1070,"y":480,"wires":[[]]},{"id":"e2b7d2dad4f50a34","type":"file","z":"6b9c0ef48e2852d9","name":"balance-neto-horario-backup","filename":"balance-neto-horario-backup","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":1080,"y":180,"wires":[[]]},{"id":"ce708094b3332442","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"virtualbats","name":"VirtualBats","usetls":false,"tls":"","influxdbVersion":"2.0","url":"http://localhost:8086","rejectUnauthorized":true}]

Flow Info

Created 2 years, 9 months ago
Rating: not yet rated

Actions

Rate:

Node Types

Core
  • debug (x2)
  • delay (x1)
  • file (x2)
  • function (x2)
  • inject (x1)
Other

Tags

  • teste
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option