forked from blackcoffeexbt/lightning-piggy
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Currently, the device has an informal "notification area" on the bottom left of the display. It gets used when the battery is low, for the "LOW BATTERY" text in white font on black background.
It would be good to make the code for these notifications more generic, with a simple function like "showNotification(String text)". Optionally, there could be an "int durationSeconds" for the notification, or an "int priority" to allow for timed notifications and priorities.
To test and prove that the new generic code works well, the existing "low battery" notification should be made to use the generic code.
After that's done, this new notification code might be used for all types of notifications that we might want to show to the user.
Things like:
- wifi SSID not found
- wifi password incorrect
- other wifi errors
- cant connect to lnbits host
- lnbits protocol issue
- lnbits api key invalid
- update available (maybe, see Show update notifications on the display #4 for considerations regarding the update notifications)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers