mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +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,repeatt:"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:boolt:"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
REPLYcan usetel:string(optional), msg:string
- if