mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
1.06k stars 652 forks source link

[Source Request]: Ipswich UK #2373

Open garrathbond opened 3 months ago

garrathbond commented 3 months ago

Municipality / Region

ipswich/uk

Collection Calendar Webpage

?

Example Address

?

Collection Data Format

As ICS/ICAL file

Additional Information

?

garrathbond commented 3 months ago

https://app.ipswich.gov.uk/bin-collection/pdf/702

5ila5 commented 3 months ago

Looks like I'm geo-blocked from Germany, and it won't load at all when opening through tor with GB exit node

garrathbond commented 2 months ago

not sure what that means

5ila5 commented 2 months ago

I cannot look into this as my requests are all blocked as I sit in Germany, and they seem to block all traffic that does not come from the UK

garrathbond commented 2 months ago

it is the uk! ipswich UK

5ila5 commented 2 months ago

Yes and I cannot look into it as I get this when visiting the bin-collection page from my GERMAN internet connection image

So there is no good way for me to see what requests are done to get the bin collection dates. Someone with a VPN or someone from the UK can try to reverse engineer this, and it will work fine for everyone in the UK, but I'm currently not able to see the request and therefore to reverse engineer the needed requests

garrathbond commented 2 months ago

well that seems very strange to me guess its a council thing (bit surprising) recycling-calendar (1).pdf does this help

5ila5 commented 2 months ago

It's not that uncommon to be GEO-blocked from some UK and other non EU sites.

The PDF does not really help we do not parse PDFs we try to do the same web request the browser makes to get the dates shown on a webpage or to get an ICAL file (preferred but very rare for UK websites).

You can use the static source and add your dates/intervals manually

garrathbond commented 2 months ago

ok thats a shame do you mean by static source it just a calander entry no read from any web site?

5ila5 commented 2 months ago

Yes, you can manually define dates and frequencies which will show up in your calendar without any web requests

All details are here: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/static.md