Data/value from firebase not showing in app

i am making an app for school project for smart irrigation system using esp8266 but moisture value not showing in app and other things . these are my codes


Screenshot 2025-07-08 022458

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
export_and_upload_aia

here is my aia file

finalESP.aia (416.6 KB)

Your Firebase data is under two separate branches in the database:

  • FinalESP
  • (empty string)

Your Firebase component sets its bucket to 'FinalESP', confining its access to just the first branch, which does not have the moisture.
image

I can't tell from your partial sketch listing why your sketch posts moisture in a different branch from the other data, so I can't offer a fix for that. It might be happening in lines 1-30 , which you did not post.

So to get around this, you might try:

  • set the Firebase bucket to empty text in the Ai2 Designer
  • Add 'finalESP/' to the front of your tags for pumpCommand and systemStatus, to start them from the Firebase db root and send them down the right branch
  • Leave the moisture tag as is, since it is directly off the root.

For you to test:


finalESP (1).aia (416.5 KB)
image

P.S. Delete your duplicate posts from that other thread, we don't need that one any longer than it already is.

IT WAS SO HELPFUL THANK YOU, IT NOW DISPLAYS THE MOISTURE VALUE IN THE APP. is it possible for you to help me with the functionality of the app? now my problem is that the label for pump is not changing. it is just "pump is on" even if threshold exceeds and need to be "pump is off".

How is the app supposed to know that the pump is off?

A post was split to a new topic: A very confusing post about a Firebase project?