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:
Phil
2024-08-24 23:02:27 +12:00
committed by GitHub
parent d7183227d0
commit 92b848b9b4
6 changed files with 210 additions and 1 deletions

View 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
```