# Writing data to Firebase Realtime Database

**URL:** <https://discourse.nodered.org/t/writing-data-to-firebase-realtime-database/61805>\
**Category:** General\
**Tags:** http-request, database\
**Created:** [26 April 2022 14:20 UTC](https://discourse.nodered.org/t/writing-data-to-firebase-realtime-database/61805 "2022-04-26T14:20:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zombiedog](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zombiedog](https://discourse.nodered.org/u/zombiedog)\
**Post date:** [26 April 2022 14:20 UTC](https://discourse.nodered.org/t/writing-data-to-firebase-realtime-database/61805/1 "2022-04-26T14:20:01Z")

</div>

I am new to node red and I am trying to use it to send data to firebase realtime database.  
How can I make it so that I don't just add a new instance of temperature but instead create a new key called temperature every time node red sends data to the database. My database looks like this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/a/4a87b45804920e40d4d41d7e2046ad25407f1039.png)  
And I want to make it look this whenever the node red sends new data:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/7/1710aa3936ddf44ace96ae0025eaaa6cb6ce61f1.png)  
Please don't mind the ID its just tutorial I am trying to base on.  
I'm not quite sure if the terms I'm using is correct and you understand my problem but I hope someone will be able to help me. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 June 2022 14:20 UTC](https://discourse.nodered.org/t/writing-data-to-firebase-realtime-database/61805/2 "2022-06-25T14:20:21Z")

</div>

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