New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grafana doesn't get any data (synology/docker) #246
Comments
In the VWsFriend UI go to database connection settings |
Did you also Setup the postgres container? |
I can't find any database connection setting in the VWsFriend UI - only the status for my car is showing up (which is working fine). Because I followed the Synology docker instructions from your wiki, I didn't setup any postgres container. |
Ah yes, the wiki entry is from a user. I think this is just for HomeKit. I will try to make that more clear. |
Do you have the connection settings environment variable: |
After adding the ADDITIONAL_PARAMETER and the string for DATABASE_URL: the VWsFriends container doesn't start and the log throws this output: I think it has to do with Synologys own Docker implementation (and editing) of the .env file with the Disk Station Manager. Maybe I'm now going to cancel the installation with Synologys DSM and try it with docker compose on the console. |
Ah yes I think the variables are only substituted in docker compose. So you have to replace the variables the real values. e.g. |
That will be the reason. Still in Synology DSM I've changed the string in DATABASE_URL to this: The log throws out this: The port 5433 is correct because Synology uses its own postgres db on standard port 5432. But what about the database Thanks for your patience! |
The error looks like there is no connection at all possible to the database. It is sometimes a bit tricky to allow connections between the containers. Maybe you have to configure something in the UI for it to work? Regarding the database. The database should exist if you put the Variable |
Yes! Putting the variable Now there are the database and the backup links available in the vwsfriends web UI and no error messages in the Grafana Web UI. One last question: What is the difference between "Usable battery capacity (net)" and "Total battery capacity (gross)" in the vehicle parameters form? Thanks for your support and patience. Now that I've all informations to set up vwsfriends on a Synology NAS via the DSM web UI, I'm thinking about to write a blog post about it for other Synology users. There are some specific things that you have to know (and to do manually) in opposite to the installation via docker compose. Will keep you informed. |
Ah, I found it by myself. |
Great that it works now! |
I'll write a documentation for the installation with DSM and ssh (which also works fine with synology), when I find some time. |
@escuco Did you find time to write the documentation? I'm stuck at the same problem. |
I've installed the latest docker container vwsfriend and vwsfriend-grafana on my Synology NAS and configured vwsfriend like described in the wiki: https://github.com/tillsteinbach/VWsFriend/wiki/Install#install-on-synology-docker-native-synology-ui-no-docker-compose
I can now login to vwsfriend on my NAS on ip_adress:4000 and I get the Vehicle Status for my ID.3 without any problems.
After that I configured also vwsfriend-grafana, but after log in on ip_adress:3000 I get only some blank "no data" controls and a warning "You have to set the URL for the VWsFriend user interface correctly: Go to the user interface on port 4000 and select "Database" > ”Connection Settings"".
Back on the user interface from vwsfriend I can not find any Database settings. Only the status page, where I can pick my car and view the informations and status from the car.
Back on the Synology docker settings for vwsfriend-grafana I've checked the VWSFRIEND_HOSTNAME setting and it seems ok:
Is there anything I have to configure for Grafana?
Thank you!
The text was updated successfully, but these errors were encountered: