I went to continue the Firebase Timestamping example, with the new charting features. I’m doing this on a different PC, after having copied the timestamping project over (I use VSCode). I confirmed that I can download the Part 1 ESP32 code and have it update the timestamps in the database, just like it did in the other PC. So, I copied all the new Part 2 files (charting-definition.js, etc), into the existing Firebase Project, and went to do the firebase deploy, but it complained that it couldn’t locate the firebase command.
So, after some failed attempts to figure out why, I went back to basics, and just created a new ESP32 project (using the default main.cpp, and the proper platformio file), and went to add the Firebase tools library (searching for ESP Client library and selecting the Arduino Client, as described in the eBook), but it comes up with an error: Libraries: Could not install library. I’ve tried different approaches (restarting VSCode, opening an existing project that works, …) and I get the same error when I try to install this Firebase library.
I’m assuming the lack of this Tool library is why the firebase deploy command didn’t work. Any ideas as to what’s happening? I’m a bit lost for ideas (other than deinstalling/reinstalling VSCode, which I really don’t think will help). Thanks.
Deploying a firebase project is not related to the libraries you use to program your boards.
Those are two different things.
Did you install Firebase Tools on that new computer? Maybe you don’t have installed all the necessary tools to create a firebase app on your computer, that are:
- Visual Studio Code
- Node.JS LTS version
- Install Node.js Extension Pack (VS Code)
- Install Firebase Tools
I hope this helps.
Thanks Sara …. so, I had started the Firebase eBook all over again on my laptop, and when I came to pg 44, Installing ESP Firebase Client Library VS Code), that is where I started getting the “Libraries, Could Not Install Libraries” error.
So, I did what you asked about: “Did you install Firebase Tools on that new computer” … the answer was “no”, but that is detailed in section 4.1, pg 105, and is the reason I hadn’t done it.
Now that I’ve done it (i.e just the node.js for now), back on page 44, I can now install the Firebase Library Client. I’ll continue with the rest of the install, and see if I can do the firebase deploy for the Part II of the timestamping tutorial. Basically, I hadn’t done the installs and copying the files from the other computer wasn’t enough. … I’ll report back when I get through the tutorial. – JoeM
You need to install all the tools I mentioned previously.
Otherwise, it will not work.
Hi Sara … I finally resolved my issues, and although I thought I knew enough about all the code needed from going through the Firebase eBook, I didn’t have a good understanding of all the steps needed to produce a project. I feel pretty confident now to take on building a different project using your code as a starting point, but importantly, I feel I have a good procedure now for building a project from scratch. I wrote a comment in the BME280 charting tutorial you wrote explaining more. If there is interest in my 3 page procedure I wrote up, I’d like to share it (but can’t figure out how to add a pdf file to a gist … is there another way to include a pdf in this forum?). Thanks for your help. This question can be marked resolved.