Superchart saved/retreived old data from Firestore

• Hardware model + communication type : ESP32 Dev
• Smartphone OS : Android
• Blynk server region : SG
• Blynk Library version : 0.6.1
• Post your FORMATTED sketch code. Remove your AUTH TOKEN from code. Don’t post screenshots
• Post your serial monitor output when experiencing some issues

My Question:

  • Im doing Auto Pet Feeder, User set time from widget with the amount(g)
  • 3 session available for a day (Morning,Noon,Night)
  • I want to store all data such as [Session(Parent node), amount,time,date] in Firestore
  • I notice that Superchart will lost all the data when ESP32 offline, how do I retrieved back all previous data? Plus if the data retrieved from Firestore, how do I display each past session back into Superchart I dont want to use Blynk Cloud

That’s not how Superchart works.
If your symptom is that you are only seeing data in the “live” tab of your Superchart then that’s because you haven’t enabled the “Enable history data” option for each datastream that you’re displaying un you’re Superchart…

Once you do this, the Superchart will display history that goes back as far as your subscription plan allows…

Storing the data in an external database like Firestore isn’t going to help you. Superchart is designed to work with the data that is stored in the Blynk Cloud database, not an external database.

Pete.

owh okay all solved, thanks for help

btw old superchart on blynk legacy dont have this old history option right? Never notice this before

It’s just be introduced in datastreams last month…

Pete.

I am using Blynk platform from Feb 2023 free plan and i need data from 2023 to current , i want to upgrade plan from free to starter , is it possible to retrieve data in CSV file against virtual pins having enabled history data at cloud ??

The Starter plan only gives 1 month of data storage, so to view the desired 3 years of data you would need to be on the Enterprise p,an.

Data will start to be retained from the period when you sign-up to the new plan, it won’t give you access to historic data because that data just isn’t stored for the lower cost plans.

Pete.

ok Thanks !