Connecting Two Blynk Apps

I have a project running on an ESP8266 and it connects to a local Blynk server that I’m running on a VM on site.
I need to grant access of the ESP8266 to another user, but I want some buttons/fields that I can see on my app hidden from him. As far as I found out there’s no way that I can share my project with him while hiding certain widgets.
I thought to create a separate GUI on his account (on local Blynk server) with only the needed widgets and connect it to a blynk program running on linux (or Raspberry Pi)
This linux Blynk program would communicate with the ESP8266 using curl. If this program could read/write virtual pin values on ESP8266 that’s all I need to get his secondary app GUI to work properly.

Ex: To write to virtual pins in ESP8266 (C++ will use linux system calls) :
curl -H ‘Content-Type: application/json’ -X PUT -d ‘[]’ http://<local_blynk_server_address>/<auth_token>/update/<virtual_pin>

To read (C++ will use linux system calls):
Value=curl -H 'Content-Type: application/json' -GET http://<local_blynk_server_address>/<auth_token>/get/<virtual_pin>

I would like your feedback on if this solution is the best solution, or if there’s an easier way to do this?

Thanks!

Personally, I think I’d use Node-Red with the Blynk plug-in to act as the translator between the two projects.

Pete.

1 Like

@PeteKnight - Thanks for your suggestion! :slight_smile:
In-fact did it using the curl functions and it worked well.
I’ll look onto Node-Red, for future projects!
One more thing, I see that we can use the Bridge widget to push data from one project to another, seems like the easiest way without using any external methods or function calls.
But it works one way, we can’t read, can just write.
If I need to push data to the Linux program side from ESP8266 I have to change the code on ESP8266 as well.