[SOLVED] History graph bad work (Graph not displaying when app closed)


in that place shown on pic my app was closed abd when i open my app i appear that i have sometimes with any data. so are there any solution?

Post your code, properly formatted that is.

1 Like

i just use the default nodemcu sketch and add shown widget.

What is the default nodemcu sketch?

1 Like

please tell me how should i do it without that problem.

Either post a link to where you got the code, or post the code one here. Once we can see the code, we can give advice on what you may be doing wrong.

1 Like

You probably using reading widget. The reading widget works only while the app is open. You need to use push widget - http://docs.blynk.cc/#blynk-main-operations-get-data-from-hardware-pushing-data-from-hardware

1 Like

In order for you to store data when the app is closed, you need to use virtual pins. What you have will get you basic pin manipulation and not much else.

http://docs.blynk.cc/#blynk-main-operations-virtual-pins

2 Likes

so supported push mode on gauge? or just displays?

What type of temperature sensor are you using, what pin is it hooked up to?

What pin is your gauge linked to?

What pin is your history graph linked to?

There may be an example in the Sketch Builder that you could use.

1 Like

A0 = analog

A0 pin

it is just a pot.

thanks i’ll do it.

Not sure why I was thinking a temp sensor.

Check out the Push Data example in the Sketch Builder. With some simple modifications you can get it to store the analog value to a virtual pin so it will save the data when app is not running.

Let me know if you need help with that.

1 Like

i think i understand thank you verymuch.