mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 02:04:22 +01:00
Add support for grafikai.svara.lt (UAB Kauno švara)
This commit is contained in:
63
doc/source/grafikai_svara_lt.md
Normal file
63
doc/source/grafikai_svara_lt.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# Kauno švara
|
||||
|
||||
Support for schedules provided by [Kauno švara](https://svara.lt).
|
||||
|
||||
## Configuration via configuration.yaml
|
||||
|
||||
```yaml
|
||||
waste_collection_schedule:
|
||||
sources:
|
||||
- name: grafikai_svara_lt
|
||||
args:
|
||||
region: CITY
|
||||
street: STREET_NAME
|
||||
house_number: HOUSE_NUMBER
|
||||
district: DISTRICT
|
||||
waste_object_ids:
|
||||
- WASTE_OBJECT_ID
|
||||
```
|
||||
|
||||
### Configuration Variables
|
||||
|
||||
**region**<br>
|
||||
*(string) (required)*
|
||||
|
||||
**street**<br>
|
||||
*(string) (required)*
|
||||
|
||||
**house_number**<br>
|
||||
*(string) (required)*
|
||||
|
||||
**district**<br>
|
||||
*(string) (optional)*
|
||||
|
||||
**waste_object_ids**<br>
|
||||
*(list) (optional)*
|
||||
|
||||
## Example
|
||||
|
||||
```yaml
|
||||
waste_collection_schedule:
|
||||
sources:
|
||||
- name: grafikai_svara_lt
|
||||
args:
|
||||
region: Kauno m. sav.
|
||||
street: Demokratų g.
|
||||
house_number: 7
|
||||
district: DISTRICT
|
||||
waste_object_ids:
|
||||
- 101358
|
||||
- 100858
|
||||
- 100860
|
||||
```
|
||||
|
||||
## How to get the source arguments
|
||||
|
||||
Visit the [Grafikai](http://grafikai.svara.lt) page and search for your address. The arguments should exactly match the following table below. To include waste object id's at search results page, copy url from "Atsisiųsti" button and take "wasteObjectId" parameter.
|
||||
|
||||
| Parameter name in grafikai.svara.lt | Argument in yaml |
|
||||
|-------------------------------------|------------------|
|
||||
| Regionas | region |
|
||||
| Gatvė | street |
|
||||
| Namo nr. | house_number |
|
||||
| Seniūnija | district |
|
||||
Reference in New Issue
Block a user