GitHub ESP32 OTA updates, now in MicroPython version

Wouldn't it be great if you could keep all your little internet-connected hacks up-to-date with just one codebase? A few weeks ago we wrote a project that automatically pulls OTA updates to an ESP32 from GitHub, using the ESP32 C SDK. [Pascal] asked in the comments, "but what how about MicroPython?" Gauntlet thrown in, [TURFPTAx] wrote ugit.py - a simple library that mirrors all code from a public Python GitHub repository directly to your gizmo running Micropython.

[Damped] wrote about Senko, another library that does something very similar, but at that time [TURFPTAx] was already done. Bam! Part of the speed is that MicroPython includes everything you need to get the job done - streaming JSON parsing was the hardest part with the original hack. MicroPython makes this kind of stuff easy.

This is one of those ideas that is just brilliant for a hacker with a small herd of independent devices to collect. And because ugit.py itself is quite simple and readable, if you need to customize it to do your own bidding, that's no problem either. Just make sure that when you store your WiFi credentials, they are not displayed publicly. ([TURFPTAx], can I connect to your home WiFi?)

What is [TURFPTAx] going to use this for? We're guessing it's going to deploy code to its formidable Open Muscle sensing platforms. What are we going to use it for? Flashing Christmas ornaments for in-laws, now changeable remotely without them even having to learn what a "repo" is.

GitHub ESP32 OTA updates, now in MicroPython version

Wouldn't it be great if you could keep all your little internet-connected hacks up-to-date with just one codebase? A few weeks ago we wrote a project that automatically pulls OTA updates to an ESP32 from GitHub, using the ESP32 C SDK. [Pascal] asked in the comments, "but what how about MicroPython?" Gauntlet thrown in, [TURFPTAx] wrote ugit.py - a simple library that mirrors all code from a public Python GitHub repository directly to your gizmo running Micropython.

[Damped] wrote about Senko, another library that does something very similar, but at that time [TURFPTAx] was already done. Bam! Part of the speed is that MicroPython includes everything you need to get the job done - streaming JSON parsing was the hardest part with the original hack. MicroPython makes this kind of stuff easy.

This is one of those ideas that is just brilliant for a hacker with a small herd of independent devices to collect. And because ugit.py itself is quite simple and readable, if you need to customize it to do your own bidding, that's no problem either. Just make sure that when you store your WiFi credentials, they are not displayed publicly. ([TURFPTAx], can I connect to your home WiFi?)

What is [TURFPTAx] going to use this for? We're guessing it's going to deploy code to its formidable Open Muscle sensing platforms. What are we going to use it for? Flashing Christmas ornaments for in-laws, now changeable remotely without them even having to learn what a "repo" is.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow