RangerDigital / senko

🦊 Simplest OTA update solution for your Micropython projects.
GNU General Public License v3.0
95 stars 21 forks source link

README.md direct URL example #8

Open chaseadam opened 1 year ago

chaseadam commented 1 year ago

Attempting to use the "direct URL" example and ran into several issues:

Seems /blob urls may have worked in the past, but no longer work for raw files.

Non-working:

GITHUB_URL = "https://github.com/RangerDigital/senko/blob/master/examples/"
OTA = senko.Senko(url=GITHUB_URL, files=["boot.py", "main.py"])

Working:

GITHUB_URL = "https://raw.githubusercontent.com/RangerDigital/senko/master/examples"
OTA = senko.Senko(None, None, url=GITHUB_URL, files=["boot.py", "main.py"])