pippyn / Home-Assistant-Sensor-Afvalbeheer

Provides Home Assistant sensors for multiple Dutch and Belgium waste collectors
Apache License 2.0
278 stars 86 forks source link

Can you add Veldhoven (Afvalinfo.nl) #58

Open Rikkie80 opened 4 years ago

Rikkie80 commented 4 years ago

I live in Veldhoven (postal codes 5500 - 5509) and the calendar is generated by Afvalinfo.nl. the api used by afvalinfo.nl seems to be almost similar to the ones you integrated already. Can this one be integrated as well (is available in the Afvalinfo integration, but I like your integration more)?

pippyn commented 4 years ago

Will look into it!

pippyn commented 4 years ago

Can you give an postcode and house number tot test with?

Rikkie80 commented 4 years ago

5503PN 15

basschipper commented 4 years ago

I had a look at this as well, but I can't find an api at all? The only useful thing I see here is the ical thing. In the ical thing there is a reference to the company that created afvalinfo.nl, maybe send them an email if an api is available?

pippyn commented 4 years ago

I couldn't find a API request either. And implementations for other projects use a scraper. Which is not an option for this sensor.

Rikkie80 commented 4 years ago

I sent a mail to afvalinfo.nl with the request for an API. Let's wait for the answer. Thanks for the effort thus far

pippyn commented 4 years ago

Any news?

Rikkie80 commented 4 years ago

No, didn't get any response...

basschipper commented 4 years ago

Looks like afvalinfo.nl is just a redirecting portal. I think you'll have more luck if you send an email to the creators of veldhoven.nl. Within the .ics file is a comment "CARE Internet Services//Sitebox CMS", maybe try to contact them?

De-Klump commented 1 year ago

Is there any news on location Veldhoven?

xirixiz commented 8 months ago

@pippyn It's quiet easy to add Veldhoven maybe. I didn't check your code for this, but I have this collector: https://github.com/xirixiz/homeassistant-afvalwijzer/blob/master/custom_components/afvalwijzer/collector/icalendar.py

Maybe you can do some good old copy paste work to make it work for your integration.

pippyn commented 8 months ago

Thanks @xirixiz, but if I read your code correctly it's more of a ics/ical scraper. Right? I'm not really a fan of that solution to be honest. I would rather use an API.

xirixiz commented 8 months ago

Yeah correct. I don't prefer that as well, but since someone added this for me, I was oke with it (not much effort). It's running for quiet some time already. If it breaks often or I need to make exotic solution for other "gemeenten", then I`ll remove it as well. Anyway, so far, so good.