Comments on: Control ESP32/ESP8266 GPIOs from Anywhere (Firebase Web App) https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 07 Jul 2025 09:22:46 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/#comment-1065861 Mon, 07 Jul 2025 09:22:46 +0000 https://randomnerdtutorials.com/?p=110568#comment-1065861 In reply to Ed.

That’s right!
Thanks for the tip.
Regards,
Sara

]]>
By: Ed https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/#comment-1065592 Sun, 06 Jul 2025 15:31:02 +0000 https://randomnerdtutorials.com/?p=110568#comment-1065592 Just a tip: if at a certain point you only made changes in your html/JS/CSS/image files, instead of: “firebase deploy”, one can also use “firebase deploy –only hosting”
That goes a bit faster as it doesnt need to upload things like ‘rules’ etc

]]>
By: Sara Santos https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/#comment-1000870 Sat, 18 Jan 2025 11:09:10 +0000 https://randomnerdtutorials.com/?p=110568#comment-1000870 In reply to vijay sinh.

Hi.
Open the JAvascript console and see if you get any errors.
Also, hard refresh your web browser.
Regards,
Sara

]]>
By: vijay sinh https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/#comment-1000866 Sat, 18 Jan 2025 10:37:59 +0000 https://randomnerdtutorials.com/?p=110568#comment-1000866 In reply to Sara Santos.

hi get everything fine also get web app successfully but there no any login form it just showing only title of web app and header

]]>
By: Arturo https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/#comment-981618 Fri, 08 Nov 2024 20:11:13 +0000 https://randomnerdtutorials.com/?p=110568#comment-981618 In reply to Sara Santos.

I get the following errors and have the same issue:

index.js:24 Uncaught SyntaxError: Identifier ‘dbPathOutput3’ has already been declared
auth.js:10 user logged out
subscribe.ts:239 ReferenceError: setupUI is not defined
at Object.next (auth.js:11:13)
at subscribe.ts:104:16
at subscribe.ts:233:11

]]>
By: Anbjørn Myren https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/#comment-951234 Sun, 25 Aug 2024 21:38:16 +0000 https://randomnerdtutorials.com/?p=110568#comment-951234 In reply to Henry Leonardo Campos García.

Hi.
Its been a while since I set it all up so I dont remember every step in the process.
My setup is now with one NodeMCU receiver unit which have a 8 channel solidstate relay card connected so I can control 8 outputs.

I have 8 Wemos D1 Mini v3.0.0 with temp/humidity/pressure sensor that sends their values every 10 minute to the NodeMCU receiver. The NodeMCU compares the temperature value to check if it is higher or lower than the setpoint for the actual channel and sets the corresponding output on or off.

The NodeMCU also sends the values to the Firebase database, and also reads the setpoint values from the database. From the web-app webpage I can monitor all these 8 sensors and also change the setpoint values.
The NodeMCU also acts as a webserver, html code is nearly similar to the web-app, but it also have a timestamp so I can see when the values was last updated.

I did choose the Wemos boards for the sender units because their low standby power consumption, only about 8 microamp in deep standby. I set them to wake every 600 sec, transmit their value and return to deep sleep again. This way I can use 18650 3.7v batteries to power them and they lasts for months before recharge is needed.

]]>
By: Paulus Andi Nalwan https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/#comment-950632 Sat, 24 Aug 2024 03:42:56 +0000 https://randomnerdtutorials.com/?p=110568#comment-950632 Hi, I have reach step 18 but found error loading firebase SDK please check console. Could you let me know the solution?

]]>
By: Henry Leonardo Campos García https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/#comment-933822 Wed, 03 Jul 2024 20:11:34 +0000 https://randomnerdtutorials.com/?p=110568#comment-933822 In reply to Anbjørn Myren.

Hello Myren, how did you solve it? Everytime i tried to set the new value the setup() function executes again, so I don’t know what to do

]]>
By: Juan criado https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/#comment-887253 Wed, 31 Jan 2024 17:00:17 +0000 https://randomnerdtutorials.com/?p=110568#comment-887253 Hello, I have completed the tutorial and it works well for me.
I have been testing if it was possible that by pressing a single button, it activates a relay, leaves it activated for a second, and then deactivates it again.
My intention is to use it to open a garage door, but I can’t, and I was wondering if you could help me. So far the only thing I have achieved is that when I press it, the relay is activated, and in a very few milliseconds it turns off, but I needed the relay to be activated for longer.
I attached the button code:
btn6On.onclick = () =>{
dbRefOutput5.set(1);
setTimeout(() => {
console.log(“1 second please”)
}, 1000);
dbRefOutput5.set(0);
}

PD: With this code the relay is activated, but it turns off immediately, and the 1 second delay does not do it for me, I hope you can help me, I have already looked elsewhere and I cannot find the solution.
I would greatly appreciate your help. Good morning.

]]>
By: Raajshekhar Rajan https://randomnerdtutorials.com/control-esp-gpios-firebase-web-app/#comment-842093 Wed, 21 Jun 2023 08:50:32 +0000 https://randomnerdtutorials.com/?p=110568#comment-842093 hi sara, your projects are of gr8 help, I made it on 1st go. But I have a question, like I want to create 2 different users with different board and no one can control or see each other. Is there a way?

]]>