mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 02:21:14 +01:00
5b2ca65321
Hi, i applied the changes from [Emeryths fork](https://github.com/Emeryth/Gadgetbridge) to master in order to get the [SMA Q2 smartwatch](https://hackaday.io/project/85463-color-open-source-smartwatch) support upstream. It uses [his firmware](https://github.com/Emeryth/sma-q2-oss) (pretty/most popular for this device). Greatly appreciate any feedback as this is my first attempt to add a device to GB :) I read through the [tutorial](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/New-Device-Tutorial), are there other sources for adding new device support? thanks! Co-authored-by: x29a <0.x29a.0@gmail.com> Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2215 Co-authored-by: x29a <x29a@noreply.codeberg.org> Co-committed-by: x29a <x29a@noreply.codeberg.org>
61 lines
947 B
Protocol Buffer
61 lines
947 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option java_package = "nodomain.freeyourgadget.gadgetbridge";
|
|
option java_outer_classname = "SMAQ2OSSProtos";
|
|
|
|
message SetTime
|
|
{
|
|
int32 timestamp = 1;
|
|
}
|
|
|
|
message MusicControl
|
|
{
|
|
int32 music_event = 1;
|
|
}
|
|
|
|
message CallControl
|
|
{
|
|
int32 call_event = 1;
|
|
}
|
|
|
|
message Forecast
|
|
{
|
|
int32 condition = 1;
|
|
int32 temperature_min = 2;
|
|
int32 temperature_max = 3;
|
|
}
|
|
|
|
message SetWeather
|
|
{
|
|
int32 timestamp = 1;
|
|
int32 condition = 2;
|
|
int32 temperature = 3;
|
|
int32 temperature_min = 4;
|
|
int32 temperature_max = 5;
|
|
int32 humidity = 6;
|
|
repeated Forecast forecasts = 7;
|
|
}
|
|
|
|
message MessageNotification
|
|
{
|
|
uint32 timestamp = 1;
|
|
int32 type = 2;
|
|
string sender = 3;
|
|
string subject = 4;
|
|
string body = 5;
|
|
}
|
|
|
|
message CallNotification
|
|
{
|
|
string number = 1;
|
|
string name = 2;
|
|
int32 command = 3;
|
|
}
|
|
|
|
message MusicInfo
|
|
{
|
|
string artist = 1;
|
|
string album = 2;
|
|
string track = 3;
|
|
}
|