The Indoor Air Quality Widget displays the current value of the measured indoor air quality and the corresponding condition. In addition, it provides a recommendation on how the indoor air quality can be improved in case it is necessary. The widget expects a measurement in the range between 0 and 500.
The supported levels are:
- Excellent - 0-50
- Good - 51-100
- Lightly Polluted - 101-150
- Moderately Polluted - 151-200
- Heavily Polluted - 201-250
- Severely Polluted - 251-350
- Extremly Polluted - 351-500
Preview:
- Download the latest
indoor-air-qality-widget-{version}.zip
file from the Releases section. - Make sure you have Runtime Widget Loader installed on your Cockpit or App Builder app.
- Open a dashboard.
- Click
more...
. - Select
Install Widget
and follow the instructions.
- Clone the repository on local machine using
git clone [email protected]:SoftwareAG/cumulocity-indoor-air-quality-widget.git
. - Run
npm install
to download the module dependencies. - Update start script in the
package.json
and add your Cumulocity tenant URL:c8ycli server -u https://your_tenant_url
- Run
npm run start
to start the local server. - Go to
http://localhost:9000/apps/cockpit/
in the browser to view and test your changes.
- Finish the development and testing on your local machine.
- Run
npm run runtime
to trigger the build process using gulp - Once the build has finished, the newly created zip archive is available in
./runtime/dist/indoor-air-qality-widget-{{version}}.zip
This widget is provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
For more information you can Ask a Question in the TECHcommunity Forums.
You can find additional information in the Software AG TECHcommunity.