diff --git a/Readme.md b/Readme.md index 751ac1d..36f3cf0 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,7 @@ # ESP Wordclock ## Setup +### Initial Setup Install the firmware on the ESP: The ESP must be set into the bootloader mode, like [this](https://www.ccc-mannheim.de/wiki/ESP8266#Boot_Modi) @@ -22,5 +23,12 @@ Then disconnect the serial terminal and copy the required files to the microcont ./tools/initialFlash.sh /dev/ttyUSB0 +### Upgrade + +Determine the IP address of your clock and execute the following script: +
+./tools/remoteFlash.sh IP-Address ++ ## Internal Setup * GPIO2 LEDs diff --git a/tools/remoteFlash.sh b/tools/remoteFlash.sh new file mode 100755 index 0000000..5cd5834 --- /dev/null +++ b/tools/remoteFlash.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +IP=$1 + +FLASHTOOL=./tools/tcpFlash.py + +if [ ! -f $FLASHTOOL ]; then + echo "Execute the script in root folder of the project" + exit 2 +fi + +if [ "$IP" == "" ]; then + echo "IP address of ESP required" + echo "usage:" + echo "$0