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

[Bug]: Unable to fetch collection schedule for whittlesea_vic_gov_au (Website redesign. API has been changed.) #2324

Closed
5 of 7 tasks
EthanBezz opened this issue Jul 23, 2024 · 2 comments

Comments

@EthanBezz
Copy link
Contributor

I Have A Problem With:

A specific source

What's Your Problem

It seems that Whittlesea Council have just launched a major redesign of their website and, with it, changed the API for the bin collection schedule.

Links to compare old vs new website:
https://web.archive.org/web/20240722085426/https://www.whittlesea.vic.gov.au/
https://www.whittlesea.vic.gov.au/

Links to compare old vs new API: (Using the address of the Whittlesea Council building)
https://www.whittlesea.vic.gov.au/umbraco/api/vicmap/GetAddressResultsUsingArcGis/?address=25+Ferres+Boulevard+South+Morang+3752
https://www.whittlesea.vic.gov.au/ocapi/Public/myarea/wasteservices?geolocationid=2622da61-0678-4bf0-b551-3543b8780b9c&ocsvclang=en-AU&pageLink=/$b9015858-988c-48a4-9473-7c193df083e4$/My-Neighbourhood

Source (if relevant)

whittlesea_vic_gov_au

Logs

fetch failed for source Whittlesea City Council: Traceback (most recent call last): File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source_shell.py", line 145, in fetch entries = self._source.fetch() ^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/waste_collection_schedule/waste_collection_schedule/source/whittlesea_vic_gov_au.py", line 63, in fetch r.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://www.whittlesea.vic.gov.au/umbraco/api/vicmap/GetAddressResultsUsingArcGis/?address=25+Ferres+Boulevard+South+Morang+3752

Relevant Configuration

No response

Checklist Source Error

  • Use the example parameters for your source (often available in the documentation) (don't forget to restart Home Assistant after changing the configuration)
  • Checked that the website of your service provider is still working
  • Tested my attributes on the service provider website (if possible)
  • I have tested with the latest version of the integration (master) (for HACS in the 3 dot menu of the integration click on "Redownload" and choose master as version)

Checklist Sensor Error

  • Checked in the Home Assistant Calendar tab if the event names match the types names (if types argument is used)

Required

  • I have searched past (closed AND opened) issues to see if this bug has already been reported, and it hasn't been.
  • I understand that people give their precious time for free, and thus I've done my very best to make this problem as easy as possible to investigate.
@EthanBezz EthanBezz changed the title [Bug]: Unable to fetch collection schedule for whittlesea_vic_gov_au (Website redesign. Different API.) [Bug]: Unable to fetch collection schedule for whittlesea_vic_gov_au (Website redesign. API has been changed.) Jul 23, 2024
@EthanBezz
Copy link
Contributor Author

I've created pull request #2326 which updates whittlesea_vic_gov_au to use the OpenCities API, and also updates the documentation the reflect changes to the configuration, which are breaking changes.

@5ila5
Copy link
Collaborator

5ila5 commented Jul 26, 2024

fixed by #2326

This will be part of the next release or is available now as master (git) version (3-dot menu -> redownload -> change version to master -> fully restart HA (this will increase update cycle by a lot)

@5ila5 5ila5 closed this as completed Jul 26, 2024
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