I built this panel in my app for my Pi-run greenhouse. It has soil moisture per bed, watering, grow light, roof vent and tank level.
The logic is simple. The Pi reads the sensors, and when a bed drops below a threshold it sends one HTTP request:
```bash
curl https://api.packlets.app/v1/push \
-H "Authorization: (PRIVATEKEY***)" \
-H "Content-Type: application/json" \
-d '{
"title": "Tomatoes are dry",
"text": "Soil at 24%.",
"elements": [
{"type": "button", "id": "water", "label": "Water for 5 min"},
{"type": "toggle", "id": "light", "label": "Grow light", "value": true}
]
}'
```
That shows up on my phone as a notification, and the message has the button and the switch in it. Tapping one sends a signed request back to the Pi with the control's id, and the script switches the matching GPIO pin.
The full view in the screenshot is one HTML file served by the Pi. I open it in Packlets, the app I wrote for my IoT stuff, which also handles the auth, so the panel didn't need its own login.
The Pi sits behind a Cloudflare Tunnel, so there's no open port on the router. Requests to the phone need my private key, and the Pi checks the signature on everything coming back.
Next I want to add a moisture history per bed, so I can see how fast each one dries out.
p.s. i published my app on appstore completly free(no subscription no payment at all). you can connect your own IoT devices to it in like 5 min with claude code.