Node-red
Hi, I Have installed the Node-red successfully but I could not find any specific instruction to push the data by that TeamViewer-IoT node. By the way, as soon as I deploy the node by injecting metric name and data with JSON format the Node always makes new API client and showing connection error. Is there any guideline in order to drag and drop node and setup and boom...!!
Comments
-
Hello @MainulMahin
Could you tell me which operating system has the device? And also, what device is?
Regards,
MirceaTech Support IoT
0 -
Hi, Thank you for your reply,
It is Rasberry PI 4 and OS is Rasbian.
0 -
Tech Support IoT
0 -
I have Raspberry Pi with installed Node-Red with some script that calculates electricity consumption and sends this value to the web server (via HTTP).
I want to see this metric on dashboard in TeamViewerIoT cloud.
I registered on https://teamviewer-iot.com/ and added my Raspberry Pi. I installed the agent for working with TeamWiever IoT, according to the documentation https://community.teamviewer.com/English/kb/articles/109931-teamviewer-iot-node-red-plugin Also I added a plugin for Node Red.
But I don't understand how can I get this metric in the admin panel (on dashboard)? What I need to do? Maybe do you have some examples?
In console I have next:
0 -
Hey,
In the debug window you should see the data in this format:
{metric_name: value}
Could you please try to organize your code in this way?
var TeamViewerMetric = msg.payload.p;
msg.payload = {"Power":TeamViewerMetric};
return msg;0