meshMonitor

Installation & Setup

This guide covers the complete installation and setup process for MeshMonitor.

System Requirements

Installation Methods

  1. Clone the repository:
    git clone https://github.com/daneevans/meshViewer.git
    cd meshViewer
    
  2. Create a virtual environment:
    # Linux/macOS
    python3 -m venv .venv
    source .venv/bin/activate
       
    # Windows
    python -m venv .venv
    .venv\Scripts\activate
    
  3. Install dependencies:
    pip install -r requirements.txt
    

Method 2: Using pip (Future)

pip install meshmonitor

First Run

  1. Start the application:
    python main.py
    
  2. Access the web interface:
    • Open your browser to http://localhost:8080
    • The application will attempt to auto-connect to your Meshtastic device
  3. Configure connection (if needed):
    • Use the connection panel in the web interface
    • Or modify config.yaml for default settings

Connection Setup

TCP Connection (Default)

Serial Connection

Troubleshooting

Common Issues

Port Already in Use

# Kill process using port 8080
lsof -ti:8080 | xargs kill -9  # Linux/macOS
netstat -ano | findstr :8080   # Windows

Connection Failed

  1. Check device connectivity:
    • Ensure Meshtastic device is powered on
    • Verify network connection (for TCP)
    • Check USB connection (for Serial)
  2. Verify settings:
    • Confirm correct IP address and port
    • Check serial port permissions (Linux/macOS)
  3. Test with CLI:
    python -m src.meshviewer.cli --mode oneshot
    

Permission Denied (Serial)

# Add user to dialout group (Linux)
sudo usermod -a -G dialout $USER
# Log out and back in

Performance Issues

Large Network

Memory Usage

Data Directory

MeshMonitor creates a data/ directory for storing:

Note: Ensure the application has write permissions to the installation directory.

Uninstallation

  1. Stop the application (Ctrl+C)
  2. Remove the directory:
    rm -rf meshViewer/  # Linux/macOS
    rmdir /s meshViewer  # Windows
    

Next Steps

Autorun on the pi.

Open Raspi-Config sudo raspi-config

using /home/<user>/.bashrc

add the following lines near the bottom of .bashrc:

echo Starting MeshMonitor
cd /home/<user>/meshViewer
sudo bash ./autorun.sh

It will now autorun, and automatically look for a node at the default IP address.

See this guide for reference