Comments (6)
fixed in #51
from hacs_waste_collection_schedule.
I did and it works great, thanks so much @gabsom! So convenient having thiis as part of HA, thank you!
from hacs_waste_collection_schedule.
+1, @sguermond , we'll need your help :) I did the digging but I'm not proficient with python (or Home Assistant development) so I won't be of much help coding here, but I figured out the issue.
looking at the code, you're using API calls from https://www.seattle.gov/UTIL/WARP/CollectionCalendar, however they are actually not returning the right information. for example, I used the Carmona Court street address from your test case (1127 17TH AVE E) and the WARP API returns different info than looking at it in the collection calendar.
This is the collection calendar:
I took a look at the API calls made by the collection calendar that would yield the right result and packed the fiddler file here. Essentially what happens is:
- find account ID for a given address
- get token (uses basic auth and the customerID = guest
-- subsequent requests include this bearer token in the headrs - get account summary
- get calendar
I wish I could help, but I think you have everything you need here.
from hacs_waste_collection_schedule.
I got the code working that pulls the right schedule - will try to clone repro and send a PR in a couple of dyas
from hacs_waste_collection_schedule.
@millercentral - did you update to the latest version? it's working great for me now, curious if it is for you as well.
from hacs_waste_collection_schedule.
@millercentral & @gabosom Thanks for catching that and fixing it so quickly! I found the API in another repo (https://github.com/mannkind/seattlewaste2mqtt) and did notice that it wasn't always returning correctly, but I was pretty stumped as to why.
I'll send in a request to the city to see what's up with the WARP API.
from hacs_waste_collection_schedule.
Related Issues (20)
- [Bug]: fetch failed for source Recycle! HOT 1
- [Bug]: Stadtreinigung Leipzig not working HOT 2
- [Bug]: adur_worthing_gov_uk has changed format of address HOT 1
- [Bug]: heilbronn _de isn’t working anymore HOT 7
- [Source Request]: Stadt und Landkreis Bamberg HOT 1
- [Source Request]: Staffordshire Moorlands, UK
- [Bug]: Abfallwirtschaftsbetrieb München doesn't fill the calendar with entries HOT 5
- [Bug]: Recycle BE - HTTP Error 401 Client Error: Unauthorized for url HOT 1
- [Source Request]: Wollondilly Shire Council (NSW, Australia) HOT 1
- Useless Request of a streetlist from muellmax.de HOT 1
- [Source Request]: Tunbridge Wells HOT 2
- [Bug]: recycleapp_be / fostplus.be api problems ? HOT 1
- [Source Request]: Request for Selby HOT 3
- [Bug]: oxford_gov_uk just reports a calendar as off and no dates for collections HOT 2
- [Bug]: Daten von Bonn Orange werden zwar im Kalender angezeigt, aber nicht mehr als Entität unterstütz HOT 13
- [Bug]: recycleapp_be.py access token no longer valid HOT 8
- [Source Request]: tonnenleerung.de HOT 3
- Stadtreinigung Hamburg stopped working[Bug]: HOT 2
- [Bug]: No Dates being pulled - Somerset HOT 2
- [Bug]: /waste_collection_schedule/wizard/abfallnavi_de.py missing SERVICE_DOMAINS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hacs_waste_collection_schedule.