Skip to content

Station name and ID returned attributes #1

@deepcoder

Description

@deepcoder

I'm sure there has to be a better way to accomplish this than what I show below. Neither the original or your code seem to return the name and ID of the reporting station. Since you can have multiple or need different stations if water temperature not reported at your nearest station. Recording the source of the data may be useful:

    attr["station_name"] = self._station.metadata['name']
    attr["station_id"] = self._station.metadata['id']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions