forked from Elara6331/itd
Update readme
This commit is contained in:
parent
b87586ef15
commit
f001dd6079
@ -15,7 +15,7 @@
|
|||||||
- Notification transliteration
|
- Notification transliteration
|
||||||
- Call Notifications (ModemManager)
|
- Call Notifications (ModemManager)
|
||||||
- Music control
|
- Music control
|
||||||
- Get info from watch (HRM, Battery level, Firmware version)
|
- Get info from watch (HRM, Battery level, Firmware version, Motion)
|
||||||
- Set current time
|
- Set current time
|
||||||
- Control socket
|
- Control socket
|
||||||
- Firmware upgrades
|
- Firmware upgrades
|
||||||
@ -29,7 +29,7 @@ This daemon creates a UNIX socket at `/tmp/itd/socket`. It allows you to directl
|
|||||||
The socket accepts JSON requests. For example, sending a notification looks like this:
|
The socket accepts JSON requests. For example, sending a notification looks like this:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{"type": "notify", "data": {"title": "title1", "body": "body1"}}
|
{"type": 5, "data": {"title": "title1", "body": "body1"}}
|
||||||
```
|
```
|
||||||
|
|
||||||
It will return a JSON response. A response can have 3 fields: `error`, `msg`, and `value`. Error is a boolean that signals whether an error was returned. If error is true, the msg field will contain the error. Value can contain any data and depends on what the request was.
|
It will return a JSON response. A response can have 3 fields: `error`, `msg`, and `value`. Error is a boolean that signals whether an error was returned. If error is true, the msg field will contain the error. Value can contain any data and depends on what the request was.
|
||||||
@ -83,10 +83,10 @@ This is the `itctl` usage screen:
|
|||||||
Control the itd daemon for InfiniTime smartwatches
|
Control the itd daemon for InfiniTime smartwatches
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
itctl [flags]
|
||||||
itctl [command]
|
itctl [command]
|
||||||
|
|
||||||
Available Commands:
|
Available Commands:
|
||||||
completion generate the autocompletion script for the specified shell
|
|
||||||
firmware Manage InfiniTime firmware
|
firmware Manage InfiniTime firmware
|
||||||
get Get information from InfiniTime
|
get Get information from InfiniTime
|
||||||
help Help about any command
|
help Help about any command
|
||||||
@ -95,6 +95,7 @@ Available Commands:
|
|||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
-h, --help help for itctl
|
-h, --help help for itctl
|
||||||
|
-s, --socket-path string Path to itd socket
|
||||||
|
|
||||||
Use "itctl [command] --help" for more information about a command.
|
Use "itctl [command] --help" for more information about a command.
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user