Skip to content

iot49/leaf

Repository files navigation

Leaf

Configure repo

submodule

cd trees/vm
git submodule add https://github.com/micropython/micropython.git

Deploy

  1. Earth (FastAPI) a) dockerhub: ttmetro/leaf-backend b) built by github action earth-backend.yml c) deploy to balena: make balena-push
  2. UI (LitElement)
    • create latest release and push to balena (static content): make ui
    • Note: mv ui/dist/assets/svg ui/dist/assets/icons
  3. Trees (MicroPython)
    • push tag v* builds VM and publishes as release
    • flash or ota update

Run

  1. Productioon:

.github secrets

In github repo, choose

  • Settings
  • Secrets and variables
  • Actions
  • New repository secret

Core Components

Trees

Micropython app for collecting sensor data.

UI

Web frontend based on lit-element.

Earth

Cloud backend for managing apps and credentials.

Created from the following template:

pip install create-fastapi-project
create-fastapi-project