Highlighted
Posted by
Henagon

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...!!

6 Replies
6 Replies
Highlighted
Posted by TeamViewer Staff
TeamViewer Staff

Re: Node-red

Hello @MainulMahin 

Could you tell me which operating system has the device? And also, what device is?
Regards,
Mircea

Tech Support IoT

Did my reply answer your question? Accept it as a solution to help others.
Find this helpful? Say thanks by clicking on the Thumbs Up button.

Highlighted
Posted by
Henagon

Re: Node-red

Hi, Thank you for your reply,

It is Rasberry PI 4 and OS is Rasbian.

Highlighted
Posted by TeamViewer Staff
TeamViewer Staff

Re: Node-red

Hello @MainulMahin 

Please, could you sent me the node red logs?

You also have a PM

Regards,

Mircea

Tech Support IoT

Did my reply answer your question? Accept it as a solution to help others.
Find this helpful? Say thanks by clicking on the Thumbs Up button.

Highlighted
Posted by
Henagon

Re: Node-red

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/t5/TeamViewer-IoT-Knowledge-Base/TeamViewer-IoT-Node-Red-Plugin/ta-... 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?node_red1.jpgteamviewer_admin.jpgteamviewer_console.jpg

In console I have next:

console.jpg

Highlighted
Posted by TeamViewer Staff
TeamViewer Staff

Re: Node-red

Hello @tavi 

If you want to see the sensor data in a Dashboard, click on "3 dots menu" from the desired sensor and "Pin to Dashboard"

Regards,

Mircea

Tech Support IoT

Did my reply answer your question? Accept it as a solution to help others.
Find this helpful? Say thanks by clicking on the Thumbs Up button.

Highlighted
Posted by TeamViewer Staff
TeamViewer Staff

Re: Node-red

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;