{"id":23456504,"url":"https://github.com/gretel/meshgram","last_synced_at":"2025-10-08T12:59:02.789Z","repository":{"id":246897925,"uuid":"822690304","full_name":"gretel/meshgram","owner":"gretel","description":"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.","archived":false,"fork":false,"pushed_at":"2024-07-11T21:46:22.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-04-11T11:43:43.390Z","etag":null,"topics":["asyncio","meshtastic","python","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gretel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-01T16:06:43.000Z","updated_at":"2024-09-09T12:38:25.000Z","dependencies_parsed_at":"2024-07-12T00:01:37.988Z","dependency_job_id":null,"html_url":"https://github.com/gretel/meshgram","commit_stats":null,"previous_names":["gretel/meshgram"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gretel/meshgram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gretel%2Fmeshgram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gretel%2Fmeshgram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gretel%2Fmeshgram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gretel%2Fmeshgram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gretel","download_url":"https://codeload.github.com/gretel/meshgram/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gretel%2Fmeshgram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278948022,"owners_count":26073748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","meshtastic","python","telegram","telegram-bot"],"created_at":"2024-12-24T04:32:04.581Z","updated_at":"2025-10-08T12:59:02.773Z","avatar_url":"https://github.com/gretel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌐 Meshgram: Bridging Meshtastic and Telegram 🚀\n\nConnect your Meshtastic mesh network with Telegram group chats! 📡💬\n\n## 🌟 Features\n\n- 🔌 Supports both serial and TCP connections to Meshtastic devices\n- 🔄 Automatic reconnection to Meshtastic device\n- 🚦 Message queuing and retry mechanism\n- 🔔 Command to send bell notifications to Meshtastic nodes\n- 📊 Real-time status updates for nodes (telemetry, position, routing, neighbors)\n- 🗺️ Location sharing between Telegram and Meshtastic\n- 🔐 User authorization for Telegram commands\n- 📝 Optional logging to file and syslog\n\n## 🛠 Requirements\n\n- Python 3.12+ 🐍\n- Dependencies:\n  - `envyaml`: For YAML configuration file parsing with environment variable support\n  - `meshtastic`: Python API for Meshtastic devices\n  - `python-telegram-bot`: Telegram Bot API wrapper\n  - `pubsub`: For publish-subscribe messaging pattern\n\n## 🚀 Quick Start\n\n1. **Clone the repo:**\n   ```bash\n   git clone https://github.com/gretel/meshgram.git\n   cd meshgram\n   ```\n\n2. **Set up a virtual environment:**\n   ```bash\n   python3 -m venv venv\n   source venv/bin/activate\n   ```\n\n3. **Install dependencies:**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Configure the project:**\n   Create a `config.yaml` file in the `config` directory:\n   ```yaml\n   telegram:\n     bot_token: \"your_bot_token_here\"\n     chat_id: -1001234567890\n     authorized_users:\n       - 123456789\n\n   meshtastic:\n     connection_type: \"serial\"  # or \"tcp\"\n     device: \"/dev/ttyUSB0\"  # or \"hostname:port\" for TCP\n     default_node_id: \"!abcdef12\"\n     local_nodes:\n       - \"!abcdef12\"\n       - \"!12345678\"\n\n   logging:\n     level: \"info\"\n     level_telegram: \"warn\"\n     level_httpx: \"warn\"\n     use_syslog: false\n     syslog_host: \"localhost\"\n     syslog_port: 514\n     syslog_protocol: \"udp\"\n   ```\n\n5. **Run Meshgram:**\n   ```bash\n   python src/meshgram.py\n   ```\n\n## 📡 Telegram Commands\n\n- `/start` - Start the bot and see available commands\n- `/help` - Show help message\n- `/status` - Check the current status of Meshgram and Meshtastic\n- `/bell [node_id]` - Send a bell notification to a Meshtastic node\n- `/node [node_id]` - Get information about a specific node\n- `/user` - Get information about your Telegram user\n\n## 🤝 Contributing\n\nWe welcome contributions! 💖 Please open an issue or submit a pull request if you have any improvements or bug fixes.\n\nHappy meshing! 🎉","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgretel%2Fmeshgram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgretel%2Fmeshgram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgretel%2Fmeshgram/lists"}