Firmware download link

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
gepd
Posts: 12
Joined: Sat Oct 14, 2017 8:13 pm

Firmware download link

Post by gepd » Sat Oct 14, 2017 8:22 pm

Hi, I'm developing a Sublime Text plugin to automatize some things in the process of work with micropython.

One of that things is to download and uploload the firmware the easyest way, so I would like to know if there a link to always get the lastest published firmware?

Thanks in advance

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: Firmware download link

Post by deshipu » Sun Oct 15, 2017 9:40 am

Have you looked at http://micropython.org/download ?

gepd
Posts: 12
Joined: Sat Oct 14, 2017 8:13 pm

Re: Firmware download link

Post by gepd » Sun Oct 15, 2017 3:39 pm

Yes I did it, the problem is, that link is dinamic so it will change everyday. I was thinking a link that be always the same but redirect to the last daily version.

The Idea is the plugin always download the latest version. If there is not option I should ask to the user enter the link and wait until an stable release.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Firmware download link

Post by pythoncoder » Mon Oct 16, 2017 7:20 am

The links to daily builds will change daily - this is surely no surprise - but those to release builds will be stable. I would imagine release builds would be more suitable for your purposes in any case as the likelihood of a bug in a daily build is greater.
Peter Hinch
Index to my micropython libraries.

gepd
Posts: 12
Joined: Sat Oct 14, 2017 8:13 pm

Re: Firmware download link

Post by gepd » Mon Oct 16, 2017 2:54 pm

Thansk, so I imagine the answer is, there is no way to to that.

User avatar
tuupola
Posts: 54
Joined: Sun Sep 17, 2017 12:10 am
Contact:

Re: Firmware download link

Post by tuupola » Mon Oct 23, 2017 12:22 pm

There is no such thing as "not possible". Couple of ways to get the url of latest ESP32 firmware link:

Code: Select all

$ lynx -listonly -dump http://micropython.org/download | grep "firmware/esp32" | sed 's/.*http/http/'
http://micropython.org/resources/firmware/esp32-20171023-v1.9.2-280-g2305d848.bin

Code: Select all

$ curl --silent http://micropython.org/download | grep "firmware/esp32" | gawk -F'<a +href="' -v RS='">' 'RT{print $2}'
http://micropython.org/resources/firmware/esp32-20171023-v1.9.2-280-g2305d848.bin
Rest is left as an exercise to the reader.

gepd
Posts: 12
Joined: Sat Oct 14, 2017 8:13 pm

Re: Firmware download link

Post by gepd » Thu Oct 26, 2017 5:47 pm

Thanks @tuupola!

I'll try that, the only problem there is no link for esp32 at this moment, I'll wait until it's back

Post Reply