• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Firebase WebApp with ESP32

Q&A Forum › Category: Other › Firebase WebApp with ESP32
0 Vote Up Vote Down
Brian asked 4 years ago

Hello

On VS platformio

\”Already logged in as user@gmail.com\”.

PS C:\\Users\\bgelc\\Documents\\PlatformIO\\Firebase-Project> firebase –version 9.22.0

firebase init firebase

deploy firebase serve –only hosting Web Page (HTML File)

PS C:\\Users\\bgelc\\Documents\\PlatformIO\\Firebase-Project> firebase –version 9.22.0

<!– update the version number as needed –>

<script src=\”https://www.gstatic.com/firebasejs/9.22.0/firebase-app.js\”></script>

<!– include only the Firebase features as you need –>

<script src=\”https://www.gstatic.com/firebasejs/9.22.0/firebase-auth.js\”></script>

<script src=\”https://www.gstatic.com/firebasejs/9.22.0/firebase-database.js\”></script>

<script> The login does not give any result on html file no logged out or login just a static display.

I traced problem to the above scripts. If I run them as urls in browser I get 404. That’s an error.

The requested URL /firebasejs/9.22.0/firebase-database.js was not found on this server.

That’s all we know.

Was the same reply from all the scripts

I tried different version numbers and at 9.4.0 I got a result on browser ,but of course putting 9.4.0 in the scripts made no difference on the login

Can you look at this and help?

10 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
You don’t need to change anything on the code we provide on the course.
Use the HTML file we provide as it is (with version 8.8.1).
I’m sorry if that was confusing.
Regards,
Sara

0 Vote Up Vote Down
Brian answered 4 years ago

Hello Sara
Going to 8,8,1 that  cured it, After I reinitialized and deployed + reboot
Thank you for swift answer. A very good course that was my only problem
Regards Brian
 

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Thanks, Brian.
I’m glad you like it.
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
Joel Farnham answered 4 years ago

I am trying to test the Firebase web app according to the instructions on page 144 of the book.
I get the following errors on the Java Script Console:
this.activeSection is undefined

this.activeSection is null 2

GEThttps://token.services.mozilla.com/1.0/sync/1.5

The web browser was FireFox.  When I switched to MS Edge, it worked exactly how the

book described.

Thanks,

Joel

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Joel.
I didn’t test the example on Firefox. That’s probably some incompatibility with that browser. I didn’t know about that.
All examples were tested on Google Chrome.
Regards,
Sara

0 Vote Up Vote Down
Joel Farnham answered 4 years ago

Thanks Sara,
This is an excellent course!  I look forward to any additions you may make to it in the future.
Joel

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Thanks.
I’m glad you like it.
I have at least a new project to add to that eBook, which is related to datalogging.
Regards,
Sara

0 Vote Up Vote Down
Joel Farnham answered 4 years ago

Sara,
How can I add Canvas Gauges to my Firebase webpage?  I’m still trying to understand how they are implemented on your tutorial: https://randomnerdtutorials.com/esp32-web-server-gauges/
I’m a complete beginner when it comes to HTML & JSON.  When will you be adding the datalogging tutorial to the eBook?
I would appreciate any guidance you could provide.
Joel

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Joel.
 
First, you need to create a div to place your gauges on your HTML page.
Then, you need to create the gauges on the javascript file and add them to the right places on the HTML page.
Finally, you can use the value method on the gauge object to set a new value on the gauge when there are new values available on the database as you do to display the readings on the cards.
 
I’ll add the data logging project to the eBook, and I think I’ll also include gauges because of your suggestion. It should be available in a new eBook version, probably at the end of January or the middle of February.
 
Regards,
Sara
 
 
 

0 Vote Up Vote Down
Joel Farnham answered 4 years ago

Thanks Sara,
I’ll be looking forward to new additions!
Joel

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.