Displays a 5-day weather forecast using weather data provided by the OpenWeatherAPI.
⚠️ This project is no longer under development. Please use Weather Forecast Widget for Cumulocity for Application Builder >=2.x.x and Cumulocity >=1016.x.x⚠️
Realtime: Realtime weather updates from the OpenWeatherAPI
Configurable Refresh rate: Control how often the weather updates
- This widget supports runtime deployment. Download the Runtime Binary and use Application Builder to install your runtime widget.
This guide will teach you how to add the widget in your existing or new dashboard.
- Register a new account with OpenWeather
- Verify your openweathermap account by clicking on the email which has been sent to you
- Log into your openweathermap account and add a new API under
API keys
- Open the Application Builder application from the app switcher (Next to your username in the top right)
- Add a new dashboard or navigate to an existing dashboard
- Click
Add Widget
- Search for
Weather Forecast
- See below for the configuration options
-
Select your device in the
Target Assets or Devices
field -
Enter the
API Key
which was generated in your openweathermapAPI keys
page -
Enter the
Refresh (in hours)
e.g. 1 -
Enter the
City
. This is an optional field. The latitude and longitude of your selected device will be used if it has been configured.Note the City will default to London, if no city name is typed into this field and the selected device doesn't contain location (latitude & longitude) details.
- Clone the repository on your local machine using
git clone https://github.com/SoftwareAG/cumulocity-weather-forecast-widget.git
. - Run
npm install
to download the module dependencies. - Run
c8ycli server -u https://your_tenant_url
to start the server. - Go to
http://localhost:9000/apps/cockpit/
in the browser to view and test your changes. - (Optional) push the changes back to this repository.
- Finish the development and testing on your local machine.
- Run
gulp
to start the build process. - Use the
weather-forecast-widget.zip
file in thedist
folder as your distribution file.
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.