Skip to content

mrekin/meshlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Another one serial logger :)

Why

I need a tool to simplify meshtastic nodes log analisys. I didn't found anything usefull, so build my own ugly coded logger.

Possibilities

  • Console UI (using Textual), works in Win console, Linux console, over SSH
  • Auto reconnect to last used serial port
  • Customizible labels (log parsing)

Interface

v0.11 screen

HowTo

!! Windows defender may mark .exe (nuitka build) as malicious. So mark it as 'safe' or use python version.. (Nuitka/Nuitka#2805)

Installation

Linux

python3 -m venv meshlog
cd meshlog && source bin/activate
git clone https://github.com/mrekin/meshlog.git
cd meshlog
pip3 install -r requirements.txt

Run

python3 ./slogApp.py

Build binary

  1. Activate venv
  2. Install nuitka (preffered) or pyinstaller
    pip3 install -U nuitka
    pip3 install -U imageio
    
    or
    pip3 install -U pyinstaller
    
  3. For Linux and nuitka you may need to install sudo apt install patchhelf
  4. Run script from corresponding file in scripts/

ToDo (near future)

  • Autoreconnect to latest COM port
  • Port list autoupdates
  • Custom configurable labels
    • Static labels (v0.13)
    • Avg labels (v0.13)
    • Regexp (groups)
    • Regexp (match) - is it needed?
    • String/bool result
    • dropAfter param
    • firstEntrance rule
    • searchAfter param
    • Save labels to file (v0.14)
  • Make working Settings tab
    • UI (usable but ugly now)
    • Save/load settings (v0.12)
    • Use settings in logic (v0.12)
  • Implement logging to file
    • Single file (v0.12)
    • Separate file for each COM port (v0.12)
    • Separate file for each connection (v0.14)
  • Send to logic for logs and checks/labels
  • Test on Windows system
  • Windows executable
    • Manual build
    • Autobuilds
  • Test on Linux system (partially tested on Ubuntu server 24.04.1 LTS over ssh)
  • Linux executable
    • Manual build
    • Autobuilds
  • Logs custom configurable highlights
  • Github releases (v0.12)
  • Readme updates (installation/usage/etc)

ToDo (far future)

  • Use Meshtastic library
    • Use not only serial connection, but IP/Bluetooth
    • Get/upload node config
    • Get node status
    • Trigger DFU mode (v0.3)
    • (?) Trigger reboot/nodeinfo send/etc
  • NRF52 flashing
    • Upload fullerase uf2
    • Upload newest bootloader
    • Upload firmware
    • Open serial after flashing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published