-
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
Vector Battery Status #382
Conversation
One small thing I would change is instead of using a question mark, maybe use a ~ symbol since it means approximately |
Good idea @Zomboy4313, implemented |
This implementation is so cute! A battery indicator has been requested before, but I've been hesitant because of the same issues you ran into. Specifically: new voltages being sent not very often. I believe this to be a firmware limitation. It is also hard to be precise with the battery since there isn't a "fuel gauge" like a smartphone would have. Your curve idea seems accurate enough, though. Just one nitpick: when no bots are authenticated, there is a bit of empty space between the header and content in the main page. If that is fixed, I will merge this. I like this idea a lot. I wonder if we could replicate the "Vector is doing ..." indicator that was in the Vector mobile app. Vector has an event stream which provides things like that. In my testing though, I couldn't figure out how to correspond a "RobotState.Status" with one of the proto-defined statuses. |
Awesome ideas @kercre123! Thanks for removing the botStats element on no bots! I also pondered more animations and expanding on the robot status, included is a blank face which we could make more gif animations for various status states! (the home charging png I made in photoshop) To be clear, Vector's firmware was not open sourced, correct? We can't push firmware updates or on board logic with the vector-cloud server? I was also thinking that this makes the "Bot Settings" page obsolete, since it's much faster to click into the bots from the homepage, but felt removing that was outside scope and didn't want to interrupt any workflows utilizing that functionality. |
Right, we can't change the robot firmware. Some parts were open-sourced, but we don't have enough of the code to fully build our own firmware. Even if we could build it, we'd have no way to sign it and run it on a production bot. The animations were fully open-sourced. The more complex ones have sprite sequences which could be turned into GIFs. For regular animation files, a dev robot could be used to capture it. The Bot Settings page is probably unneeded now.. I think I'll leave it in for now since all of the YouTube wire-pod setup tutorials still refer to it and such. |
Oooo awesome tip on those sprite sequences! I'll keep them in mind and maybe raise a PR for an animated home/charging GIF |
First off, thank you so much for this repository and keeping Vector alive 💚
I saw a closed PR on battery status #310, and thought it would be a nice way to learn how Wire Pod works. So I obsessively tackled creating a nice UX for displaying battery stats. This could resolve #309
/api-sdk/get_battery
common.js
file for loading sdkInfo and getting battery status, since these are needed on home and settingsUntitled.video.-.Made.with.Clipchamp.2.mp4
Full Charged







Roaming
Needs Charging
Charging with ETA
Charging with Tooltip
Loading
Network error
Issues