From fed31fc9b2e45940a3acf046222c05d1890deea2 Mon Sep 17 00:00:00 2001 From: Xavier MULLER <33861984+localhost61@users.noreply.github.com> Date: Sun, 6 Oct 2019 10:27:13 +0200 Subject: [PATCH] After a power failure, local Http OTA server may become unresponsive --- Python-HTTP-OTA-Server.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Python-HTTP-OTA-Server.md b/Python-HTTP-OTA-Server.md index ea74149e..a77e687c 100644 --- a/Python-HTTP-OTA-Server.md +++ b/Python-HTTP-OTA-Server.md @@ -110,10 +110,18 @@ In the following commands too, replace 4 time `XYZ` by your username : ``` - Test of the server -To feed the server, we're now able to copy new firmwares in the folder `/srv/tasmota/fw_server/fw` with `XYZ` user rights. It can be done with `scp` or `samba` for instance. -Let's upload `firmware.bin` into the folder, the service can be tested from any browser by issuing the address `http://:5000/firmware.bin` were is the adress of the linux server. +To feed the linux server, we're now able to copy new firmwares in the folder `/srv/tasmota/fw_server/fw` with `XYZ` user rights. It can be done using `scp` or `samba` for instance. +Let's upload `firmware.bin` into the folder, the service can be tested from any browser by issuing the address `http://:5000/firmware.bin` were `` is the adress of the linux server. If you reboot the server, the service should startup again. +If your notice that the OTA mechanism is broken, try at first to download the served file from a browser. If you can't, then check the status of the service as said above. After a power failure, it may happen that your wlan0 IP resolves to an invalid value like `169.254.5.153` because your LAN gateway was not ready. +Login as root in a Terminal session and enter: +``` +# systemctl restart tasmota.service +> systemctl status tasmota.service +``` +if you recognize the IP of your server on the last status line, it should be OK now... OTA service restored! + Now if you want PlatformIO to be able to upload your compiled binaries to the local server, you'll still have to setup `ssh` with `ssh-keygen` in order to use the Tasmota script `pio/sftp-uploader.py` without password.