Blynk and NodeMCU ESP8622 error

I don’t understand this comment.
Presumably you’re talking about Charts in the web console?
The Superchart is the equivalent widget in the mobile app.
Web widgets are configured in the web console, app widgets are configured in the app. Both inherit their min/max values from the datastream setup, unless this is overridden.

The free subscription allows just one datastream per Chart/Superchart.

Comments on your code…

It’s always best to use meaningful variable names, in this case “distance” would have been better than “a”

This code is left-over from the QuickStart sketch and needs to be deleted, as it could cause issues with whatever widget is attached to V3.

This code should not be in your void loop. It should be in the myTimerEvent function, and the delay should not be included at all in your sketch. The frequency of readings should be controlled by your timer.

This approach is very clunky. You’d be far better assigning the incoming widget value obtained via param.asInt() to a variable and using that directly in your digitalWrite command…

// here is code to switch RED 0n ***************************************************
BLYNK_WRITE(V0) // Executes when the value of virtual pin 0 changes
{
  int red_led = param.asInt()
  digitalWrite(2,red_led); 
 }

or if your LED is active LOW (inverted) then use the logical NOT operator (!) to invert the value…

// here is code to switch RED 0n ***************************************************
BLYNK_WRITE(V0) // Executes when the value of virtual pin 0 changes
{
  int red_led = param.asInt()
  digitalWrite(2,!red_led); 
 }

Pete.

Well Pete - I did say it wasn’t pretty - not bad for a first timer though

Thanks for your suggestion and I will take them on board with my next project/investigation

My comments relating to the Web Dashboard are that you can only see this inside the Blynk Console with the left hand menu and top options etc still available. I was hoping there was a button or switch so that i could view the Web Dashboard page by itself without the surrounding clutter when in RUN mode so it can be a device specific user page (like the mobile app that goes into USER mode after exiting the Editing mode - there maybe an option for this

hope this clarifies my comments

Tom

You need to sort-out the void loop on THIS project, otherwise you’ll run into issues long-term

It sounds like you’re asking for a kiosk view, which isn’t currently available.

Pete.