Reading http data

Is it possible to read data on the LCD, e.g. from the address:
http://blynk-cloud.com/xxxxxxx/get/v1

You are not reading from the LCD, but from the virtual Pin that carries the data. So depending on your settings for the LCD (Simple or Advanced) you will get different results.

For example with Advanced, you will see the positioning info and may only see the current character(s) being “placed” when using the advanced mode

http://xxx.xxx.xxx.xxx:8080/xxxxxxxxxx/get/V70

["p","1","0","Press START"]

image

["p","15","1","â–Ť"]

image

can you send an example code?

I just did… use your own IP (or blynk-cloud.com), AUTH and Virtual Pin… It helps to have a Widget set with same vPin as you use :wink: and come form of code to fill it with data.

I mean where to enter html ( http://xxx.xxx.xxx.xxx:8080/xxxxxxxxxx/get/V70 ) in the program code and read the data on the display.

#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

BlynkTimer timer;

void sendSeconds() {
  Blynk.virtualWrite(V0, millis() / 1000);
}

void sendMillis() {
  Blynk.virtualWrite(V1, millis());
}

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);

  // Setup a function to be called every second
  timer.setInterval(1000L, sendSeconds);
  // Setup a function to be called every second
  timer.setInterval(1000L, sendMillis);
}

void loop()
{
  Blynk.run();
  timer.run();
}**strong text**

I don’t really know what you’re trying to achieve here - and why.
Maybe if you could explain what you’re doing, we could suggest a simpler solution.

Pete.

I want to display at home an oled termperature external display from another disc (wemos)

Why not use the bridge widget?

2 Likes

You don’t use this with Device code :sweat_smile: … that is an API command for use in a Web Browser, and with variations of syntax, in 3rd party IFTTT type processes.

1 Like

Yes, that’s what Bridge is for.

Pete.

2 Likes

Yes

If you ever get the chance to do the Tower Bridge tour you should. Those high level walkways between the two towers have glass floors, which gives an amazing view as you walk across.

Pete.

1 Like

:slight_smile: