Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing coordinates when retrieving public weather data. #15

Open
vlebourl opened this issue Mar 29, 2022 · 3 comments
Open

Missing coordinates when retrieving public weather data. #15

vlebourl opened this issue Mar 29, 2022 · 3 comments

Comments

@vlebourl
Copy link
Contributor

async def async_update_public_weather(self, area_id: str) -> None:

params should be set with the area coordinates. This seems to work:

    async def async_update_public_weather(self, area_id: str) -> None:
        """Retrieve status data from /getpublicdata"""
        params = {
            "lat_ne": self.public_weather_areas[area_id].location.lat_ne,
            "lon_ne": self.public_weather_areas[area_id].location.lon_ne,
            "lat_sw": self.public_weather_areas[area_id].location.lat_sw,
            "lon_sw": self.public_weather_areas[area_id].location.lon_sw,
            "filtering": ("true" if self.public_weather_areas[area_id].filtering else "false"),
        }
        await self._async_update_data(_GETPUBLIC_DATA, tag="body", params=params, area_id=area_id)
@vlebourl
Copy link
Contributor Author

With this fix, I don't get wind strength and gust strength anymore. Is that expected?
Cheers.

@cgtobi
Copy link
Owner

cgtobi commented Mar 29, 2022

No, that is a bug. Thanks for the fix. I'll look into it.

@cgtobi
Copy link
Owner

cgtobi commented Mar 29, 2022

Gust strength is disabled by default but can be enabled manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants