GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - gretel/meshgram: This project implements a bridge between a Meshtastic node and a Telegram group chat, allowing for the exchange of messages and locations between the two platforms.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
config
config
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.prospector.yaml
.prospector.yaml
 
 
README.md
README.md
 
 
pytest.ini
pytest.ini
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 

Repository files navigation

🌐 Meshgram: Bridging Meshtastic and Telegram πŸš€

Connect your Meshtastic mesh network with Telegram group chats! πŸ“‘πŸ’¬

🌟 Features

  • πŸ”Œ Supports both serial and TCP connections to Meshtastic devices
  • πŸ”„ Automatic reconnection to Meshtastic device
  • 🚦 Message queuing and retry mechanism
  • πŸ”” Command to send bell notifications to Meshtastic nodes
  • πŸ“Š Real-time status updates for nodes (telemetry, position, routing, neighbors)
  • πŸ—ΊοΈ Location sharing between Telegram and Meshtastic
  • πŸ” User authorization for Telegram commands
  • πŸ“ Optional logging to file and syslog

πŸ›  Requirements

  • Python 3.12+ 🐍
  • Dependencies:
    • envyaml: For YAML configuration file parsing with environment variable support
    • meshtastic: Python API for Meshtastic devices
    • python-telegram-bot: Telegram Bot API wrapper
    • pubsub: For publish-subscribe messaging pattern

πŸš€ Quick Start

  1. Clone the repo:

    git clone https://github.com/gretel/meshgram.git
    cd meshgram
  2. Set up a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Configure the project: Create a config.yaml file in the config directory:

    telegram:
      bot_token: "your_bot_token_here"
      chat_id: -1001234567890
      authorized_users:
        - 123456789
    
    meshtastic:
      connection_type: "serial"  # or "tcp"
      device: "/dev/ttyUSB0"  # or "hostname:port" for TCP
      default_node_id: "!abcdef12"
      local_nodes:
        - "!abcdef12"
        - "!12345678"
    
    logging:
      level: "info"
      level_telegram: "warn"
      level_httpx: "warn"
      use_syslog: false
      syslog_host: "localhost"
      syslog_port: 514
      syslog_protocol: "udp"
  5. Run Meshgram:

    python src/meshgram.py

πŸ“‘ Telegram Commands

  • /start - Start the bot and see available commands
  • /help - Show help message
  • /status - Check the current status of Meshgram and Meshtastic
  • /bell [node_id] - Send a bell notification to a Meshtastic node
  • /node [node_id] - Get information about a specific node
  • /user - Get information about your Telegram user

🀝 Contributing

We welcome contributions! πŸ’– Please open an issue or submit a pull request if you have any improvements or bug fixes.

Happy meshing! πŸŽ‰

About

This project implements a bridge between a Meshtastic node and a Telegram group chat, allowing for the exchange of messages and locations between the two platforms.

Topics

asynciomeshtasticpythontelegramtelegram-bot

Resources

Readme
Activity

Stars

5 stars

Watchers

3 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.