Replies: 1 comment
-
|
Updated Canned/Quick Messages to use CLI Rescue for managing the messages and they are stored on the device. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Canned/Quick Messages for MeshCore
Working Canned/Quick message module for MeshCore - try it here:
https://github.com/gjelsoe/MeshCore/tree/Bandit_canned_message
Special Characters Support:
Add
-D USE_CP437to your build_flags for Scandinavian, German, French, Spanish, Currency and other symbols (Line 136-405 in DisplayDriver.h and make sure that your Display supports it)Canned Messages Configuration
Messages are stored in
/canned.txton the device filesystem. You can edit this file via:File format: One message per line, maximum 20 messages, 40 characters each.
Example
/canned.txt:First Boot: If no
/canned.txtfile exists, the screen will show a placeholder message prompting you to add messages via CLI commands.CLI Commands
You can manage canned messages via the rescue CLI:
List all messages
Shows all currently loaded messages with their index numbers.
Add a new message
Adds a new message to the end of the list (max 40 characters). Quote marks are optional.
Delete a message
Deletes the message at index 5 (use
canned listto see indices).Reload from file
Reloads messages from
/canned.txtinto the running UI (useful after manual file editing).Example workflow:
Note:
addanddelcommands automatically save changes to/canned.txt. Usereloadto refresh the UI after manually editing the file.Hardware Setup
Add to your
platformio.inifor your device. Choose ONE input method:Option 1: Rotary Encoder
Option 2: Analog Joystick
(Radiomaster Bandit series only - enabled by default)
Option 3: Single Button
(Already defined for many devices)
Canned Messages Configuration
Add within the
[]brackets of your device's companion tags inplatformio.ini:Example Configuration:
Controls
Rotary Encoder Controls
Navigation
Screen Flow
1. Channel Selection
2. Message Selection
3. Send Confirmation
Single Button Controls
Navigation
Screen Flow
1. Channel Selection
2. Message Selection
3. Send Confirmation
Joystick Controls
Navigation
Screen Flow
1. Channel Selection
2. Message Selection
3. Send Confirmation
Troubleshooting
General Issues
Messages too long warning:
Can't enter Canned Messages screen:
USE_CANNED_MESSAGEis definedgotoCannedMessagesScreen()is called in UITaskHardware Compatibility
Tested Boards:
Should work on:
Credits
Rotary encoder implementation inspired by:
https://www.hackster.io/Adrelien/how-to-setup-canned-pre-defined-messages-with-rotary-kno-df8139
Claude Code AI:
https://claude.ai/
Beta Was this translation helpful? Give feedback.
All reactions