guidosch / bikecounter

This repository contains the hardware and software components of a PIR based tracking device to monitor the usage of local bike trails. The data is sent over LoRaWAN to TTN and from there to a Google Cloud backend which stores the data and provides api endpoints for the data visualization web UI.
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Missing "L" in hoeckler-new-3 collection #99

Closed MeierTobias closed 7 months ago

MeierTobias commented 7 months ago

The collection name of the Höckler Trail is hoecker-new-3 instead of hoeckler-new-3. Are there any dependencies to this name on the UI side?

I did not notice that before and wrote hoeckler-new-3 into the connection table. That's the reason why the device was reported as offline today. I changed it to hoecker-new-3.

MeierTobias commented 7 months ago

I did not find an easy solution for moving the created documents from the collection hoeckler-new-3 into the original hoecker-new-3 collection.

Here is a script that should perform the required steps. https://stackoverflow.com/a/47263246 or this article https://leechy.hashnode.dev/firestore-move But maybe you have a better solution/idea. The Import/Export function could be a possibility but unfortunately I don't have the access rights to do this.

guidosch commented 7 months ago

I have a script which I used a few times to move data to an other named data base. As we have the mapping table now I could do this. Before I would have to update the device first and then do the move.

guidosch commented 7 months ago

Adjusted UI code and moved all data to the correct collection "hoeckler-new-3 "

guidosch commented 7 months ago

Done