# Setting Up Blocks to write to Firebase

**URL:** <https://community.thunkable.com/t/setting-up-blocks-to-write-to-firebase/67924>\
**Category:** Questions about Thunkable X\
**Tags:** firebase\
**Created:** [February 7, 2019, 5:46am UTC](https://community.thunkable.com/t/setting-up-blocks-to-write-to-firebase/67924 "2019-02-07T05:46:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RTownsend](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@RTownsend](https://community.thunkable.com/u/RTownsend)\
**Post date:** [February 7, 2019, 5:46am UTC](https://community.thunkable.com/t/setting-up-blocks-to-write-to-firebase/67924/1 "2019-02-07T05:46:26Z")

</div>

Hi all, I’m building my first app and I’m super stuck. I’m building an application which allows me to track my climbs on the stairmaster, but it just rewrites the information over and over again.

I need to create transactions, where each transaction has the following information:

In each “Climb”, I need the following info:

userName (can I use their email address ? I heard that firebase doesn’t allow that)  
date (can this just be a time stamp?)  
totalSteps  
totalFloors  
totalCalories  
totalTime

In the end I want to create a list of climbs that I do, which I can scroll through by date. I also want to be able to add up all the steps and all the floors into a grand total, like the Nike Running app does for your lifetime miles. But to start, I need to figure out how to get this data into the database.

Right now, I can record the totalSteps, totalFloors, totalCalories, totalTime - but it doesn’t record the user or the time, nor does it create a record for each time new information is entered, it just overwrites.

Any help would be appreciated, and then I’ll write out a full how-to when I’m done to contribute back to the group.

This is what I have so far:

 ![33%20AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/3/4373a2ee6bd3c684ae744728dd6c8b7741fbb379.png)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [August 11, 2020, 10:37pm UTC](https://community.thunkable.com/t/setting-up-blocks-to-write-to-firebase/67924/2 "2020-08-11T22:37:29Z")

</div>

A post was merged into an existing topic: [Can you help me with Firebase?](https://community.thunkable.com/t/can-you-help-me-with-firebase/42526)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [August 11, 2020, 10:37pm UTC](https://community.thunkable.com/t/setting-up-blocks-to-write-to-firebase/67924/3 "2020-08-11T22:37:29Z")

</div>


