# Accessing Firebase cloud variables in thunkable

**URL:** https://community.thunkable.com/t/accessing-firebase-cloud-variables-in-thunkable/2237157
**Category:** Questions about Thunkable X
**Tags:** firebase, beginner, cloud-variable
**Created:** [January 23, 2023, 4:26pm UTC](https://community.thunkable.com/t/accessing-firebase-cloud-variables-in-thunkable/2237157 "2023-01-23T16:26:01Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![marcanthonychristoph](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@marcanthonychristoph](https://community.thunkable.com/u/marcanthonychristoph)
#### Post date: [January 23, 2023, 4:26pm UTC](https://community.thunkable.com/t/accessing-firebase-cloud-variables-in-thunkable/2237157/1 "2023-01-23T16:26:02Z")

</div>

Hi! I’m fairly new to Thunkable. I’m working on a project in which I’m calling variables from my database but I’m quite stuck on how to make it appear on my application, any help would be appreciated.  
(I’ve already connected the database to Thunkable)

 ![ForumHelp](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/c/7cbde7af2cf776920f779a8a5eb54d473cda80d7.png)  
 ![ForumHelp2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/d/ddb96c5f9bd44a5253be9c25400b3688df8b1170.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: [January 23, 2023, 4:35pm UTC](https://community.thunkable.com/t/accessing-firebase-cloud-variables-in-thunkable/2237157/2 "2023-01-23T16:35:43Z")

</div>

I’ve never used cloud variables the way you’re using them and I don’t know if that will work.

At the very least, you need to provide a key to a string. Currently, you’re providing a key to an object (DS18B20\_Data). As a test, can you set a label’s value to cloud variable “DS18B20\_Data/Water\_Temperature” and see if you get “0”? Do this when the screen opens.

You’ll need to use this block:

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

But change `app` to `cloud`

---

<div class="post-metadata">

### Author: ![marcanthonychristoph](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@marcanthonychristoph](https://community.thunkable.com/u/marcanthonychristoph)
#### Post date: [January 25, 2023, 4:38pm UTC](https://community.thunkable.com/t/accessing-firebase-cloud-variables-in-thunkable/2237157/3 "2023-01-25T16:38:47Z")

</div>

Terribly sorry for the late reply, I read the documentation and watched the tutorials uploaded on YouTube. Everything seems to be working now, thank you for the help!

---

<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: [January 25, 2023, 5:12pm UTC](https://community.thunkable.com/t/accessing-firebase-cloud-variables-in-thunkable/2237157/4 "2023-01-25T17:12:15Z")

</div>

You’re welcome! If you don’t mind posting a screenshot of the working blocks, it would be helpful to anyone who reads this topic later.

---

<div class="post-metadata">

### Author: ![marcanthonychristoph](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@marcanthonychristoph](https://community.thunkable.com/u/marcanthonychristoph)
#### Post date: [January 29, 2023, 8:40am UTC](https://community.thunkable.com/t/accessing-firebase-cloud-variables-in-thunkable/2237157/5 "2023-01-29T08:40:13Z")

</div>

I also changed the database key to not have any elements/sub-elements, I tried it on the web viewer as well as on the live test on the device and it’s working as intended.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/0/202f9f1f9bbd2e68c29926347d29756ce09dc650.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/687a5e7c96ffb6e50745e316cbb793e2603cd0a4.png)

---

<div class="post-metadata">

### Author: ![marcanthonychristoph](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@marcanthonychristoph](https://community.thunkable.com/u/marcanthonychristoph)
#### Post date: [January 29, 2023, 8:41am UTC](https://community.thunkable.com/t/accessing-firebase-cloud-variables-in-thunkable/2237157/6 "2023-01-29T08:41:25Z")

</div>

Forgot to show proof, my apologies. Here’s the before and the after

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/7/f78badddf5f689ba4d5567bf6aaa16090f454b00.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/0/90fa4ed337f075b00c8ef5765514ff5c88c6a0a1.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [April 29, 2023, 8:41am UTC](https://community.thunkable.com/t/accessing-firebase-cloud-variables-in-thunkable/2237157/7 "2023-04-29T08:41:27Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
