Files
OpenEPaperLink/ESP32_AP-Flasher/push_ota.sh
Mimoja aff20e272c Add updateRemote.sh script to update the contentFs on multiple APs at once
As flashing a new LittleFS in case of e.g. a changed main.js is taking time and
the provided web interface is not the fastest to navigate we are introducing a
small script to upload the whole data folder to the esp.
It can also be sourced into a shell allowing for manual file uploads to the esp.

In addition we are also adding a "push_ota.sh" script designed to show its use as
well as uploading the recenty build firmware to the esp where future commits will
allow of SDCard based updates.

Signed-off-by: Mimoja <git@mimoja.de>
2023-07-08 01:21:29 +02:00

20 lines
390 B
Bash
Executable File

#!/bin/bash
source updateRemote.sh > /dev/null
if [ -z "$IP" ]
then
echo "ERROR: Empty IP variable"
exit 1
fi
if [ -z "$PIOENV" ]
then
echo "ERROR: Empty PIOENV variable"
exit 1
fi
md5sum .pio/build/$PIOENV/firmware.bin | tee .pio/build/$PIOENV/firmware.md5
upload_file .pio/build/$PIOENV/firmware.md5:ota_md5.txt
upload_file .pio/build/$PIOENV/firmware.bin:ota.bin