Two device, two templates in one arduino

Good day!
Free limit in application Blynk 2.0:

  1. One page of widget
  2. One Datastreams in Graph widget

In my project i have 5 thermosensors, 1 gaz sensor and others check-switches. But information about the status of all devices does not fit on one page.
I want to see “Graphs” from gas and thermsensors, other devices are only digital data in “Labeled Value” or “Gauge” widget.
But the free limit gives us access to have two devices!
Сan I create two devices, two different templates in ONE application, but link them to the same hardware?

Example:

  • In the first device, I only see the statuses of switches, relays, etc.
  • In the 2nd device, only Graph.

Is possible this code in one sketch?:

#define BLYNK_TEMPLATE_ID “TMPLaaaaaaaaa”
#define BLYNK_DEVICE_NAME “DEVICE-1”
#define BLYNK_AUTH_TOKEN “token_for_first_device”
#define BLYNK_TEMPLATE_ID “TMPLbbbbbbbbbb”
#define BLYNK_DEVICE_NAME “DEVICE-2”
#define BLYNK_AUTH_TOKEN “token_for_second_device”

You can use the HTTP(S) API to send data from one device (ore more) to another, then display that data from the “master” device in the app.
It’s the equivalent of the Bridge functionality in the old version of Blynk.

Or use Node-Red to do the same sort of thing…

Pete.

2 Likes

I try to use Webhook widget in Blynk2.0, but have some problems. I dont understand how it works ((
I have two device in application:

  • Device-1 connect with physical device, and
  • Device-2 for receive data from device-1

In device-1 i have vPin (V6) with data of temperature and i want to transmit this data to device-2 via cloud API to vPin (v4, ID=5)
Ok, for check my idea, i open browser and type:
https://blynk.cloud/external/api/update?token=xxxxxxxxxxxxxxxxxxxx&dataStreamId=5&value=77
, and saw on Graph widget (of device-2) - 77 degrees. Ok, its work ))

Next, i open Webhook setting and try to fill form. But all my attempts failed. In screenshot my last variant, unsuccessful, it doesn’t work too… 410 Error (((

KOTEL - is name of device-1
Please help, how correctly to fill this form?

Wekhook is designed to trigger an external system, not Blynk internal.

Really? What’s the difference from a technical point of view, external or blynk server ?
And then how do I transfer the data to the API? Just only from a sketch?

In my opinion, the best way to do send data between devices is Node-RED, you can give it a try

Ohh, its so hard for me ((
I’ll try to realize this in a sketch.

Actually it’s not, you can check the article @PeteKnight mentioned in post number 2.