mass update tool
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 119
- Joined: 26 Feb 2017, 17:30
mass update tool
so question. I have so many devices that run on espeasy and its a pain when a new release comes out I have to manually go onto each device and select firmware and update it. very annoying but I appreciate the creators to do OTA updates as that's far better than flash upgrading. However I would like to make it better.
I was going to create a mass update scrpit that intakes a list of IP's that has esp easy and a specified flash file then goes to each IP and inputs and submits the new flash file
I will also have a setting backup most likely if I get around to it, in case something goes wrong
my main question while developing it. Does the OTA have versioning verification?
what I mean by this if I'm on r120 the upgrade to r140. am I able to downgrade to 120 again? the reason I will need to do testing so I will probaby upgrade a ton of times but I need to go back down to r120 to try upgrading again as I don't want to reflash the device every time
I was going to create a mass update scrpit that intakes a list of IP's that has esp easy and a specified flash file then goes to each IP and inputs and submits the new flash file
I will also have a setting backup most likely if I get around to it, in case something goes wrong
my main question while developing it. Does the OTA have versioning verification?
what I mean by this if I'm on r120 the upgrade to r140. am I able to downgrade to 120 again? the reason I will need to do testing so I will probaby upgrade a ton of times but I need to go back down to r120 to try upgrading again as I don't want to reflash the device every time
-
- Normal user
- Posts: 119
- Joined: 26 Feb 2017, 17:30
Re: mass update tool
anybody? version verification? i haven't started the project been to busy
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: mass update tool
+1
Best (I think) would be to send the update file/link as a MQTT message and have the units themselves install the update.
Best (I think) would be to send the update file/link as a MQTT message and have the units themselves install the update.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: mass update tool
is doesnt have versioning, you can just flash any version you like.
keep in mind you cannot upgrade downgrade between ESPEasy v2 (mega) and the "classic" ESPEasy. (the ones that where numbered R1...R148)
well you can upgrade, but the unit will reset to factory defaults.
keep in mind you cannot upgrade downgrade between ESPEasy v2 (mega) and the "classic" ESPEasy. (the ones that where numbered R1...R148)
well you can upgrade, but the unit will reset to factory defaults.
Re: mass update tool
as for mass upgrading, if you use the curl commandline tool, you can script an update like this:
Code: Select all
curl -v -F update=@firmware.bin http://1.2.3.4/update
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: mass update tool
Will try this! Great info. Need to be added to wikipsy0rz wrote: ↑04 May 2017, 00:25 as for mass upgrading, if you use the curl commandline tool, you can script an update like this:
Code: Select all
curl -v -F update=@firmware.bin http://1.2.3.4/update

Thanks for that psy0rz.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: mass update tool
Stop it, you make me drool!

ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



-
- Normal user
- Posts: 119
- Joined: 26 Feb 2017, 17:30
Re: mass update tool
sorry very late reply on this i am just usually so busy with the job. I was thinking of partially coding it with selinium and a chrome web driver. That would generate the script to do most of what I would then I would have to just have it reference maybe a txt with a list of ips that feed into it and loop back continually till done . I haven't even started this just been so busy with other stuff
Who is online
Users browsing this forum: Ahrefs [Bot] and 18 guests