Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A fork of the official Meshtastic CLI, adding servo support.

License

Notifications You must be signed in to change notification settings

mehow/meshtastic-python

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,188 Commits
2,188 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meshtastic Python
with servo support

Overview

This is a fork of the official Meshtastic Python library and client, adding support for configuration settings exposed by my fork of Meshtastic firmware.

Get Started

To build the meshtastic binary, simply run:

pip3 install poetry
./bin/build-bin.sh

You will then find the binary in the dist folder.

Configuration

This fork adds support for the following settings:

  • servo_control.enabled - true / false
  • servo_control.gpio_pin - GPIO pin the servo is connected to
  • servo_control.open_position - OPEN position 0-180°
  • servo_control.closed_position - CLOSED position 0-180°
  • servo_control.authorized_key - list of public keys of authorized nodes

E.g. to configure a servo connected to pin 19 to move between 45° (OPEN) and 135° (CLOSED) when issued a command by a node with public key c2Vydm8gYXV0aG9yaXplZCBNZXNodGFzdGljIG5vZGU=, run:

meshtastic \
  --set servo_control.enabled true \
  --set servo_control.gpio_pin 19 \
  --set servo_control.open_position 45 \
  --set servo_control.closed_position 135 \
  --set servo_control.authorized_key base64:c2Vydm8gYXV0aG9yaXplZCBNZXNodGFzdGljIG5vZGU=

You may add up to 3 authorized nodes.

About

A fork of the official Meshtastic CLI, adding servo support.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.1%
  • Other 0.9%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.