mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-07 14:32:30 +02:00
1.2 KiB
1.2 KiB
https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Developer-Documentation
./gradlew assembleDebug
adb install app/build/outputs/apk/debug/app-debug.apk
Messages sent to Bangle.js from Phone
wrapped in GB(json)\n
t:"notify", id:int, src,title,subject,body,sender,tel:string
- new notificationt:"notify-", id:int
- delete notificationt:"alarm", d:[{h,m},...]
- set alarmst:"find", n:bool
- findDevicet:"vibrate", n:int
- vibratet:"weather", temp,hum,txt,wind,loc
- weather reportt:"musicstate", state,position,shuffle,repeat
t:"musicinfo", artist,album,track,dur,c(track count),n(track num)
Messages from Bangle.js to Phone
Just raw newline-terminated JSON lines:
t:"info", msg:"..."
t:"warn", msg:"..."
t:"error", msg:"..."
t:"status", bat:0..100, volt:float(voltage)
- status updatet:"findPhone", n:bool
t:"music", n:"play/pause/next/previous/volumeup/volumedown"
t:"call", n:"ACCEPT/END/INCOMING/OUTGOING/REJECT/START/IGNORE"
t:"notify", id:int, n:"DISMISS,DISMISS_ALL/OPEN/MUTE/REPLY",
- if
REPLY
can usetel:string(optional), msg:string
- if