Create a Weather widget on your Dashboard and/or Space(s).
Note: Forecast7 & WeatherWidget.io are an external service that provides the code and weather forcast that is placed within your HumHub's dashboard and/or space sidebar.
This field you must enter the location of the area you've entered in the Forecast7 Weather URL field (e.g: TOKYO
), this field is case sensitive, meaning it must be capitalized.
You can use either the default URL generated (e.g: https://forecast7.com/en/35d71139d73/tokyo/
) or use the same URL with {language}
(e.g: https://forecast7.com/{language}/35d71139d73/tokyo/
).
In some cases this is a requirement, in these cases use the below snippet, for those that don't know if this applies to them please read the official docs.
frame-src
https://weatherwidget.io/ in case you've overwritten the default csp header."frame-src" => [
"self" => true,
"allow" => [
'https://weatherwidget.io/'
]
],
ACP > Modules > Purchase
/protected/modules
ACP > Modules > Modules List
ACP > Weather Settings
place your WeatherWidget.io in the configuration fields then save.Selected Space > Modules
place fill in the form fields with information from WeatherWidget.ioDate: 12/28/2020
Date: 10/15/2020
getLocation()
to getSLocation()
Yii::$app->language
(e.g {language}
)Date: 9/11/2020