HN-Vignolles / micropython-template

MicroPython project template with a mini web framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

codebase inspired by https://gitlab.com/superfly/dawndoor

MicroPython project template with a mini web framework

Example

curl -i 192.168.1.46/gpio?number=0
> HTTP/1.0 200 NA
> Content-Type: application/json
>
> {"value": 1, "ok": true}

curl -i -d '{"number":2,"value":"t"}' -X POST 192.168.1.46/gpio
> HTTP/1.0 200 NA
> Content-Type: application/json
>
> {"value": 0, "ok": true}

 

esp8266-ADC + Plotly

 

Prerequisites

pip install esptool mpfshell

Instructions

Build the docker image, compile and copy the firmware

MPY_PORT=esp8266 ./compile.sh

Write the firmware (Warning: this will erase the flash!)

./write_flash.sh [PORT]

About

MicroPython project template with a mini web framework


Languages

Language:Python 72.4%Language:HTML 23.0%Language:Shell 2.9%Language:Dockerfile 1.7%