TyDIDs - Minimalistic Wallet for Meter-Readings (BEV-Charging)

Monitors a DID provided by a TyDIDs-Sender to create a start reading and end reading as valuable objects of a transaction.

[{"id":"f9bdad0704a8b495","type":"tab","label":"Mengen Abgrenzung","disabled":false,"info":"Strommengen Abgrenzung in der Drittbelieferung. Hier am Beispiel eines Ladevorgangs eines E-Autos"},{"id":"ae93dbf3a5526323","type":"Tydids-Receiver","z":"f9bdad0704a8b495","name":"Stromzähler - BEV","address":"0xD8955Ff3a0Cca094Af0B8b73690297F6bCB5888D","privateKey":"","x":350,"y":220,"wires":[[],[],[],["ec4617af8a074cdd"]]},{"id":"3173149872c322e1","type":"inject","z":"f9bdad0704a8b495","name":"Beginn","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"beginn","payloadType":"date","x":170,"y":180,"wires":[["ae93dbf3a5526323"]]},{"id":"01375fe566e20928","type":"inject","z":"f9bdad0704a8b495","name":"Ende","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ende","payloadType":"date","x":170,"y":280,"wires":[["ae93dbf3a5526323"]]},{"id":"696462653c9b8e89","type":"debug","z":"f9bdad0704a8b495","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":890,"y":240,"wires":[]},{"id":"ec4617af8a074cdd","type":"function","z":"f9bdad0704a8b495","name":"Store DID Content in ContextData","func":"if(typeof msg.topic !== 'undefined') {\n   context.set(msg.topic,msg.payload);\n}\n// Check if Beginn and End exists - If so continue with both values\nlet beginn = context.get(\"beginn\");\nlet ende = msg.payload;\nmsg = {};\nif(msg.topic == 'ende') {\n    msg.payload = {\n        beginn:beginn,\n        ende:ende\n    }\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":640,"y":240,"wires":[["696462653c9b8e89"]]},{"id":"d65c4859416162b4","type":"comment","z":"f9bdad0704a8b495","name":"Minimalistic Wallet","info":"","x":590,"y":200,"wires":[]},{"id":"39ce70a9d29e84c7","type":"inject","z":"f9bdad0704a8b495","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":370,"y":320,"wires":[["ec4617af8a074cdd"]]}]

Flow Info

Created 4 months, 1 week ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x1)
  • debug (x1)
  • function (x1)
  • inject (x3)
Other

Tags

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