Open Rikkie80 opened 4 years ago
Will look into it!
Can you give an postcode and house number tot test with?
5503PN 15
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?
I couldn't find a API request either. And implementations for other projects use a scraper. Which is not an option for this sensor.
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
Any news?
No, didn't get any response...
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?
Is there any news on location Veldhoven?
@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.
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.
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.
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)?