Leftunder logo

The Leftunder Project

Hosting, docs, and more for the Leftunder Project.

Set it up

Addons

Install Grocy. It’s how you manage the food. If you use Home Assistant, it’s easily installable as an addon.
Next, install the combined server. You can find it in the leftunder_addon folder of this repo. Give it your Grocy endpoint, and a Grocy API key. Copy it over to the /addons folder in Home Assistant, in its own directory.

MagTag

First, you’ll need a physical item: the Adafruit MagTag. Make sure it’s up to date. Install the latest beta of CircuitPython.
Now, copy over the code. Copy over to the CIRCUITPY drive from this repo:

Also add a secrets.py file with this structure.

secrets = {
    "ssid": "MyNet",
    "password": "WiFiPassword",
    "endpoint": "http://combinedServerDomain:port"
}

Personally, I have an LED strip connected to A1.

The cool bits

OTA

OTA is implemented in boot.py. Long-press any button while pressing reset. Release it once it beeps. Feel free to look in the source. This is what it looks like:

Web serial console

You can use serial without downloading anything here.

Logo + deep sleep

I made a SVG logo. View it in the repo.
It also deep sleeps for an hour on success, and for a minute when it can’t connect to WiFi.

Photos

OTA Booting up Use
OTA Booting up In action

Attributions

Every icon in the .bmp files comes from icons8.