Skip to content

Vybo/meshbot

 
 

Repository files navigation

meshbot

connect your node over serial to Raspberry PI and let this bot answer public and private messages bot response to messages from public channel into direct messages too

requirements

run on RPI

how to get it there

use git clone or upload via ssh (winSCP)

sudo apt install git
git clone https://github.com/PiDiBi/meshbot.git
cd meshbot

test over ssh terminal

  • edit mesh_bot.py if you need other than serial connection
  • run python3 mesh_bot.py
  • if it starts without errors send private message to your node from other node PING
  • you should see response in the terminal and got it as message too
  • terminate the script and install it as service

install bot as a service

  • create and edit service file (see content of mesh_bot.service) sudo nano /etc/systemd/system/meshbot.service
  • reload daemon sudo systemctl daemon-reload
  • start service sudo systemctl start meshbot.service
  • see status sudo systemctl status meshbot.service | more - this one displays log from the service so you can see when you send a message what happened

commands

  • basic functions
    • ping - response with PONG and signal strength
    • ack - response ACK-ACK! and signal strength
    • whereami returns the address of location of sender if known
    • joke tells a joke
    • whereami - tries to find your location from GPS
  • (space) weather conditions
    • sun and moon return info on rise and set local time
    • tide returns the local tides, NOAA data source
    • solar gives an idea of the x-ray flux
    • hfcond returns a table of HF solar conditions
    • wx and wxc returns local weather forcast, NOAA data source (wxc is metric value)

recognition

Used ideas and snippets from other responder bots want to call them out!

About

meshtastic meshbot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%