This script allows users to run a 'bridge' between the Meshtastic network and LXM. When running, LXM clients can send messages to the mesh and vise-versa
If the script is running, you can visit it on the nomad network here: 06fb193ff7c307fc796251fcc66709d2:/page/index.mu
- Allow meshtastic nodes to send messages to any LXMF address (once established, it can be done vise-versa)
- Allow any LXMF node to send a message to LongFast
- Allow LXMF nodes to read LongFast messages
I didn't really intend for anyone to run my script, but if you insist:
- A PC / raspberry pi to run the bridge as our host
- A meshtastic node (eg, a Heltec V3) connected via serial / usb to the main host
- (optional, but recommended) an rnode-compatible device on the network
- Download this repo to your server (link)
- Download the requirements:
pip install meshtastic pubsub dotenv RNS LXMF better_profanity peewee git+https://github.com/Aveygo/LXMKit.git - Install sqlite3 if you haven't already and create a database:
sudo apt install sqlite3
sqlite3 main.db- Create a file with the name:
.env, and fill in the following details:
BRIDGE_NAME = "My Epic Bridge" # Your bridge name here
BRIDGE_SECRET = "1234567890qqwerty" # smash your keyboard or whatever to generate a key
MESHTASTIC_REMOTE = "192.168.0.123" # if using wifi, enter the meshtasic node's ip address
# MESHTASTIC_SERIAL = "/dev/ttyACM1" # if using usb, enter the usb port to meshtastic node
BRIDGE_LOCATION = "My beloved city" # name of location in title of the bridge
DATABASE_NAME = "main.db" # name of local sqlite3 database- add to 'load_dotenv("example.env)' in main.py path to .env file, if his not see .enf file
- Run
python3 main.pyand copy the delivery destination hash - Message the node (the copied hash)
\helpto get started.