[doc] weather template (WIP)

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2022-09-18 20:22:52 +02:00
parent df4f318103
commit 9a61894113

View file

@ -311,3 +311,28 @@ the parameter ``template`` must be set to the desired type.
address.postcode postcode of object
address.country country of object
========================= =====================================================
.. list-table:: Parameter of the **weather** media type
:header-rows: 2
:width: 100%
* - result parameter
- Python type
- information
* - template
- :py:class:`str`
- is set to ``weather.html``
* - location
- :py:class:`str`
- name of the location
* - currently
- :py:class:`dict`
- current weather data
* - forecast
- :py:class:`List <list>`\ [\ :py:class:`dict`\ ]
- weather forecast data