* add impact apps source * fix: reduce duplication in collection creation * refactor: split location finding from source class * refactor: move url params to requests params object * style: fix formatting * fix: do not filter for unknown events * fix: add default params for council selection * reformatting --------- Co-authored-by: 5ila5 <5ila5@users.noreply.github.com> Co-authored-by: 5ila5 <38183212+5ila5@users.noreply.github.com>
2.6 KiB
Impact Apps
Support for schedules provided by impactapps.com.au. ImpactApps are the creators of the platform used by several councils in Australia to provide waste collection schedules. The API is hosted as a subdomain of waste-info.com.au for each council.
Some of the supported councils are available at calendars.impactapps.com.au, however, not all councils are listed there.
Configuration via configuration.yaml
waste_collection_schedule:
sources:
- name: impactapps_com_au
args:
service: COUNCIL_NAME or API URL
property_id: PROPERTY_ID
suburb: SUBURB
street_name: STREET_NAME
street_number: STREET_NUMBER
Configuration Variables
service (string) (required)
The service can be provided in 1 of 3 different ways:
- Use one of the following known councils:
Baw Baw Shire CouncilBayside City CouncilBlue Mountains City CouncilBega Valley Shire CouncilBurwood City CouncilCowra CouncilForbes Shire CouncilGwydir Shire CouncilLithgow City CouncilLivingstone Shire CouncilLoddon Shire CouncilMoira Shire CouncilMoree Plains Shire CouncilPenrith City CouncilPort Macquarie Hastings CouncilQueanbeyan-Palerang Regional CouncilSingleton CouncilSnowy Valleys CouncilSouth Burnett Regional CouncilWellington Shire Council
- Provide the api url for the council. For example:
https://baw-baw.waste-info.com.auhttps://bayside.waste-info.com.au
- Provide the council component of the url. For example:
baw-bawbayside
property_id
(integer) (optional)
The property id can be found by inspecting the network traffic when using the council's website to find the schedule.
OR
suburb
(string) (optional)
It must match the suburb of the address available via the calendar provided on the council's website.
street_name
(string) (optional)
It must match the street name of the address available via the calendar provided on the council's website.
street_number
(string) (optional)
It must match the street number of the address available via the calendar provided on the council's website.
Example
waste_collection_schedule:
sources:
- name: impactapps_com_au
args:
service: "Penrith City Council"
suburb: "Emu Plains"
street_name: "Beach Street"
street_number: "3"