-
Notifications
You must be signed in to change notification settings - Fork 176
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
battery status in statistics #310
Conversation
The unfortunate issue with the SDK is the battery level will always be a constant value when read e.g. 4.9v but the status will either be good, charging, or needs to charge....so this graph will always have a horizontal line that changes from read to read...it wont ever slope down or up :( |
I don't quite understand it. The SDK gives me the voltage between ~4.369... and ~3.564... I would like to have this voltage displayed in the graph (not if good, charging, or needs to charge). If I start the query every 30 seconds or so, I get different values if Vector is charging or not on its station. |
When he is taken off the charger, the voltage value just stays the same in my experience, even after 10 minutes or so. I don't know if this is an issue with the vector-go-sdk or if it is expected. |
I already have a go lang script that reliably gives me the battery voltage and docking status from vector, I just don't know how best to implement it in wire-pod... I can post it here later. It would be great if you could take a look at it and help me with it. |
As promised, here is the go lang code that supplies the voltage every 10 seconds: I am currently using the script as a service on wire-pod to send the values to my smarthome via MQTT (see also issue #312). It would be great if someone could help me with the implementation in wire-pod and maybe realize both issues. Please feel free to use my code. |
MQTT support is something i'd like to add to WirePod in the future, but I think i'd want to send more than just docked status+voltage. Is there any reason you'd like this to be a part of wire-pod rather than stay as a seperate process? |
Docking status and battery are the things that the SDK already supports, so I think it should be relatively easy to integrate. It would be a great advantage for all users who don't want to or can't program to simply enter the IP and port of their MQTT broker via the interface and wire-pod does the rest. I can of course live with my current solution, but it is customized for me with additional scripts and setting up a service. |
With regard to issue #309, I have prepared the graphical user interface for displaying the battery status under statistics. Someone would just have to implement the get_battery_status function. Unfortunately I don't have the go knowledge for this.