mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 02:04:22 +01:00
refactor wollongongwaste_com_au
This commit is contained in:
@@ -14,42 +14,34 @@ waste_collection_schedule:
|
||||
|
||||
### Configuration Variables
|
||||
|
||||
### Configuration Variables
|
||||
|
||||
**propertyID**<br>
|
||||
**propertyID**
|
||||
*(string) (mandatory)*
|
||||
|
||||
This is required.
|
||||
### How to find your propertyID
|
||||
|
||||
Go to <https://wollongong.waste-info.com.au/api/v1/localities.json>
|
||||
amd get the locality ID from the above json.
|
||||
|
||||
#### How to find your `propertyID`
|
||||
Add it as `locality=<id>` to the Street query,
|
||||
e.g.: <https://wollongong.waste-info.com.au/api/v1/streets.json?locality=19>
|
||||
Get the street ID from the above json.
|
||||
|
||||
Get your locality.
|
||||
|
||||
https://wollongong.waste-info.com.au/api/v1/localities.json
|
||||
get the locality ID from the above json.
|
||||
|
||||
Add it as locality=<id> to the Street query
|
||||
eg: https://wollongong.waste-info.com.au/api/v1/streets.json?locality=19
|
||||
Get the street ID from the above json
|
||||
|
||||
Add it as street=<id> to the property query
|
||||
eg: https://wollongong.waste-info.com.au/api/v1/properties.json?street=663
|
||||
get the property ID from the above json.
|
||||
Add it as `street=<id>` to the property query,
|
||||
e.g.: <https://wollongong.waste-info.com.au/api/v1/properties.json?street=663>
|
||||
Get the property ID from the above json.
|
||||
|
||||
This is your propertyID
|
||||
|
||||
This is all you need to directly query your calendar json in future, you can skip all the above steps once you know your property ID
|
||||
|
||||
You could also use [Waste Calendar](https://www.wollongongwaste.com.au/calendar/) with developer tools open on the Network tab, look up your address, and make note of the filename in the last request. It will be in the format <propertyID>.json
|
||||
eg: https://wollongong.waste-info.com.au/api/v1/properties/21444.json?start=2022-12-31T13:00:00.000Z&end=2023-12-30T13:00:00.000Z
|
||||
You could also use [Waste Calendar](https://www.wollongongwaste.com.au/calendar/) with developer tools open on the Network tab, look up your address, and make note of the filename in the last request. It will be in the format `<propertyID>.json`, e.g.: <https://wollongong.waste-info.com.au/api/v1/properties/21444.json?start=2022-12-31T13:00:00.000Z&end=2023-12-30T13:00:00.000Z>
|
||||
|
||||
## Example
|
||||
|
||||
## Example using UPRN
|
||||
```yaml
|
||||
waste_collection_schedule:
|
||||
sources:
|
||||
- name: wollongongwaste_com_au
|
||||
args:
|
||||
uprn: 21444
|
||||
sources:
|
||||
- name: wollongongwaste_com_au
|
||||
args:
|
||||
propertyID: 21444
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user