mass update tool

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
bobbybeans
Normal user
Posts: 119
Joined: 26 Feb 2017, 17:30

mass update tool

#1 Post by bobbybeans » 06 Apr 2017, 12:38

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

bobbybeans
Normal user
Posts: 119
Joined: 26 Feb 2017, 17:30

Re: mass update tool

#2 Post by bobbybeans » 03 May 2017, 19:27

anybody? version verification? i haven't started the project been to busy

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mass update tool

#3 Post by grovkillen » 03 May 2017, 19:50

+1

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 :idea: :idea: :idea:

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: mass update tool

#4 Post by psy0rz » 03 May 2017, 23:52

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.
Please support ESPEasy development via Patreon or buy us a coffee.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: mass update tool

#5 Post by psy0rz » 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
Please support ESPEasy development via Patreon or buy us a coffee.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mass update tool

#6 Post by grovkillen » 04 May 2017, 06:11

psy0rz 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
Will try this! Great info. Need to be added to wiki :D

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 :idea: :idea: :idea:

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: mass update tool

#7 Post by psy0rz » 04 May 2017, 08:39

yea that needs to be on the wiki indeed.

perhaps in the future we also can have some automatic online update option as well.
Please support ESPEasy development via Patreon or buy us a coffee.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mass update tool

#8 Post by grovkillen » 04 May 2017, 08:41

psy0rz wrote: 04 May 2017, 08:39 perhaps in the future we also can have some automatic online update option as well.
Stop it, you make me drool! 8-)
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 :idea: :idea: :idea:

bobbybeans
Normal user
Posts: 119
Joined: 26 Feb 2017, 17:30

Re: mass update tool

#9 Post by bobbybeans » 19 May 2017, 21:13

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

Post Reply

Who is online

Users browsing this forum: No registered users and 64 guests