diff --git a/README.md b/README.md index 9245bbf1..f3631b19 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ You can read about this board and firmware in [my blog][2]. * Support for **automatic over-the-air updates** through the [NoFUSS Library][6] * Support for **current monitoring** through then [EmonLiteESP Library][7] * Support for **DHT22** sensors - +* Command line configuration ## Flashing @@ -46,27 +46,27 @@ The project is ready to be build using [PlatformIO][3]. Please refer to their web page for instructions on how to install the builder. Once installed: ```bash -> platformio run --target upload -e wire -> platformio run --target uploadfs -e wire +> platformio run --target upload -e node-debug +> platformio run --target uploadfs -e node-debug ``` Once you have flashed it you can flash it again over-the-air using the ```ota``` environment: ```bash -> platformio run --target upload -e ota -> platformio run --target uploadfs -e ota +> platformio run --target upload -e node-debug-ota +> platformio run --target uploadfs -e node-debug-ota ``` When using OTA environment it defaults to the IP address of the device in SoftAP mode. If you want to flash it when connected to your home network best way is to supply the IP of the device: ```bash -> platformio run --target upload -e ota --upload-port 192.168.1.151 -> platformio run --target uploadfs -e ota --upload-port 192.168.1.151 +> platformio run --target upload -e node-debug-ota --upload-port 192.168.1.151 +> platformio run --target uploadfs -e node-debug-ota --upload-port 192.168.1.151 ``` You can also use the automatic OTA update feature. Check the [NoFUSS library][6] for more info. -Library dependencies are automatically managed via PlatformIO Library Manager. +Library dependencies are automatically managed via PlatformIO Library Manager or included via submodules and linked from the "lib" folder. ## Usage diff --git a/code/build_data b/code/build_data new file mode 100755 index 00000000..4f49d890 --- /dev/null +++ b/code/build_data @@ -0,0 +1,8 @@ +#!/bin/bash +rm -rf data/*.gz +cp html/*min.css data/ +cp html/*min.js data/ +cp html/index.html data/ +gzip data/*.js +gzip data/*.css +gzip data/*.html diff --git a/code/data/checkboxes-min.css.gz b/code/data/checkboxes-min.css.gz new file mode 100644 index 00000000..5ffa7577 Binary files /dev/null and b/code/data/checkboxes-min.css.gz differ diff --git a/code/data/checkboxes-min.js.gz b/code/data/checkboxes-min.js.gz new file mode 100644 index 00000000..250e37e2 Binary files /dev/null and b/code/data/checkboxes-min.js.gz differ diff --git a/code/data/fsversion b/code/data/fsversion index b0bb8785..c81aa44a 100644 --- a/code/data/fsversion +++ b/code/data/fsversion @@ -1 +1 @@ -0.9.5 +0.9.7 diff --git a/code/data/grids-responsive-min.css.gz b/code/data/grids-responsive-min.css.gz new file mode 100644 index 00000000..a189cb95 Binary files /dev/null and b/code/data/grids-responsive-min.css.gz differ diff --git a/code/data/images/off.png b/code/data/images/off.png new file mode 100644 index 00000000..f414051e Binary files /dev/null and b/code/data/images/off.png differ diff --git a/code/data/images/on.png b/code/data/images/on.png new file mode 100644 index 00000000..94425e58 Binary files /dev/null and b/code/data/images/on.png differ diff --git a/code/data/images/slider.png b/code/data/images/slider.png new file mode 100644 index 00000000..80e05ff2 Binary files /dev/null and b/code/data/images/slider.png differ diff --git a/code/data/images/slider_center.png b/code/data/images/slider_center.png new file mode 100644 index 00000000..310fc8cc Binary files /dev/null and b/code/data/images/slider_center.png differ diff --git a/code/data/images/slider_left.png b/code/data/images/slider_left.png new file mode 100644 index 00000000..51576ce3 Binary files /dev/null and b/code/data/images/slider_left.png differ diff --git a/code/data/images/slider_right.png b/code/data/images/slider_right.png new file mode 100644 index 00000000..447d94a6 Binary files /dev/null and b/code/data/images/slider_right.png differ diff --git a/code/data/index.html b/code/data/index.html deleted file mode 100644 index 4591959a..00000000 --- a/code/data/index.html +++ /dev/null @@ -1,392 +0,0 @@ - - -
-