Weather Status
- class nc_py_api.weather_status._WeatherStatusAPI(session: NcSessionBasic)[source]
Class providing the weather status management API on the Nextcloud server.
- property available: bool
Returns True if the Nextcloud instance supports this feature, False otherwise.
- get_location() WeatherLocation [source]
Returns the current location set on the Nextcloud server for the user.
- set_location(latitude: float | None = None, longitude: float | None = None, address: str | None = None) bool [source]
Sets the user’s location on the Nextcloud server.
- Parameters:
latitude – north-south position of a point on the surface of the Earth.
longitude – east-west position of a point on the surface of the Earth.
address – city, index(optional) and country, e.g. “Paris, 75007, France”
- set_mode(mode: WeatherLocationMode) bool [source]
Change the weather status mode.
- class nc_py_api.weather_status.WeatherLocation(raw_location: dict)[source]
Class representing information about the user’s location.
- mode: WeatherLocationMode
Weather status mode