The OpenWeatherMap Datastore bundle contains a store for OpenWeatherMap Data.
The OpenWeatherMap Datastore bundle contains a store for OpenWeatherMap Data. It requests the OpenWeatherMap API that returns objects for each bigger city in the world. Each of this objects contains current weather data with the following parameter:
The bundle also contains a special content viewer with charts for 5 and 16 days forecast.
https://demos.conterra.de/mapapps/resources/apps/downloads_openweathermap/index.html
Configuration:
"bundles" {
"dn_openweathermapdatastore": {
"OpenWeatherMapStoreFactory": {
// bounding boxes + zoom value to get data
// from cities within the defined rectangle
// specified by the geographic coordinates
"bboxes": [
// whole world
"-180,90,180,-90,6",
// Germany
"6,55,15,47,8"
]
"apikey": "*your api key*"
},
"OWMInfoWidgetFactory": {
"apikey": "*your api key*"
}
},
...
}
In order to use the “dn_editingtypes” bundle, simply add it to your app - no further configuration is required.
Before you can run the project you have to define the mapapps.remote.base property in the pom.xml-file:<mapapps.remote.base>http://%YOURSERVER%/ct-mapapps-webapp-%VERSION%</mapapps.remote.base>
Goal parametersmvn install -Dmapapps.remote.base=http://%YOURSERVER%/ct-mapapps-webapp-%VERSION%
Build properties
Change the mapapps.remote.base in the build.properties file and run:mvn install -Denv=dev -Dlocal.configfile=%ABSOLUTEPATHTOPROJECTROOT%/build.properties