# \[Solved\] How can I interface a value from Firebase RDB to Thunkable?

**URL:** <https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, beginner\
**Created:** [December 21, 2022, 6:04am UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107 "2022-12-21T06:04:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![zian.muinxij](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/zian.muinxij/32/138588_2.png) [@zian.muinxij](https://community.thunkable.com/u/zian.muinxij)\
**Post date:** [December 21, 2022, 6:04am UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107/1 "2022-12-21T06:04:56Z")

</div>

Hi there! I would like some help in interfacing with, or at least getting the value from, my Firebase RDB to Thunkable. I watched a couple of video tutorials, but they were for an older version of Thunkable; now I’d like to know how to use the new version. I can easily do this in MIT App Inventor, but is this possible in Thunkable?

All I watched was about signing up and signing in, but there’s nothing about interacting and not setting the value.

This is my block in MIT App Inventor:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/25d12ddb6df5f4e92ac217092ec8272ca75699df.png)

And I want this Firebase database of mine:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/e/bea1ec46471ada26d3d15b8e5099ba79a7babf6f.png)

To interface with this Thunkable app that I design:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/5/75c0164af427f149c2da735b6668f591ef90ef8f.png)

All I have managed is entering the API and URL of my Firebase to Thunkable.  
But making blocks is extremely difficult for me. I would appreciate a demo app that can do this so I can analyze it for myself. Thank you in advance for your future responses!!!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 22, 2022, 1:30pm UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107/2 "2022-12-22T13:30:19Z")

</div>

@zian.muinxij check this example

 ![Στιγμιότυπο οθόνης (1462)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/3/834952f00531ae210854764d3ee6edd478ecfec2.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 22, 2022, 8:02pm UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107/3 "2022-12-22T20:02:51Z")

</div>

I find that example confusing because you’re using a _variable_ for the name of the cloud variable instead of a text string. I generally try to avoid that because it adds an extra layer of complexity.

The basic idea is to set a cloud variable with the path to the Firebase data. So if your Firebase database looks like this:

Users/  
…UserID  
…12345  
…Age

Then to set the value of the “Age” key/property, you would set cloud variable “Users/UserID/12345/Age”

Keep in mind that if your Firebase data contains arrays, you will need to use the list blocks to reference that data.

---

<div class="post-metadata">

**Author:** ![zian.muinxij](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/zian.muinxij/32/138588_2.png) [@zian.muinxij](https://community.thunkable.com/u/zian.muinxij)\
**Post date:** [December 23, 2022, 2:43pm UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107/4 "2022-12-23T14:43:52Z")

</div>

Hi, thanks for the advice but can you show me a snippet of blocks that can interface this cloud variable to a label?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 23, 2022, 2:48pm UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107/5 "2022-12-23T14:48:33Z")

</div>

Hello,  
Have you tried to implement any cloud blocks?

Can you try rephrasing the question please?

We would be happy to offer support.

---

<div class="post-metadata">

**Author:** ![zian.muinxij](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/zian.muinxij/32/138588_2.png) [@zian.muinxij](https://community.thunkable.com/u/zian.muinxij)\
**Post date:** [December 23, 2022, 3:02pm UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107/6 "2022-12-23T15:02:11Z")

</div>

So far, from what I understood, this is what I managed to make:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/b/8bcf7b3af71fec366495ad70fcd72b9c15feb1a9.png)

I was trying to use this cloud variable to store my data from Firebase but what I don’t get is how to store this cloud variable to an app variable which I can use to interface/show this is my percent label. I need to store 3 variables. You can see in my screenshot of Firebase Database, I need to interface these Tank1, Tank2, and Tank3 at the same time. And the data will also update in my screen in their respective label.

I just want to change this percent label:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/4/3408a11ec1697d5dd3680c6c299ba844646fa4bb.png)

to the value from my Firebase Database here:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/c/2cf23f1e2727d5fce52dad3755f6be7e24535de2.png)

Again thank you for responding to me 🙂

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 23, 2022, 3:38pm UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107/7 "2022-12-23T15:38:20Z")

</div>

This can be done with the following blocks

 ![Στιγμιότυπο οθόνης (1467)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/5/a538da82d2034e15684de256007b4675654d9b87.png)

You can use the “set variable” block when you want to update these variables

Let me know if it worked for you.

---

<div class="post-metadata">

**Author:** ![zian.muinxij](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/zian.muinxij/32/138588_2.png) [@zian.muinxij](https://community.thunkable.com/u/zian.muinxij)\
**Post date:** [December 23, 2022, 4:13pm UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107/8 "2022-12-23T16:13:38Z")

</div>

Thank you very much @ioannis !!! You really saved me; it works!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/0/e043659db53b8da5cbff20413f906e3b11a2dc8a.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/4/64ad83f414d52f2b9a693c458c414f0d95c0c51d.png)

Now, I finally understand how this cloud variable works.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 23, 2022, 4:53pm UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107/9 "2022-12-23T16:53:02Z")

</div>

@zian.muinxij That’s great! I am happy that I was helpful.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [December 23, 2022, 4:53pm UTC](https://community.thunkable.com/t/solved-how-can-i-interface-a-value-from-firebase-rdb-to-thunkable/2187107/10 "2022-12-23T16:53:19Z")

</div>


