mirror of
https://github.com/markqvist/LXMF
synced 2026-11-22 23:10:36 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c24e99a92b | ||
|
|
c1a327c5b2 | ||
|
|
68892091ec | ||
|
|
e87c6c6d28 | ||
|
|
0be569ccd6 | ||
|
|
8e686b10e8 | ||
|
|
ae203291b9 | ||
|
|
8b8008478d | ||
|
|
b4ba9d628b | ||
|
|
4520507869 | ||
|
|
e5a960b2df | ||
|
|
a35e522e75 | ||
|
|
a810be316f | ||
|
|
741b66aab2 | ||
|
|
d767d40c5f | ||
|
|
2b3fa796a1 | ||
|
|
f6cc9fd1cf | ||
|
|
4b13d7188c |
No files matched your search
+63
-5
@@ -1,9 +1,10 @@
|
||||
APP_NAME = "lxmf"
|
||||
|
||||
# WARNING! These field specifiers are floating and not
|
||||
# yet final! Consider highly experiemental, and expect
|
||||
# them to change in the future! You have been warned :)
|
||||
|
||||
##########################################################
|
||||
# The following core fields are provided to facilitate #
|
||||
# interoperability in data exchange between various LXMF #
|
||||
# clients and systems. #
|
||||
##########################################################
|
||||
FIELD_EMBEDDED_LXMS = 0x01
|
||||
FIELD_TELEMETRY = 0x02
|
||||
FIELD_TELEMETRY_STREAM = 0x03
|
||||
@@ -14,4 +15,61 @@ FIELD_AUDIO = 0x07
|
||||
FIELD_THREAD = 0x08
|
||||
FIELD_COMMANDS = 0x09
|
||||
FIELD_RESULTS = 0x0A
|
||||
FIELD_GROUP = 0x0B
|
||||
FIELD_GROUP = 0x0B
|
||||
|
||||
# For usecases such as including custom data structures,
|
||||
# embedding or encapsulating other data types or protocols
|
||||
# that are not native to LXMF, or bridging/tunneling
|
||||
# external protocols or services over LXMF, the following
|
||||
# fields are available. A format/type/protocol (or other)
|
||||
# identifier can be included in the CUSTOM_TYPE field, and
|
||||
# the embedded payload can be included in the CUSTOM_DATA
|
||||
# field. It is up to the client application to correctly
|
||||
# discern and potentially utilise any data embedded using
|
||||
# this mechanism.
|
||||
FIELD_CUSTOM_TYPE = 0xFB
|
||||
FIELD_CUSTOM_DATA = 0xFC
|
||||
FIELD_CUSTOM_META = 0xFD
|
||||
|
||||
# The non-specific and debug fields are intended for
|
||||
# development, testing and debugging use.
|
||||
FIELD_NON_SPECIFIC = 0xFE
|
||||
FIELD_DEBUG = 0xFF
|
||||
|
||||
##########################################################
|
||||
# The following section lists field-specific specifiers, #
|
||||
# modes and identifiers that are native to LXMF. It is #
|
||||
# optional for any client or system to support any of #
|
||||
# these, and they are provided as template for easing #
|
||||
# interoperability without sacrificing expandability #
|
||||
# and flexibility of the format. #
|
||||
##########################################################
|
||||
|
||||
# Audio modes for the data structure in FIELD_AUDIO
|
||||
|
||||
# Codec2 Audio Modes
|
||||
AM_CODEC2_450PWB = 0x01
|
||||
AM_CODEC2_450 = 0x02
|
||||
AM_CODEC2_700C = 0x03
|
||||
AM_CODEC2_1200 = 0x04
|
||||
AM_CODEC2_1300 = 0x05
|
||||
AM_CODEC2_1400 = 0x06
|
||||
AM_CODEC2_1600 = 0x07
|
||||
AM_CODEC2_2400 = 0x08
|
||||
AM_CODEC2_3200 = 0x09
|
||||
|
||||
# Opus Audio Modes
|
||||
AM_OPUS_OGG = 0x10
|
||||
AM_OPUS_LBW = 0x11
|
||||
AM_OPUS_MBW = 0x12
|
||||
AM_OPUS_PTT = 0x13
|
||||
AM_OPUS_RT_HDX = 0x14
|
||||
AM_OPUS_RT_FDX = 0x15
|
||||
AM_OPUS_STANDARD = 0x16
|
||||
AM_OPUS_HQ = 0x17
|
||||
AM_OPUS_BROADCAST = 0x18
|
||||
AM_OPUS_LOSSLESS = 0x19
|
||||
|
||||
# Custom, unspecified audio mode, the client must
|
||||
# determine it itself based on the included data.
|
||||
AM_CUSTOM = 0xFF
|
||||
+3
-2
@@ -980,6 +980,7 @@ class LXMRouter:
|
||||
return False
|
||||
|
||||
def delivery_packet(self, data, packet):
|
||||
packet.prove()
|
||||
try:
|
||||
if packet.destination_type != RNS.Destination.LINK:
|
||||
lxmf_data = b""
|
||||
@@ -997,8 +998,8 @@ class LXMRouter:
|
||||
RNS.log("Error while retrieving physical link stats for LXMF delivery packet: "+str(e), RNS.LOG_ERROR)
|
||||
|
||||
phy_stats = {"rssi": packet.rssi, "snr": packet.snr, "q": packet.q}
|
||||
if self.lxmf_delivery(lxmf_data, packet.destination_type, phy_stats=phy_stats):
|
||||
packet.prove()
|
||||
|
||||
self.lxmf_delivery(lxmf_data, packet.destination_type, phy_stats=phy_stats)
|
||||
|
||||
except Exception as e:
|
||||
RNS.log("Exception occurred while parsing incoming LXMF data.", RNS.LOG_ERROR)
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
__version__ = "0.4.2"
|
||||
__version__ = "0.4.5"
|
||||
@@ -7,6 +7,7 @@ LXMF is efficient enough that it can deliver messages over extremely low-bandwid
|
||||
User-facing clients built on LXMF include:
|
||||
|
||||
- [Sideband](https://unsigned.io/sideband)
|
||||
- [MeshChat](https://github.com/liamcottle/reticulum-meshchat)
|
||||
- [Nomad Network](https://unsigned.io/nomadnet)
|
||||
|
||||
Community-provided tools and utilities for LXMF include:
|
||||
@@ -129,10 +130,6 @@ You can also find the entire message in <a href="lxm://azNivSwdv4e2aoX3mo2MdTAoz
|
||||
|
||||
On operating systems that allow for registering custom URI-handlers, you can click the link, and it will be decoded directly in your LXMF client. This works with Sideband on Android.
|
||||
|
||||
## Caveat Emptor
|
||||
|
||||
LXMF is beta software, and should be considered experimental. While it has been built with cryptography best practices very foremost in mind, it _has not_ been externally security audited, and there could very well be privacy-breaking bugs. If you want to help out, or help sponsor an audit, please do get in touch.
|
||||
|
||||
## Installation
|
||||
|
||||
If you want to try out LXMF, you can install it with pip:
|
||||
@@ -156,14 +153,46 @@ Alternatively, you can use the `pipx` tool to install Reticulum in an isolated e
|
||||
pipx install lxmf
|
||||
```
|
||||
|
||||
## Daemon Included
|
||||
|
||||
The `lxmf` package comes with the `lxmd` program, a fully functional (but lightweight) LXMF message router and propagation node daemon. After installing the `lxmf` package, you can run `lxmd --help` to learn more about the command-line options:
|
||||
|
||||
```text
|
||||
$ lxmd --help
|
||||
|
||||
usage: lxmd [-h] [--config CONFIG] [--rnsconfig RNSCONFIG] [-p] [-i PATH] [-v] [-q] [-s] [--exampleconfig] [--version]
|
||||
|
||||
Lightweight Extensible Messaging Daemon
|
||||
|
||||
options:
|
||||
-h, --help show this help message and exit
|
||||
--config CONFIG path to alternative lxmd config directory
|
||||
--rnsconfig RNSCONFIG
|
||||
path to alternative Reticulum config directory
|
||||
-p, --propagation-node
|
||||
run an LXMF Propagation Node
|
||||
-i PATH, --on-inbound PATH
|
||||
executable to run when a message is received
|
||||
-v, --verbose
|
||||
-q, --quiet
|
||||
-s, --service lxmd is running as a service and should log to file
|
||||
--exampleconfig print verbose configuration example to stdout and exit
|
||||
--version show program's version number and exit
|
||||
```
|
||||
|
||||
Or run `lxmd --exampleconfig` to generate a commented example configuration documenting all the available configuration directives.
|
||||
|
||||
## Caveat Emptor
|
||||
|
||||
LXMF is beta software, and should be considered experimental. While it has been built with cryptography best practices very foremost in mind, it _has not_ been externally security audited, and there could very well be privacy-breaking bugs. If you want to help out, or help sponsor an audit, please do get in touch.
|
||||
|
||||
## Development Roadmap
|
||||
|
||||
LXMF is actively being developed, and the following improvements and features are currently planned for implementation:
|
||||
|
||||
- Write and release full API and protocol documentation
|
||||
- Update examples in readme to actually work
|
||||
- Content Destinations, and easy to use API for group messaging and discussion threads
|
||||
- ~~Update examples in readme to actually work~~
|
||||
- ~~Sync affinity based on link speeds and distances, for more intelligently choosing peer sync order~~
|
||||
- Sneakernet and physical transport functionality
|
||||
- Content Destinations, and easy to use API for group messaging and discussion threads
|
||||
- Write and release full API and protocol documentation
|
||||
- Documenting and possibly expanding LXMF limits and priorities
|
||||
- Sync affinity based on link speeds and distances, for more intelligently choosing peer sync order
|
||||
- Markets on LXMF
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
qrcode==7.4.2
|
||||
rns==0.5.7
|
||||
setuptools==68.0.0
|
||||
setuptools==70.0.0
|
||||
Reference in new issue
Block a user