Defines an object for the Observation data returned in an Aeris API observation responses.
More...
|
dictionary | data = {} |
|
dictionary | data = {} |
|
Defines an object for the Observation data returned in an Aeris API observation responses.
◆ __init__()
def aerisweather.responses.ObservationsResponse.ObservationsResponse.__init__ |
( |
|
self, |
|
|
|
json_data = None |
|
) |
| |
Constructor Takes a single response json object from an Aeris API data response.
Examples would be: either of the responses in the following response array: "response": [ { ... }, { ... } or the contents of a single response: "response": { "loc": { "lat": 43.80136,
◆ id()
def aerisweather.responses.ObservationsResponse.ObservationsResponse.id |
( |
|
self, |
|
|
|
str |
|
) |
| |
Returns the id value of the observation station.
◆ ob()
def aerisweather.responses.ObservationsResponse.ObservationsResponse.ob |
( |
|
self, |
|
|
|
ObservationsData |
|
) |
| |
Returns an observation json object.
◆ obDateTime()
def aerisweather.responses.ObservationsResponse.ObservationsResponse.obDateTime |
( |
|
self | ) |
|
Returns a formatted string containing the timestamp of the observation.
◆ obTimestamp()
def aerisweather.responses.ObservationsResponse.ObservationsResponse.obTimestamp |
( |
|
self, |
|
|
|
int |
|
) |
| |
Returns an int (int handles long ints in Python v3) containing the timestamp of the observation.
◆ place()
def aerisweather.responses.ObservationsResponse.ObservationsResponse.place |
( |
|
self | ) |
|
◆ profile()
def aerisweather.responses.ObservationsResponse.ObservationsResponse.profile |
( |
|
self | ) |
|
◆ raw()
def aerisweather.responses.ObservationsResponse.ObservationsResponse.raw |
( |
|
self | ) |
|
Returns a json object containing the raw response data.
◆ relativeTo()
def aerisweather.responses.ObservationsResponse.ObservationsResponse.relativeTo |
( |
|
self, |
|
|
|
AerisRelativeTo |
|
) |
| |
◆ data [1/2]
dictionary aerisweather.responses.ObservationsResponse.ObservationsResponse.data = {} |
|
static |
◆ data [2/2]
aerisweather.responses.ObservationsResponse.ObservationsResponse.data |
The documentation for this class was generated from the following file: