I just created this prompt for a PWA smarthome/IoT dashboard. I want to use this with Opus. If there's anything I missed, please let mw know, @Derek Ross
_____
Create a dashboard app for smarthome and IoT. It is very important that this is a PWA that can run offline. I want it to be able to connect to devices in a local network, but also online.
The dashboard should support HTTP requests (all methods), WebSocket and MQTT, including support for multiple MQTT brokers or WebSocket servers. Optionally, you can add support for the Constrained Application Protocol (CoAP).
The user should be able to create as many dashboards as he wants. The dashboards can use a JSON-based file format. Make sure the JSON is well formatted so that it can be read by humans using any text editor. Dashboards can be saved as a file and loaded from a file.
A dashboard can contain the following elements:
- text display that shows output
- text fields for data to send to a server or broker
- checkboxes with multiple choices
- radio buttons with one out of multiple choices
- buttons with one action
- switches with 2 actions
- non-binary switches with 3 or more actions
- image and video feed display for webcams
- variables and other things that enable elemwnts to take data from other elements
Server and broker URLs can be defined either per dashboard or per element. Maybe also a mix of both.
Optionally, you could implement some premade templates, including one for Tasmota devices. But please also let the user create a dashboard from scratch.
For future expansions, add Nostr login, just in case a custom or official NIP for smarthome or IoT should ever emerge.
_____
View quoted note →