-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend Gadgetbridge Support #135
Comments
Unfortunately, Bangle.js format does not fit My-TTGO-Watch functionality fully. It is possibleto set an alarm including days of week in Gadgetbridge but the information about days of week is not transferred by Bangle.js BLE messages. I also did not find a way how to send alarm clock values back to Gadgetbridge via Bangle.js BLE protocol. From my point of view, does not make sense a lot to implement alarm setting for Gadgetbridge because it newer will work properly. Do anyone have an idea how many effort would be to implement and add own communication protocol to Gadgetbridge to we be able to transfer what we want? |
Here are some example find messages: I see what you mean about the lack of which day(s) the alarm is for: Weather example, with "Weather notification" app installed: |
Do you think of something like this? Update: Created an App "FindPhone" Functionality:
Please be so kind and test it. Neuroplant |
Ahh gadgetbridge weather was exactly what I was trying to do. Even just as words like this:
I cant find where in the src ble messages are parsed or I would write weather msgs to SPIFF then display them under the watch face. |
Not exactly what I was looking for, but src/gui/mainbar/setup_tile/bluetooth_settings/bluetooth_message.cpp Might be able to modify that and the "body" parsing throughout for weather messages to display as a message on update. Not pretty but it could work. Edit: My C++ is poor but I may have found a way to make it work still. Compiling and testing soon |
Not sure if you would be interested in this given you have the weather app, but I wanted to create this so I wouldn't have to use wifi. It resolves current weather and generates a weather widget based on BLE weather messages from Gadgetbridge (or in my case Amazfish). Both night and day icons work, night is (h < 7 || h > 18) based on the message timestamp. If there is some difference in the weather descriptors sent by Gadgetbridge vice Amazfish it should be trivial to change the src_icon phrase to match. I basically just expanded on some of the tools already in place in bluetooth_messages.cpp and slightly modified bluetooth_messages.h to account for longer weather descriptors. It doesn't interfere with normal BLE messages either (with amazfish). Give it a try and include it in your project if you want to. Its a straight swap with these two files. One big issue does remain: The messages get grabbed up in the message chain, which displays the most current message first. If you delete the weather messages newest to earliest the widget will end up displaying the earliest weather. To keep it accurate you have to delete earliest to newest. I haven't come up with a way to prevent that aside from splitting it out of the message chain. It is not an issue if you delete them as they come in, which I do. I started a pull a bit ago but I am terrible with github. |
Since we're pretending to be an Espruino Bangle.js ... the message formats that we can support are documented here:
https://www.espruino.com/Gadgetbridge
There are a few that are not yet supported that could be added:
The text was updated successfully, but these errors were encountered: