https://github.com/stefan-hudelmaier/ux4iot-dtdl-bootstrap
Project for quickly setting up a project with ux4iot-react using the Digital Twin Definition Language (DTDLv2)
https://github.com/stefan-hudelmaier/ux4iot-dtdl-bootstrap
azure-iot digitial-twin react ux4iot
Last synced: 6 months ago
JSON representation
Project for quickly setting up a project with ux4iot-react using the Digital Twin Definition Language (DTDLv2)
- Host: GitHub
- URL: https://github.com/stefan-hudelmaier/ux4iot-dtdl-bootstrap
- Owner: stefan-hudelmaier
- Created: 2021-08-25T08:02:21.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-19T09:34:15.000Z (over 3 years ago)
- Last Synced: 2025-02-06T05:23:13.558Z (8 months ago)
- Topics: azure-iot, digitial-twin, react, ux4iot
- Language: JavaScript
- Homepage:
- Size: 600 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Usage
Run this via npx:
```
ux4iot-dtdl-bootstrap --input my-dtdl-model.json --output DeviceView.js
```You can find samples for DTDL models here: https://github.com/Azure/opendigitaltwins-dtdl/tree/master/DTDL/v2/samples
For a list of DTDL models of actual hardware look here: https://github.com/Azure/iot-plugandplay-models/tree/main/dtmi
## Workflow for updating template
* Work on the React application in `template-ui`. You can work on it using: `npm run start` (with Hot-Reload)
* Once you are satisfied, merge your changes of `template-ui/src/DeviceView.js` *manually* into `Device.ejs`, e.g. using
`vimdiff DeviceView.ejs template-ui/src/DeviceView.js`
* Publish a new version of the bootstrap app which bundles `DeviceView.ejs`## Planned Features
* Not only support `Telemetry`, but also `Property`. At first read-only properties, later read-write properties.
See https://docs.microsoft.com/en-us/azure/iot-develop/concepts-digital-twin?WT.mc_id=IoT-MVP-5004034#read-only-property
and https://docs.microsoft.com/en-us/azure/iot-develop/concepts-convention for the mapping between DTDL and Device Twin.
* Also support commands