-
-
Notifications
You must be signed in to change notification settings - Fork 476
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
Expanding the extended data field to contain settings that may be non-optimal for operation #1618
Comments
I don't think this more or less "static" data should go into each |
The current network status is already in then |
I agree that this rather static information should be reported otherwise if at all. |
It reports mobile/wifi data source, not if the wifi is disabled which basically breaks significant monitoring mode. |
All of the above settings can be changed by the user and basically render decent presence detection useless. Is there a cmd/dump command (I was looking for that!)? Retrieving it that way would be just as valuable. |
Our Booklet details the supported commands on the JSON page. |
It is not supposed to report a "data source" but
|
There are the configuration settings as described in [booklet|(https://owntracks.org/booklet/tech/json/#_typeconfiguration) You could add an object to this object like:
|
I'm not sure about putting it into I think there might be value in getting the device to report its status (in a separate message type), on request from the remote endpoint. Open question as to what extend it's android/ios/whatever specific, rather than genericised.
Does the icon currently not reflect charging status? That's a bug if so. |
Good idea @growse: How about defining a new |
If we do have the
|
Which topic should status messages live on? |
I think on a new topic |
Worth sketching out a quick schema with some types for each value? |
Is cmd/dump applicable for Android? It's listed as iOS only: "dump Triggers the publish of a configuration message (iOS)" |
No, did not appear to be so in the 2.4.12 PlayStore version. |
Would you like a PR for this? I realize that it's in the location message vs status, but you can cherry pick the API's to collect the desired info from Android. |
Yes please - I suspect at a minimum we'll need:
I've probably missed something. Worth also saying that these are incremental - we can introduce a new message type as an atomic change without doing the other bits, so might be easier to break it up. |
Sorry about the late reply -- just tied up on another project. I'll try to get the first bits into a PR this weekend to start chipping away at this. |
@growse Other project wrap-up took longer than expected so I'm just getting back to this one. How would you like this PR structured? I can submit it as is, or I can add in the message types that you listed above? Do you have specific ENUM's in mind, or that can get scrubbed in the PR? Let me know! |
I don't think I have strong opinions, my only real criteria for contributions are:
I'm generally ok with long-lived PRs that we can work on until it's good to merge, so feel free to shove something up and mark it as a draft or something until you're happy. |
I've added the status command/response to the PR. Downfall of using a separate status message is being able to display Thoughts on putting the data as a subset of the |
Ok, PR is complete to support the status command:
|
I added additional functional to a fork of 2.4 that added:
@JsonProperty("wifi") -- wifi is on/off
@JsonProperty("ps") -- phone power save mode
@JsonProperty("bo") -- app is configured with battery optimizations
@JsonProperty("hib") -- app can hibernate if not used
@JsonProperty("loc") -- app location permissions
They get returned in the extended attributes to allow the central host to see misconfigurations that can impact good location operation. And then added a summary to the friends tile drawer (including a battery icon that changes when charging):
If I do a pull request, will this be considered?
The text was updated successfully, but these errors were encountered: