diff --git a/.github/workflows/pio-build.yaml b/.github/workflows/pio-build.yaml index fbeff83..61ca9da 100644 --- a/.github/workflows/pio-build.yaml +++ b/.github/workflows/pio-build.yaml @@ -36,7 +36,7 @@ jobs: git config --global advice.detachedHead false - name: Run PlatformIO - run: pio run -e gravity-release -e gravity32-release -e gravity32c3-release -e gravity32s2-release + run: pio run -e gravity-release -e gravity32-release -e gravity32c3-release -e gravity32s2-release -e gravity32c3v1-release -e gravity32lite-release - uses: EndBug/add-and-commit@v9 # You can change this to use a specific version. https://github.com/marketplace/actions/add-commit with: diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index bab9942..4f61a24 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v3 - name: clang format support run: | sudo apt install clang-format cppcheck diff --git a/.gitignore b/.gitignore index b9451a7..0e19ee9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ .vscode/* *.map src_docs/_build/* +.env/* +*.pyc \ No newline at end of file diff --git a/README.md b/README.md index 839c4bb..cf8846a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@  -GravityMon is a replacement firmware for the iSpindle firmware. It's 100% compatible with the iSpindle hardware design so it does not require any hardware changes. +GravityMon is a replacement firmware for the iSpindle firmware. It's 100% compatible with the iSpindle hardware design so it does not require any hardware changes. From v1.2 you can also use GravityMon for the DIY Floaty Hardware with ESP32 Lite. Now also works with ESP32 d1 mini, ESP32 c3 mini, ESP32 S2 mini which both are pin compatible with ESP8266. @@ -28,4 +28,4 @@ If you want to support my work you can do that through these options Thanks to the following persons for supporting me and this project: -* David Conde \ No newline at end of file +* David Conde, @davidconde \ No newline at end of file diff --git a/TEST.md b/TEST.md new file mode 100644 index 0000000..f0873fb --- /dev/null +++ b/TEST.md @@ -0,0 +1,31 @@ +# Unit testing - Python Script + +I have moved my test scripts into this project now. They are mainly based on python scrips and validate the features from the API's. + +Create a virtual environment and install the needed dependecies +``` +python -m venv .env +pip install -r requirements.txt +``` + +Before you runt the script you need to update the IP adress to match the device that you have on your network. + +Running the ALL tests +``` +cd src/test +python3 -m unittest -v apitests.py -v +``` + +Running the ONE test +``` +cd src/test +python3 -m unittest -v apitests.API.test_status -v +``` + +# Unit testing - Specific build + +I've added a specific build that uses the AUnit (https://github.com/bxparks/AUnit) testing framework so that we can test functions or classes on the device itself. I hope this will simplify the release and testing cycle. + +1. Select the build target (gravity-unit) +2. Build/upload the code to an iSpindle device. +3. Check the output from the serial console. diff --git a/battery-test-1.2.xlsx b/battery-test-1.2.xlsx new file mode 100644 index 0000000..88c9b2a Binary files /dev/null and b/battery-test-1.2.xlsx differ diff --git a/bin/firmware.bin b/bin/firmware.bin index 263819b..4298122 100644 Binary files a/bin/firmware.bin and b/bin/firmware.bin differ diff --git a/bin/firmware32.bin b/bin/firmware32.bin index 0bf5f74..0aaf4e9 100644 Binary files a/bin/firmware32.bin and b/bin/firmware32.bin differ diff --git a/bin/firmware32c3.bin b/bin/firmware32c3.bin index d8c0720..6fad862 100644 Binary files a/bin/firmware32c3.bin and b/bin/firmware32c3.bin differ diff --git a/bin/firmware32c3v1.bin b/bin/firmware32c3v1.bin new file mode 100644 index 0000000..d35bdf8 Binary files /dev/null and b/bin/firmware32c3v1.bin differ diff --git a/bin/firmware32lite.bin b/bin/firmware32lite.bin index 71a732f..9d9f83d 100644 Binary files a/bin/firmware32lite.bin and b/bin/firmware32lite.bin differ diff --git a/bin/firmware32s2.bin b/bin/firmware32s2.bin index a37d650..854d95a 100644 Binary files a/bin/firmware32s2.bin and b/bin/firmware32s2.bin differ diff --git a/html/config.htm b/html/config.htm index 5b3a1c6..a023157 100644 --- a/html/config.htm +++ b/html/config.htm @@ -468,7 +468,7 @@ -