New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fw-server: add ip option #2759
fw-server: add ip option #2759
Conversation
It works! On windows only with the -i option.
The -d option still returns strange message:
Any way. Let's decide to use the -i option on windows only. |
I agree !! |
@arendst is there a wiki page related to OTA updates from web server ? I could add there some info on this solution... |
I suggest a new entry under Upload tools. A dedicated document for this solution. |
5.14.0a * Add feature information to Status 4 * Add tools folder with python script decode-status.py for decoding some status fields like SetOption and Features * Add python script fw-server.py in tools folder to create a simple OTA server (#2759) * Fix vars on rules (#2769) * Fix bug in KNX menu (#2770)
fw-server: add ip option
5.14.0a * Add feature information to Status 4 * Add tools folder with python script decode-status.py for decoding some status fields like SetOption and Features * Add python script fw-server.py in tools folder to create a simple OTA server (arendst#2759) * Fix vars on rules (arendst#2769) * Fix bug in KNX menu (arendst#2770)
Hi,
So, it works, and |
Great! Thanks for share this. Could you please add this to the wiki? It is very useful. 👍 |
Sorry @ascillato I was wrong, the wiki will wait! Firefox on Windows can download from fw-server as a service, but the sonoff devices only reboot, firmware is not updated. A downloader coded in Java I use on Windows neither work in this mode (file not found) when it works with the CLI. |
Hi @localhost61,
try to open 'fw/' directory from current directory.... in the meanwhile you can modify by hand line 81 to include your full pathname (/srv/tasmota/fw_server/fw) |
Thank's @gtortone that's it, of course ! I guess that you are better in Linux than I am. What do you think of my tasmota.service content? About which targets? What is "Wanted", "Required"? |
Hi @localhost61, regarding "WantedBy" and "RequiredBy" they are options to specify dependencies between services; if you want to know more details you can read "systemd" guide: |
Thanks @gtortone ! Good job ! 👍
I use it now and it works fine in conjunction with the following setup in platformio.ini:
|
Hi @localhost61, if you want to use fw/ (default) directory you can omit - f option... |
@gtortone, you don't remember ? You did this because services are started from root path and not from the python script directory, one need full qualified path for the script AND for the binary files directory. ;-) |
yes, I remember, but now this bug is solved! Try and let me know :-) |
You are right, it works without too. |
Wiki updated |
@gtortone Out of the two flags ISATTY and PIOVERBOSE, all the ARGUMENT variables are now included in env and projenv so that deciphering with b64decode is no more a necessity. sftp-uploader.py
I don't use http-uploader.py but I imagine it needs same treatment:
|
You're right. I had to remove the b64decode from http_uploader too. Will change soon. Thx for testing. |
Thanks to confirm Theo but I'm not only testing, it's my way to use Tasmota, I was locked and had to find a solution ;-). |
Fix pio 4.0.0 related issues (#2759)
It's pio core version 4.0.0 related. We had to change a parameter in platformio.ini too #6073 If downgraded pls check the platformio version with |
You're right, I'm using Win8.1 and downgrading the IDE didn't change the core version which is located for me in "%userprofile%.platformio\penv\Scripts". I think the IDE didn't use pip to install the core, it doesn't appear when I enter
Yes, I saw that but I don't feel concerned with old ESP core v2.30 |
Hi, this commit is related to fw-server... while you are describing a problem |
Yes @gtortone, I know that but it's closed and as I believe you are the author/maintainer of those scripts it seemed to me the best way to reach you and get your attention. |
@localhost61 I'm mantainer of fw-server not pio scripts... but I see that Theo is already working on you issue! |
For several weeks I couldn't upgrade my devices through OTA. I thought I introduced a bug in my previous build that broke the mechanism... without suspecting the OTA server. I checked the status of fw-server in a terminal session and found that the wlan0 IP was wrong, certainly due to a previous power failure. Wiki updated: After a power failure, local HTTP OTA server may become unresponsive |
Hi,
a new option (-i | --ip) is available in order to specify IP address to bind (instead of network interface)
Regards,
Gennaro