added conda support

This commit is contained in:
tcsenpai 2024-03-31 14:58:09 +02:00
parent 3ce77673da
commit 8d6c18f329
5 changed files with 67 additions and 4 deletions

4
.gitignore vendored
View File

@ -1,3 +1,5 @@
*.key
*.pem
textual
textual
.trunk
__pycache__

View File

@ -15,8 +15,8 @@ Any device that is compatible with the current Meshtastic for Python version sho
### Features
- [x] A fully functional GUI for Meshtastic even if you are using the terminal (thanks [Textualize for its Textual library](https://github.com/Textualize/textual))
- [x] Conda support for both CLI and TUI versions
- [x] Serial Port connection (serial or usb over serial)
- [ ] Bluetooth connection (not yet, maybe not ever)
- [x] Support for beaconing (emitting a signal every X seconds)
- [ ] Support for beaconing time customization
- [x] Possibility of specifying the serial port to use
@ -28,13 +28,38 @@ Any device that is compatible with the current Meshtastic for Python version sho
git clone https://github.com/thecookingsenpai/emesh
cd emesh
#### TUI Version (textual GUI)
***NOTE: This is the suggested way of running emesh on capable machines (from raspberry pi zero to infinite)***
Using pip:
pip install -r requirements.txt
python gui.py
You can also play with term.py and emesh.py and use directly
Using conda (suggested):
conda env create --file environment.yaml
conda activate emesh-env
python gui.py
#### CLI Version
***NOTE: This is the suggested way of running emesh on low specs machines (sub-raspberry pi zero)***
Using pip:
pip install -r requirements_cli.txt
python term.py
Using conda (suggested):
conda env create --file environment_cli.yaml
conda activate emesh-env-cli
python term.py
If you really hate GUIs.
### License

15
environment.yaml Normal file
View File

@ -0,0 +1,15 @@
# run: conda env create --file environment.yml
name: emesh-env
dependencies:
- python=3.10
- anaconda
- pip
- pip:
- pytap2
- pubsub
- meshtastic
- cryptography
- deterministic-rsa-keygen
- python-dotenv
- textual
- textual-dev

13
environment_cli.yaml Normal file
View File

@ -0,0 +1,13 @@
# run: conda env create --file environment_cli.yml
name: emesh-env-cli
dependencies:
- python=3.10
- anaconda
- pip
- pip:
- pytap2
- pubsub
- meshtastic
- cryptography
- deterministic-rsa-keygen
- python-dotenv

8
requirements_cli.txt Executable file
View File

@ -0,0 +1,8 @@
pytap2
pubsub
meshtastic
cryptography
deterministic-rsa-keygen
python-dotenv