Complete restructure

This commit is contained in:
2025-06-10 17:35:35 +02:00
parent e423add6a0
commit 822380a658
6 changed files with 4 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 32 KiB

BIN
BiogasControllerAppLogo.xcf Executable file

Binary file not shown.

View File

@@ -28,7 +28,7 @@
BiogasControllerApp has just received a major rewrite, where I focused on code-readability, documentation and stability. The documentation in the code is aimed at beginners and does contain some unnecessary extra comments
If you are here to read the code, the files you are most likely looking for can be found in the `biogascontrollerapp/lib` folder. If you want to understand and have a look at all of the application, start with the `biogascontrollerapp.py` file in the `biogascontrollerapp` folder
If you are here to read the code, the files you are most likely looking for can be found in the `lib` folder. If you want to understand and have a look at all of the application, start with the `biogascontrollerapp.py` file
# Features
- Read data the microcontroller in ENATECH sends
@@ -67,7 +67,7 @@ Only needed if you run with python directly
- kivy[base]
- pyserial
To install them, run `pip install -r requirements.txt` in the `biogascontrollerapp/` directory
To install them, run `pip install -r requirements.txt`
# Contributing
If you wish to contribute to this project, please fork this repository, create a new branch in your fork, make your changes and open a pull request in this repo.

View File

@@ -33,7 +33,7 @@ use_venv=$(echo "$use_venv" | tr '[:upper:]' '[:lower:]')
echo "\n => Checking for repo..."
if [[ -f ./biogascontrollerapp/biogascontrollerapp.py ]]; then
if [[ -f ./biogascontrollerapp.py ]]; then
echo "\n -> Data found, not downloading"
else
do_download=""
@@ -63,10 +63,6 @@ else
fi
# We are now guaranteed to be in the base directory of the repo
# cd into biogascontrollerapp directory
cd ./biogascontrollerapp/
# Set up venv if selected
if [[ "$use_venv" == "y" || "$use_venv" == "" ]]; then
python -m venv .venv

View File

@@ -1,7 +1,7 @@
#!/bin/sh
use_venv="y"
if [[ -f ./biogascontrollerapp/.venv/bin/activate ]]; then
if [[ -f ./.venv/bin/activate ]]; then
if [[ "$SHELL" == "fish" ]]; then
source ./.venv/bin/activate.fish
elif [[ "$SHELL" == "csh" ]]; then
@@ -15,5 +15,4 @@ if [[ -f ./biogascontrollerapp/.venv/bin/activate ]]; then
fi
fi
cd ./biogascontrollerapp/
python biogascontrollerapp.py