mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 04:06:03 +01:00
Added source for Napier City Council NZ (#2532)
* Added source for Napier City Council NZ * Correctly determine the collection type * reformatting --------- Co-authored-by: Phil Gale <phil.gale@re-leased.com> Co-authored-by: 5ila5 <5ila5@users.noreply.github.com>
This commit is contained in:
36
doc/source/napier_govt_nz.md
Normal file
36
doc/source/napier_govt_nz.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# Napier City Council
|
||||
|
||||
[Source URL](https://www.napier.govt.nz/services/rubbish-and-recycling/collection-days/)
|
||||
|
||||
[API URL](https://data.napier.govt.nz/regional/ncc/widgets/collectiondays/do_collectiondays.php)
|
||||
|
||||
This source provides waste collection schedules for Napier City Council. It uses the Napier Council's API's to fetch waste collection schedules based on the provided address.
|
||||
|
||||
## Configuration via `configuration.yaml`
|
||||
|
||||
To configure the source, add the following to your `configuration.yaml` file:
|
||||
|
||||
```yaml
|
||||
waste_collection_schedule:
|
||||
sources:
|
||||
- name: napier_govt_nz
|
||||
args:
|
||||
address: UNIQUE_ADDRESS
|
||||
```
|
||||
|
||||
## Configuration Variables
|
||||
|
||||
**address** (string) (required)
|
||||
The address for which you want to retrieve the waste collection schedule.
|
||||
|
||||
## Example
|
||||
|
||||
An example configuration:
|
||||
|
||||
```yaml
|
||||
waste_collection_schedule:
|
||||
sources:
|
||||
- name: napier_govt_nz
|
||||
args:
|
||||
address: 4 Sheehan Street
|
||||
```
|
||||
Reference in New Issue
Block a user