https://github.com/pappz/ota-promoter-py
Over the air MicroPython application update tool for ESP8266 type microcomputer. With this tool you can track and you can publish the changed files from your developer PC to your microchips via HTTP.
https://github.com/pappz/ota-promoter-py
micropython-esp8266 ota python
Last synced: 4 months ago
JSON representation
Over the air MicroPython application update tool for ESP8266 type microcomputer. With this tool you can track and you can publish the changed files from your developer PC to your microchips via HTTP.
- Host: GitHub
- URL: https://github.com/pappz/ota-promoter-py
- Owner: pappz
- License: gpl-2.0
- Created: 2020-01-07T19:56:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-15T23:08:01.000Z (over 5 years ago)
- Last Synced: 2024-12-30T08:29:01.804Z (6 months ago)
- Topics: micropython-esp8266, ota, python
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ota-promoter-py
This is a python client implementation for ota-promoter server service.
With this tool you can update your MicroPython project on your running
devices. For more details visit [ota-promoter-server](https://github.com/pappz/ota-promoter)I tested this tool on ESP-8266 device.
## Example usage
```python
import otapromoter
from machine import resetdef ota_check():
try:
promoter = otapromoter.OTAPromoter('http://192.168.0.10:9090')
if promoter.check_and_update():
reset()
except otapromoter.OTAException as e:
print(e)
return
except OSError as e:
print(e)
returnif __name__ == '__main__':
ota_check()
```