sharandac / My-TTGO-Watch

A GUI named hedge for smartwatch like devices based on ESP32. Currently support for T-Watch2020 (V1,V2,V3), T-Watch2021, M5Paper, M5Core2 and native Linux support for testing.
GNU General Public License v2.0
524 stars 246 forks source link

WIP Weather Message and Widget enhancements #336

Closed Crsarmv7l closed 2 years ago

Crsarmv7l commented 2 years ago

New to using pulls, I generally just modify stuff locally and don't use github, but I thought this might be nice to have merged so I apologize if I messed anything up. The changes I was looking to pull are included in bluetooth_msg.cpp and bluetooth_msg.h. The rest of my commits are for Sailfish users (with a lot more to come as I get caught up to my local files) and probably shouldn't be merged.

Previously you helped me with implementing Gadgetbridge bluetooth weather messages in bluetooth_msg.cpp. I recently took that a step farther by piggybacking on your find src icon function and including the weather conditions set forth by open weather maps as well as making a weather widget from that information. This requires no wifi at all, just the GB bluetooth weather message.

When a weather message is received it is popped up on screen with a sourced weather condition:

20220121_130819

If the weather message is closed, you can see a weather widget that is also created with the correct weather icon and temp information. (The message icon is the weather message since it passes to the msg_chain.)

20220121_130834

If the weather message is deleted the weather widget is retained with the correct info:

20220121_130848

Known Issues:

Crsarmv7l commented 2 years ago

Got some guidance regarding day/night icons that I am going to try and implement

Crsarmv7l commented 2 years ago

Closing. Have an idea to eliminate the need to keep the message as well.