geoffwhittington / meshtastic-bridge Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
It would be great, if the position of devices on a dedicated channel could be forwarded to http://wiki.glidernet.org/
Hello, I have a T-ECHO device without wifi, may I bridge this device connected to a serial port with a regular MQTT meshtastic server with two-way communication with other nodes?
If yes, may you provide a config example for a device connected via /dev/ttyACM0?
Can you provide an example that would send -all- messages from a Meshtastic device configured as a tracker to a specific MQTT topic?
How about all position messages from a specific channel?
Thank you.
-David
After upgrading the firmware of the t-beam to v2.2.13 I get the following error:
richi@supermicro:~$ docker run --rm --network host -v /etc/meshtastic-bridge/config.yaml:/code/config.yaml gwhittington/meshtastic-bridge:latest
DEBUG:meshtastic.bridge:Connecting to 192.168.2.128 ...
Traceback (most recent call last):
File "./main.py", line 100, in <module>
DEBUG:meshtastic.bridge:Connecting to 192.168.2.128 ...
devices[device["name"]] = CustomTCPInterface(
File "./main.py", line 28, in __init__
super(CustomTCPInterface, self).__init__(hostname)
File "/usr/local/lib/python3.8/site-packages/meshtastic/tcp_interface.py", line 33, in __init__
StreamInterface.__init__(self, debugOut=debugOut, noProto=noProto,
File "/usr/local/lib/python3.8/site-packages/meshtastic/stream_interface.py", line 50, in __init__
self.connect()
File "/usr/local/lib/python3.8/site-packages/meshtastic/stream_interface.py", line 74, in connect
self._waitConnected()
File "/usr/local/lib/python3.8/site-packages/meshtastic/mesh_interface.py", line 414, in _waitConnected
raise self.failure
Exception: This version of meshtastic-python requires device firmware version 1.2 or later. For more information see https://tinyurl.com/5bjsxu32
I assume this could be fixed by upgrading the version of the meshtastic library.
Looking at Dockerhub, the image was last updated a year ago.
podman start -a owntracks_meshtastic-bridge_1
Traceback (most recent call last):
File "./main.py", line 12, in
from plugins import plugins
File "/code/plugins.py", line 542, in
from nostr.relay_manager import RelayManager
File "/usr/local/lib/python3.8/site-packages/nostr/relay_manager.py", line 8, in
from .relay import Relay, RelayPolicy
File "/usr/local/lib/python3.8/site-packages/nostr/relay.py", line 10, in
class RelayPolicy:
File "/usr/local/lib/python3.8/site-packages/nostr/relay.py", line 15, in RelayPolicy
def to_json_object(self) -> dict[str, bool]:
TypeError: 'type' object is not subscriptable
exit code: 1
Was able to fix this by bumping the python package to 3.9 in the Dockerfile.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.