Skip to content
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

Add Notification on device screen following feature toggle #3627

Merged
merged 14 commits into from
Apr 27, 2024
Merged

Add Notification on device screen following feature toggle #3627

merged 14 commits into from
Apr 27, 2024

Conversation

HarukiToreda
Copy link
Contributor

[Feature Request]: Add display messages on device screen following feature toggle #3551 requested by @tropho23

I was able partly complete this request.

1. Fn+M: Shows "Notifications Enabled" / "Notifications Dissabled
2. Fn+Space: Shows "Ping Broadcasted" I didn't think it would be correct to say "Updated position sent to mesh" since it's really adhoc Ping.
3. Fn+G: Shows "GPS Toggled" - I could not add on or off since the code only toggles and does not check what state the gps is at originally. Would like some advice on this to make it more accurate.

Issue: although the Nofications show on the screen as intended, I have not been able to make the Notifcations dissapear after 2 seconds, it remains on the screen until you press either ESC/Enter or press the Program button, If anyone has any advice on how to make it automatic, I would really appreaciate the assist.

Notifications

@HarukiToreda HarukiToreda changed the title Add display messages on device screen following feature toggle Add Notification on device screen following feature toggle Apr 15, 2024
@HarukiToreda HarukiToreda marked this pull request as draft April 15, 2024 05:20
@tropho23
Copy link
Contributor

tropho23 commented Apr 15, 2024 via email

@HarukiToreda HarukiToreda marked this pull request as ready for review April 21, 2024 19:38
@caveman99
Copy link
Member

@HarukiToreda can you test this branch? i don't have a device at hand ... white collar code, hoping it will work.

@HarukiToreda
Copy link
Contributor Author

@HarukiToreda can you test this branch? i don't have a device at hand ... white collar code, hoping it will work.

I just built it, the notifications no longer appear unfortunately.

@caveman99
Copy link
Member

I'll dig a t-beam out tomorrow ... i guess just a small oversight ...

@caveman99
Copy link
Member

@HarukiToreda confirmed working over here. please check :-)

@HarukiToreda
Copy link
Contributor Author

@HarukiToreda confirmed working over here. please check :-)

Confirmed working on my side too. Thank you

@rcarteraz
Copy link
Member

rcarteraz commented Apr 24, 2024

2. Fn+Space: Shows "Ping Broadcasted" I didn't think it would be correct to say "Updated position sent to mesh" since it's really adhoc Ping.

This one is actually showing

"Telemetry \nUpdate Sent"

The rest appear to work as intended though.

@HarukiToreda
Copy link
Contributor Author

2. Fn+Space: Shows "Ping Broadcasted" I didn't think it would be correct to say "Updated position sent to mesh" since it's really adhoc Ping.

This one is actually showing

"Telemetry \nUpdate Sent"

The rest appear to work as intended though.

yes, this is a change that @tropho23 requested earlier

@thebentern thebentern merged commit 38c4d35 into meshtastic:master Apr 27, 2024
56 of 70 checks passed
@jcyrio
Copy link
Contributor

jcyrio commented Apr 29, 2024

I like the new showTemporaryMessage function, and I think it'll be useful.

Should/can some of the other notifications in CannedMessageModule be moved to the new showTemporaryMessage, like "Delivered to", "Delivery failed", and "Sending", to simplify the code and make it more consistent? It seems that those messages are also only supposed to show for 2 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants