Skip to content

Commit

Permalink
Change URLs to use the v2 Alpha Endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts authored Mar 10, 2024
1 parent 6648714 commit 28e4f2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/pirateweather/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ async def async_step_init(self, user_input=None):

async def _is_pw_api_online(hass, api_key, lat, lon):
forecastString = (
"https://api.pirateweather.net/forecast/"
"http://piratev2lb-a90c79daaddc2625.elb.us-east-1.amazonaws.com:8000/forecastv2/"
+ api_key
+ "/"
+ str(lat)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/pirateweather/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/alexander0042/pirate-weather-ha/issues",
"requirements": ["python-forecastio==1.4.0"],
"version": "1.4.4"
"version": "1.4.4-v2-endpoint"
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def _get_pw_weather(self):
"""Poll weather data from PW."""

forecastString = (
"https://api.pirateweather.net/forecast/"
"http://piratev2lb-a90c79daaddc2625.elb.us-east-1.amazonaws.com:8000/forecastv2/"
+ self._api_key
+ "/"
+ str(self.latitude)
Expand Down

0 comments on commit 28e4f2e

Please sign in to comment.