Skip to content

Commit

Permalink
Refactor JSON implementation & change local storage setup (#26)
Browse files Browse the repository at this point in the history
* refactor json implementation & change local storage to use json

* Update LED control messages

* Update configurable values in main.cpp

* Add CI workflow for PlatformIO and remove unnecessary Firefox installation
  • Loading branch information
mwood77 authored Feb 12, 2024
1 parent 95f3ce8 commit 9cfd7f2
Show file tree
Hide file tree
Showing 7 changed files with 173 additions and 151 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PlatformIO CI

on:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Build PlatformIO Project
run: pio run
2 changes: 0 additions & 2 deletions .github/workflows/selenium-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
with:
node-version: 18

# - run: sudo apt-get install firefox

- run: npm i selenium-webdriver

- run: npx node .github/workflows/test-ali-links.mjs
Expand Down
1 change: 1 addition & 0 deletions data/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"savedStatus":"Stopped","savedTPD":"220","savedHour":"00","savedMinutes":"00","savedTimerState":"0","savedDirection":"BOTH"}
1 change: 0 additions & 1 deletion data/settings.txt

This file was deleted.

2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description = IoT controlled smart watch winder
platform = espressif32@^5.2.0
board = esp32doit-devkit-v1
framework = arduino
upload_speed = 921600
upload_speed = 115200
monitor_speed = 115200
build_src_filter = +<*> -<./angular/>
board_build.filesystem = littlefs
Expand Down
Loading

0 comments on commit 9cfd7f2

Please sign in to comment.