AnhCao
AnhCao

Reputation: 1

Configuring Firebase in node red

I am doing a project on IOT and I'm using Firebase Realtime Database as the database in Node red but I cannot connect these two together. I am using node-red-contrib-firebase to connect with firebase

This is the configuration in Node Red This is the real-time database that I set up in firebase

"My information" gets data from a form in node red including name, student id, class id.

I don't understand what I did wrong because I tried to copy the URL into Firebase field, change the firepath into My Information but it cannot work. Am I misunderstanding something?

Upvotes: 0

Views: 149

Answers (2)

user29610764
user29610764

Reputation: 1

The palette you referred to has not been updated for 9 years.

There used to be only one US database URL (.firebaseio.com). There are now three database URLs (US, European and Asian).

For this reason, you have to find a palette that allows the entire URL.

The most recent palette which supports your URL is @gogovega/node-red-contrib-firebase-realtime-database.

Upvotes: 0

Frank van Puffelen
Frank van Puffelen

Reputation: 599601

It looks like Node-RED can only accept Firebase Realtime Database URLs that end in firebaseio.com. This means that you need to ensure that your Firebase database (and possibly the entire project) is created in the US, while the one in your project is in the Asia location.

So step by step:

  1. Create a new project with a database in the United States (us-central-1) location.
  2. Copy the project ID from the Project settings.
  3. Paste it into the Firebase field of your Node.RED setup

If you want to use your existing project, you can also consider reaching out to Firebase support to get your existing database moved to the US.

Upvotes: 0

Related Questions