Parse channel message sender prefix to associate with a real Node (for filtering etc) #29

Closed
opened 2026-10-04 23:09:34 +02:00 by adam · 1 comment
Owner

Access DB with SQLite

  1. Add field "sender" to table messages
  2. Run query: UPDATE "messages" SET sender = substr( text, 1, INSTR(text, ':')-1 )
  3. run your queries
  4. do not forget to repeat step 1
Access DB with SQLite 1. Add field "sender" to table messages 2. Run query: `UPDATE "messages" SET sender = substr( text, 1, INSTR(text, ':')-1 ) ` 3. run your queries 4. do not forget to repeat step 1 <!-- github-sync-id:3907236074 -->
adam closed this issue 2026-10-04 23:09:34 +02:00
Author
Owner

Thanks for the tip. Its something I've thought about, but assumes MeshCore firmware keeps prefixing the node name before the message.

Ideally, I'd like to handle this at the "collector" stage, basically, splitting the string (as per your example), but then looking up the "friendly name" in the Node table and dereferencing so we can then filter by "Nodes" (for example).

I'll update the issue title and have a think.

Thanks for the tip. Its something I've thought about, but assumes MeshCore firmware keeps prefixing the node name before the message. Ideally, I'd like to handle this at the "collector" stage, basically, splitting the string (as per your example), but then looking up the "friendly name" in the Node table and dereferencing so we can then filter by "Nodes" (for example). I'll update the issue title and have a think. <!-- github-comment-id:3861774616 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshcore-hub#29