blynkkk / blynk_Issues

6 stars 6 forks source link

Web Dashboard not reading virtual pins #211

Closed mtkreitz closed 3 years ago

mtkreitz commented 3 years ago

ESP32 using DHT11 and capacitive moisture sensor, connected over WiFi SSL.

  1. App on iOS reports values from virtual pins correctly
  2. Serial monitor reports them correctly
  3. Web dashboard (Label) widget DOES NOT report them correctly.

define BLYNK_FIRMWARE_VERSION "0.1.0"

define BLYNK_PRINT Serial

define BLYNK_TEMPLATE_ID "XXXXXXXXXXXXXXXXXXXXXXXXX"

define BLYNK_DEVICE_NAME "SoilSensor01"

define DHTTYPE DHT11

define DHTPIN 22

define SOILPIN 32

include

include

include

include "DHT.h"

DHT dht(DHTPIN, DHTTYPE);

BlynkTimer timer;

char auth[] = "XXXXXXXXXXXXXXXXXXXXXXXX"; char ssid[] = "XXXXXXXXXXXXXXXXXXXXXXXX"; char pass[] = "XXXXXXXXXXXXXXXXXXXXXXXX";

void setup() { // Debug console Serial.begin(115200); Blynk.begin(auth, ssid, pass); dht.begin(); timer.setInterval(5000L, sendSensor); }

void loop() { Blynk.run(); timer.run(); }

void sendSensor() { int humidity = dht.readHumidity(); int temp = dht.readTemperature(true); int moisture = analogRead(SOILPIN);

Blynk.virtualWrite(V5, humidity); Blynk.virtualWrite(V6, temp); Blynk.virtualWrite(V7, moisture);

Serial.print ("Humidity: "); Serial.println (humidity); Serial.print ("Temperature: "); Serial.println (temp); Serial.print ("Soil Moisture: "); Serial.println (moisture); }

doom369 commented 3 years ago

Web dashboard (Label) widget DOES NOT report them correctly.

What do you mean by that? Do you have example?

mtkreitz commented 3 years ago

Sure, attached are (4) files.

First is the iOS app on my phone, showing the correct values Second is the serial monitor from Arduino, showing the correct values via Serial.Print. Third is the datastream configuration for just humidity Fourth is the Web Dashboard showing incorrect value.

Thank you. iOS_App Terminal vPin_Datastream Web Dashboard

doom369 commented 3 years ago

@mtkreitz thanks. that's a template dashboard, not device dashboard. It's shows fake data as this is a template it just shows you how the data will look like on the real device. In order to see the real data open the search view and click on "My devices".

mtkreitz commented 3 years ago

Thank you!

On Thu, Aug 19, 2021 at 5:24 AM Dmitriy Dumanskiy @.***> wrote:

@mtkreitz https://github.com/mtkreitz that's a template dashboard, not device dashboard. It's shows fake data as this is a template it just shows you how the data will look like on the real device. In order to see the real data open the search view and click on "My devices".

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/blynkkk/blynk_Issues/issues/211#issuecomment-901870904, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFMVL5SG3S3ES6O5TU3XD3T5TZYDANCNFSM5CNLWLNQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .