Display Fritz!Box bandwith via TR064 in the Loxone Miniserver Visualisation

This flow is a simple example of how to pass data from node-red to the Loxone Miniserver. The current bandwith is taken from a Fritz!Box Router via the exposed TR064 API. The data is requested every second from the router, get's processed and pushed to a virtual input inside the Loxone Miniserver.

Please a two virtual Input's which are visualized inside Loxone-Config and deploy them to the miniserver. You can format as you want, but <v.1>MB/s seems sufficient.

You'll need node-red-contrib-fritz and node-red-contrib-loxone installed and obviously a Fritz!Box Router and a Loxone Miniserver.

[{"id":"56b1c218.5bb994","type":"inject","z":"31280dc9.8fdbaa","name":"every 1s","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"x":100,"y":2800,"wires":[["54b5c687.aed5c8"]]},{"id":"32ae8fd3.996de","type":"change","z":"31280dc9.8fdbaa","name":"NewByteReceiveRate","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.NewByteReceiveRate","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":160,"y":2940,"wires":[["fb42b1cf.9e4a58"]]},{"id":"fb42b1cf.9e4a58","type":"function","z":"31280dc9.8fdbaa","name":"byte2MB","func":"msg.payload = (msg.payload / 1024 / 1024).toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"x":360,"y":2940,"wires":[["15bf2f42.6645e9"]]},{"id":"ce50140d.3601e","type":"change","z":"31280dc9.8fdbaa","name":"NewByteSendRate","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.NewByteSendRate","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":170,"y":2880,"wires":[["6ccc0e64.d65298"]]},{"id":"6ccc0e64.d65298","type":"function","z":"31280dc9.8fdbaa","name":"byte2MB","func":"msg.payload = (msg.payload / 1024 / 1024).toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"x":360,"y":2880,"wires":[["5c8002c2.d2144c"]]},{"id":"54b5c687.aed5c8","type":"fritzbox-in","z":"31280dc9.8fdbaa","device":"178df84d.71363","name":"","service":"urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1","action":"GetAddonInfos","arguments":"{}","x":310,"y":2800,"wires":[["ce50140d.3601e","32ae8fd3.996de"]]},{"id":"5c8002c2.d2144c","type":"loxone-out","z":"31280dc9.8fdbaa","name":"vin downstream","miniserver":"79307096.f7614","control":"0f6418fa-0115-3360-ffff80982d442be6","x":580,"y":2880,"wires":[]},{"id":"15bf2f42.6645e9","type":"loxone-out","z":"31280dc9.8fdbaa","name":"vin upstream","miniserver":"79307096.f7614","control":"0f641919-039b-721c-ffff80982d442be6","x":570,"y":2940,"wires":[]},{"id":"178df84d.71363","type":"fritzbox-config","z":"31280dc9.8fdbaa","name":"my fritz","host":"fritz.box"},{"id":"79307096.f7614","type":"loxone-miniserver","z":"","host":"192.168.xx.xx","port":"80","encrypted":false}]

Flow Info

Created 7 years, 8 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • change (x2)
  • function (x2)
  • inject (x1)
Other

Tags

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