I am currently using an ESP8266 and Blynk2.0 (with Edgent) for garage data and control. This works quite well.
I would like to add a single analog value from another ESP8266 device on the same WiFi network (outside temperature) to the existing Blynk2.0 device. This would avoid using up a device count for a single data point and also integrates that forwarded value into the Blynk2.0 display.
I’d probably use the HTTP(s) webbook to push that data from your temperature sensor device to the Blynk server using the auth token for your garage door opener.
The temperature sensor won’t run any Blynk code, it will simply connect to your WiFi the use a timer (SimpleTimer probably) to take a reading then post it to the Blynk server using the API.
Be aware that if you re-provision your garage door opener then the auth token for you device will change, and you’ll need to update your temperature sensor’s sketch so that it uses the updated auth token in your API call.
The basic code to make the API call is in this example…
but this assumes that the device making the API call will be a separate device in Blynk. As that’s not what you want, you’ll need to remove the Blynk code, include the SimpleTimer library, manage the WiFi connection yourself, then add-in the code relating to your temperature sensor.
Interesting and I’ll follow up. I had thought of maybe trying MQTT locally and having that data forwarded. Your suggestion, I believe is go to the server directly and retrieve the values from there once sent via the API. I would also then use a static token to manage that issue.
Hey Pete, have you tried running this code with the latest esp8266 build 3.?.? Doesn’t like the http.begin(server_path.c_str());
If I roll back to 2.7.? it works fine so I haven’t taken the time to trouble shoot further, but curious if you have run into it.