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, nostr:nprofile1qqsr7acdvhf6we9fch94qwhpy0nza36e3tgrtkpku25ppuu80f69kfqppemhxue69uhkummn9ekx7mp0qyghwumn8ghj7mn0wd68ytnhd9hx2tcpzamhxue69uhhyetvv9ujumn0wd68ytnzv9hxgtcmuvweu

_____

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.

_____

nostr:nevent1qqszlrpxaggp4paxehraees2ftf9lqxc800mzqzc4fzt30ahrmyls4gpzemhxue69uhhyetvv9ujumt0wd68ytnsw43z7q3q4rg4vrt2v374q95ezeeydu3hkdhmzglcj950mggacap4x0lv0gyqxpqqqqqqz3r67pt

Reply to this note

Please Login to reply.

Discussion

i would use this and also look for the custom NIPs and draft NIPs that are being used and have shakespeare incorporate them. cc nostr:npub1dqepr0g4t3ahvnjtnxazvws4rkqjpxl854n29wcew8wph0fmw90qlsmmgt