Virtual Meshtastic node using mudp transport and meshdb storage.
Project description
vnode
Virtual Meshtastic node runtime built around:
mudpfor multicast UDP send/receivemeshdbfor packet and node persistence- Meshtastic-style PKI DM encryption using X25519 + SHA-256 + AES-CCM
Config
Edit node.json.
If node.json does not exist yet, the runtime will create it automatically from
example-node.json.
If the template leaves node_id blank, the runtime will generate and persist a random
Meshtastic-style node ID when it creates or first loads node.json.
The runtime will generate and persist a PKI private key into node.json on first run if
the private key is blank.
The derived public key is written automatically to node.public.key next to
node.json. That file is generated by the runtime and should not need manual edits.
The position section in node.json controls periodic position broadcasts. Set
position.enabled to true, then set position.latitude and position.longitude, and adjust
position.position_interval_seconds to control how often the node sends POSITION_APP
packets. You can also set position.altitude if you want altitude included in the payload.
Leave position.enabled false or leave latitude/longitude as null to disable position
broadcasts.
Run
.venv/bin/pip install -e .
.venv/bin/python -m vnode --vnode-file node.json run
Send a DM
.venv/bin/python -m vnode --vnode-file node.json send-text --to '!1234abcd' --message 'hello'
send-text uses PKI automatically for direct messages when the destination node has a
stored public key in meshdb. Otherwise it falls back to channel encryption.
--config is still accepted as a compatibility alias for --vnode-file.
Library
The installable package lives under vnode/vnode, and the public library surface is
exported from vnode directly:
from vnode import NodeConfig, VirtualNode, generate_keypair
node = VirtualNode("node.json")
packet_id = node.send_text("!1234abcd", "hello")
Examples
Use these as small runnable references for common tasks:
examples/autoresponder.py: DM-only reply bot for inbound direct text messagesexamples/listen_packets.py: packet logger for multicast traffic and decoded textexamples/send_dm.py: minimal one-shot direct-message senderexamples/library_embed.py: minimal application-style embedding example usingVirtualNodedirectlyexamples/watch_reliability.py: watcher for ACK, NAK, retry, and retransmit-failure events
.venv/bin/python examples/autoresponder.py
.venv/bin/python examples/listen_packets.py
.venv/bin/python examples/send_dm.py --to '!1234abcd' --message 'hello'
.venv/bin/python examples/library_embed.py
.venv/bin/python examples/watch_reliability.py --to '!1234abcd' --message 'hello'
See examples/README.md for the full list.
License
GPL-3.0-only. See LICENSE.
Meshtastic® is a registered trademark of Meshtastic LLC. Meshtastic software components are released under various licenses, see GitHub for details. No warranty is provided - use at your own risk.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vnode-0.1.3.tar.gz.
File metadata
- Download URL: vnode-0.1.3.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4504f4d95263d8e6f48ecbb66cfce7f0628b3b29846d56452429c64229f66035
|
|
| MD5 |
12de3cc4f558291d3bfc7d0d34a7c793
|
|
| BLAKE2b-256 |
c61ec2e851fe5c3ccf14b2ded90155ddd4671983d8324db4192183706091754f
|
Provenance
The following attestation bundles were made for vnode-0.1.3.tar.gz:
Publisher:
release.yaml on pdxlocations/vnode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vnode-0.1.3.tar.gz -
Subject digest:
4504f4d95263d8e6f48ecbb66cfce7f0628b3b29846d56452429c64229f66035 - Sigstore transparency entry: 1107375643
- Sigstore integration time:
-
Permalink:
pdxlocations/vnode@be2dc8b3509af5c92c4a5195278930c07088ab23 -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/pdxlocations
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@be2dc8b3509af5c92c4a5195278930c07088ab23 -
Trigger Event:
push
-
Statement type:
File details
Details for the file vnode-0.1.3-py3-none-any.whl.
File metadata
- Download URL: vnode-0.1.3-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37edff9fbf7dfac15bcdaa3423105c35d6ac8680ce52dd564ae39a6a411d4f66
|
|
| MD5 |
bd49bcf8561d6cf5171f7d19ab52abeb
|
|
| BLAKE2b-256 |
bbe41f85e16dfc2c93308f5e8c95ea364a1bb1b2ee56be6c370fde4dbe2fac36
|
Provenance
The following attestation bundles were made for vnode-0.1.3-py3-none-any.whl:
Publisher:
release.yaml on pdxlocations/vnode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vnode-0.1.3-py3-none-any.whl -
Subject digest:
37edff9fbf7dfac15bcdaa3423105c35d6ac8680ce52dd564ae39a6a411d4f66 - Sigstore transparency entry: 1107375657
- Sigstore integration time:
-
Permalink:
pdxlocations/vnode@be2dc8b3509af5c92c4a5195278930c07088ab23 -
Branch / Tag:
refs/tags/0.1.3 - Owner: https://github.com/pdxlocations
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@be2dc8b3509af5c92c4a5195278930c07088ab23 -
Trigger Event:
push
-
Statement type: