Comments (23)
I think on a new topic owntracks/user/device/status
. This can be optionally subscribed to by the backend.
.../info
is already used for cards
and is subscribed by other clients
from android.
I'm not sure about putting it into configuration
- this is meant to be for the configuration of the app, rather than the status of the device. I also agree that the location message type is meant to just contain fields that might conceivably change from one location message to the next.
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.
including a battery icon that changes when charging
Does the icon currently not reflect charging status? That's a bug if so.
from android.
Does the icon currently not reflect charging status? That's a bug if so.
No, did not appear to be so in the 2.4.12 PlayStore version.
from android.
I don't think this more or less "static" data should go into each location
message. Rather put it into an extra attribute when the configuration
is dumped (or requested by cmd/dump
from android.
The current network status is already in then location
message as conn
booklet
from android.
I agree that this rather static information should be reported otherwise if at all.
from android.
The current network status is already in then
location
message asconn
booklet
It reports mobile/wifi data source, not if the wifi is disabled which basically breaks significant monitoring mode.
from android.
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.
from android.
Our Booklet details the supported commands on the JSON page.
from android.
The current network status is already in then
location
message asconn
bookletIt reports mobile/wifi data source, not if the wifi is disabled which basically breaks significant monitoring mode.
It is not supposed to report a "data source" but
conn Internet connectivity status (route to host) when the message is created
from android.
I don't think this more or less "static" data should go into each
location
message. Rather put it into an extra attribute when theconfiguration
is dumped (or requested bycmd/dump
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:
{
"_type":"configuration",
...
"local": {
"wifi": true/false,
"ps": true/false,
"bo": true/false,
"hib": true/false,
"loc": "app location permissions"
}
}
from android.
Good idea @growse: How about defining a new "_type":"status"
message, which can be retrieved by a {"_type":"cmd", "action":"status"}
command. In addition, the app may send this message when requested by the user or when the status changes
from android.
If we do have the "status"
message, we can have a genericised part and an iOS/android part like
{
"_type": "status",
... generic attributes (if any)
"android": {
"wifi": true/false,
"ps": true/false,
"bo": true/false,
"hib": true/false,
"loc": "app location permissions"
}
... or ...
"iOS": {
"altimeterAuthorizationStatus": "CMAuthorizationStatusAuthorized",
"altimeterIsAbsoluteAltitudeAvailable": false,
"altimeterIsRelativeAltitudeAvailable": true,
"locationManagerAuthorizationStatus": "kCLAuthorizationStatusAuthorizedAlways",
"UIBackgroundRefreshStatus": "UIBackgroundRefreshStatusAvailable",
"version": "17.2.3/de_DE"
}
}
from android.
Which topic should status messages live on? /info
?
from android.
Worth sketching out a quick schema with some types for each value?
from android.
Is cmd/dump applicable for Android? It's listed as iOS only: "dump Triggers the publish of a configuration message (iOS)"
from android.
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.
from android.
Yes please - I suspect at a minimum we'll need:
- New message type for status message
- New enum value for command message action
- handler in the service to process the incoming command, and generate the status message, before sticking it on the outbound queue.
- somewhere between 2 and 385 tests.
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.
from android.
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.
from android.
Related Issues (20)
- Tasker integration
- Imperial Units in Android GUI
- Notifications for Friends arriving and departing Regions HOT 6
- owntracks doesn't have location permission "allow all the time" HOT 3
- location provider ping-pong? HOT 3
- MessageProcessorEndpointHttp: HTTP Delivery failed HOT 5
- Fully reset configuration when changing mode and/or host/port HOT 2
- Couldn't attach file when sharing log via gmail HOT 3
- MQTTv5 support
- Russian translation (2.5.0) HOT 15
- "Tap here to request notification permission" in 2.5.0 not working HOT 4
- Extend metrics with smartphone others sensors HOT 7
- No map visible on new install HOT 3
- [Feature Request] Support multiple groups of friends using one MQTT server HOT 2
- Return blank location packet for ping/manual location even though there is no location or accuracy is poor HOT 6
- Connection to HiveMQ dropping with an error HOT 12
- MQTT Exception delivering message (32000) HOT 8
- pubExtendedData / extendedData config setting HOT 2
- Reverse-geo ratelimit pauses location publishes HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android.