Skip to content
This repository has been archived by the owner on Dec 30, 2019. It is now read-only.

Save Battery Level #59

Closed
mgerst opened this issue Jun 12, 2019 · 8 comments · Fixed by #62
Closed

Save Battery Level #59

mgerst opened this issue Jun 12, 2019 · 8 comments · Fixed by #62
Assignees
Labels
Milestone

Comments

@mgerst
Copy link
Contributor

mgerst commented Jun 12, 2019

Either in the location endpoint or another endpoint, we should take in the current battery level of the gnome. This will help with debugging and it might be cool to see the battery over time.

@mgerst mgerst added the Backend label Jun 12, 2019
@tegandbiscuits tegandbiscuits self-assigned this Jun 12, 2019
@tegandbiscuits
Copy link

Do you think the backend should calculate the battery percentage, or the arduino?

Also about seeing battery over time, (as a separate task) we could use something like DarkSky to get the weather, and associate how sunny it is.

@mgerst
Copy link
Contributor Author

mgerst commented Jun 12, 2019

The battery level is given as a percentage from the FONA, so no calculation needed.

I like the weather idea.

@tegandbiscuits
Copy link

Oh ok, I was under a different impression.

@mgerst
Copy link
Contributor Author

mgerst commented Jun 12, 2019

Yeah, I was happily surprised when I found that out. Made things a lot easier. Although, now that I think about it, I'm not sure how it can know what the percentage is. I'll look into that, we may have to tell it what size the battery is to make it accurate.

@tegandbiscuits
Copy link

Maybe the FONA is able to get the max charge (not sure if that's the right wording) from the battery?

I made this issue for the weather #61.

@tegandbiscuits tegandbiscuits added this to the Gnome Launch milestone Jun 12, 2019
@tegandbiscuits
Copy link

What format do you get the battery in? I assume it's not a string that can says 100%, but is it a decimal number 0-100, or a decimal 0-1, or something else?

@mgerst
Copy link
Contributor Author

mgerst commented Jun 16, 2019

You know, that's a great question. I'm treating it as a double, but reading it as a uint16. Either way it's 0-100.

@mgerst
Copy link
Contributor Author

mgerst commented Jun 16, 2019

Ok, looked at what is actually being sent. It's an integer from 0-100.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants