A simple framework to run custom commands on receipt of Meshtastic packets.
git clone https://github.com/bmswens/Meshtastic-Handler.git
cd Meshtastic-Handler
python -m venv venv
source venv/bin/activate
pip install -r requirements.linux.txt
Linux installation notes:
If you are on a linux system and if the voice output is not working , then
install espeak
, ffmpeg
and libespeak1
as shown below:
sudo apt update && sudo apt install espeak ffmpeg libespeak1
python ./src/hander.py
This file will write all incoming messages to a sqlite database in the a messages
table.
This file will log the text of incoming messages to stdout
.
This file will play the text of incoming messages as audio over your speakers.
Add or remove files from in src/handlers/
.
All files must be .py
files and implement a get_function_and_event()
function
which returns a function and a string which represents the topic to subscribe to.
Several examples are located in src/handlers/
folder.
If your system has cron
, you can add a line similar to the follow to run on reboot.
@reboot /path/to/venv/python /path/to/src/handler.py
Or you could implement it as a service.
- Brandon Swenson- Initial work - bmswens
This project, like Meshtastic, is licensed under the GNU General Public License - see the LICENSE.txt file for details