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?
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
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
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
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
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
Thanks Sara,
This is an excellent course! I look forward to any additions you may make to it in the future.
Joel
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
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
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