Skip to content

Commit

Permalink
added API provider Awido
Browse files Browse the repository at this point in the history
  • Loading branch information
Sickbart committed Nov 6, 2024
1 parent 68b802e commit 087617e
Show file tree
Hide file tree
Showing 10 changed files with 815 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ iobroker add trashschedule
### **WORK IN PROGRESS**

* (@klein0r) Validate user inputs in instance configuration
* (Sickboy78) Added Awido as Webservice

### 3.3.0 (2024-04-28)

Expand Down
81 changes: 81 additions & 0 deletions admin/jsonConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
{
"label": "Webservice (abfall.io / Abfall+)",
"value": "api-abfallio"
},
{
"label": "Webservice (portal.awido.de / Awido)",
"value": "api-awido"
}
],
"default": "ical",
Expand Down Expand Up @@ -299,6 +303,83 @@
}
}
},
"_sourceApiAwido": {
"hidden": "data.source !== 'api-awido'",
"type": "panel",
"label": "Webservice (Awido)",
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAMFBMVEVHcEwQescWf8kXgMkWf8kVf8gVfskTfcgXgMkVf8gWf8kWf8kWf8kXgMkXf8kYgMmCJV0KAAAAD3RSTlMACorNYjsrF95PdKyf7bp36fl3AAAA3klEQVQokY1S2xbDIAhDxWu1/P/fDsFZbbed8aQEQogC/BnmF0b2O3jQRB8ckTh8P4WT7qiAVRko3lsTCa/tRWHkQmpEjg/IyQJwTvoe9ObjVlSwTbpKozZYZCFORw5JQcBZ7KlFyIkaylUkUF7scJI5dItyJrzpXlVtoY2j3MTdkew4/DXyMwXkuxzIxxQgGDsz7fTXwEJqaSHHg721V3lXk21RJ7x4Z9Wytsxx2t83HJZdC5h+dcqIakLYwaogu4aHI9xoE+h71ce2KO8tDI8vAmZ8vLDSPat+YFu8AARPDFBSjkzyAAAAAElFTkSuQmCC",
"items": {
"apiAwidoProvider": {
"type": "autocompleteSendTo",
"command": "getApiProviders",
"jsonData": "{\"source\": \"api-awido\"}",
"freeSolo": false,
"sm": 12,
"md": 6,
"lg": 6,
"label": "Provider"
},
"_apiAwidoLink": {
"type": "staticLink",
"href": "http://portal.awido.de/",
"label": "awido.com",
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAMFBMVEVHcEwQescWf8kXgMkWf8kVf8gVfskTfcgXgMkVf8gWf8kWf8kWf8kXgMkXf8kYgMmCJV0KAAAAD3RSTlMACorNYjsrF95PdKyf7bp36fl3AAAA3klEQVQokY1S2xbDIAhDxWu1/P/fDsFZbbed8aQEQogC/BnmF0b2O3jQRB8ckTh8P4WT7qiAVRko3lsTCa/tRWHkQmpEjg/IyQJwTvoe9ObjVlSwTbpKozZYZCFORw5JQcBZ7KlFyIkaylUkUF7scJI5dItyJrzpXlVtoY2j3MTdkew4/DXyMwXkuxzIxxQgGDsz7fTXwEJqaSHHg721V3lXk21RJ7x4Z9Wytsxx2t83HJZdC5h+dcqIakLYwaogu4aHI9xoE+h71ce2KO8tDI8vAmZ8vLDSPat+YFu8AARPDFBSjkzyAAAAAElFTkSuQmCC",
"button": true,
"variant": "contained",
"sm": 12,
"md": 6,
"lg": 6
},
"apiAwidoCityId": {
"newLine": true,
"hidden": "!data.apiAwidoProvider || data.apiAwidoProvider === 'err'",
"type": "autocompleteSendTo",
"command": "getApiCities",
"jsonData": "{\"source\": \"api-awido\", \"provider\": \"${data.apiAwidoProvider}\"}",
"freeSolo": false,
"alsoDependsOn": [
"apiAwidoProvider"
],
"sm": 12,
"md": 6,
"lg": 6,
"label": "City"
},
"apiAwidoStreetId": {
"newLine": true,
"hidden": "!data.apiAwidoProvider || data.apiAwidoProvider === 'err' || !data.apiAwidoCityId || data.apiAwidoCityId === 'err'",
"type": "autocompleteSendTo",
"command": "getApiStreets",
"jsonData": "{\"source\": \"api-awido\", \"provider\": \"${data.apiAwidoProvider}\", \"cityId\": \"${data.apiAwidoCityId}\"}",
"freeSolo": false,
"alsoDependsOn": [
"apiAwidoProvider",
"apiAwidoCityId"
],
"sm": 12,
"md": 6,
"lg": 6,
"label": "Street"
},
"_apiAwidoTypes": {
"hidden": "!data.apiAwidoProvider || data.apiAwidoProvider === 'err' || !data.apiAwidoCityId || data.apiAwidoCityId === 'err' || !data.apiAwidoStreetId || data.apiAwidoStreetId === 'err'",
"type": "textSendTo",
"container": "text",
"copyToClipboard": true,
"command": "getApiTypesText",
"jsonData": "{\"source\": \"api-awido\", \"provider\": \"${data.apiAwidoProvider}\", \"cityId\": \"${data.apiAwidoCityId}\", \"streetId\": \"${data.apiAwidoStreetId}\"}",
"alsoDependsOn": [
"apiAwidoProvider",
"apiAwidoCityId",
"apiAwidoStreetId"
],
"sm": 12,
"md": 6,
"lg": 6,
"label": "Available types"
}
}
},
"_advanced": {
"type": "panel",
"label": "trash types",
Expand Down
50 changes: 50 additions & 0 deletions docs/de/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,53 @@
- Weil der Stadt
- Weil im Schönbuch
- Weissach

## Awido.de
- LK Aichach Friedberg
- LK Altenkirchen
- LK Ansbach
- LK Aschaffenburg
- LK Bad Dürkheim
- LK Bad Tölz - Wolfratshausen
- LK Berchtesgadener Land
- Burbach
- LK Coburg
- LK Dachau
- LK Erding
- Fulda
- LK Fulda
- LK Fürstenfeldbruck
- LK Gießen
- LK Gotha
- LK Günzburg
- LK Haßberge
- LK Hersfeld Rotenburg
- Kaufbeuren
- LK Kelheim
- LK Kulmbach
- LK Kronach
- LK Lahn Dill
- Memmingen
- LK Mühldorf am Inn
- München Südost
- LK Neuburg Schrobenhausen
- LK Neustadt a.d. Waldnaab
- Nordschwaben
- Pullach
- Regensburg
- LK Regensburg
- LK Rems-Murr AöR
- LK Rosenheim
- LK Roth
- LK Rottal-Inn und Dingolfing-Landau
- LK Saale-Orla und Saalfeld-Rudolstadt
- LK Schweinfurt
- LK Südliche Weinstrasse
- LK Tirschenreuth
- LK Tübingen
- Unterhaching
- Unterschleißheim
- Allmannshofen [Kein Müll]
- Heretsried [Kein Müll]
- Tae Kwon Do Bruderschule Hyeonsil [Kein Müll]
- VDI Mittelrheinischer Bezirksverein [Kein Müll]
50 changes: 50 additions & 0 deletions docs/en/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,53 @@
- Weil der Stadt
- Weil im Schönbuch
- Weissach

## Awido.de
- LK Aichach Friedberg
- LK Altenkirchen
- LK Ansbach
- LK Aschaffenburg
- LK Bad Dürkheim
- LK Bad Tölz - Wolfratshausen
- LK Berchtesgadener Land
- Burbach
- LK Coburg
- LK Dachau
- LK Erding
- Fulda
- LK Fulda
- LK Fürstenfeldbruck
- LK Gießen
- LK Gotha
- LK Günzburg
- LK Haßberge
- LK Hersfeld Rotenburg
- Kaufbeuren
- LK Kelheim
- LK Kulmbach
- LK Kronach
- LK Lahn Dill
- Memmingen
- LK Mühldorf am Inn
- München Südost
- LK Neuburg Schrobenhausen
- LK Neustadt a.d. Waldnaab
- Nordschwaben
- Pullach
- Regensburg
- LK Regensburg
- LK Rems-Murr AöR
- LK Rosenheim
- LK Roth
- LK Rottal-Inn und Dingolfing-Landau
- LK Saale-Orla und Saalfeld-Rudolstadt
- LK Schweinfurt
- LK Südliche Weinstrasse
- LK Tirschenreuth
- LK Tübingen
- Unterhaching
- Unterschleißheim
- Allmannshofen [Kein Müll]
- Heretsried [Kein Müll]
- Tae Kwon Do Bruderschule Hyeonsil [Kein Müll]
- VDI Mittelrheinischer Bezirksverein [Kein Müll]
14 changes: 12 additions & 2 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@
"apiAbfallioDistrictId": "",
"apiAbfallioStreetId": "",
"apiAbfallioHouseNumber": "",
"apiAwidoProvider": "",
"apiAwidoCityId": "",
"apiAwidoStreetId": "",
"trashtypes": [
{
"name": "Restabfalltonne",
Expand Down Expand Up @@ -226,8 +229,15 @@
"name": "Weihnachtsbaum",
"match": "Weihnacht",
"exactmatch": false,
"hidewarnings": true,
"color": "#418338"
"color": "#418338",
"hidewarnings": true
},
{
"name": "Problemmüll",
"match": "Problem",
"exactmatch": false,
"color": "#785005",
"hidewarnings": true
}
]
},
Expand Down
Loading

0 comments on commit 087617e

Please sign in to comment.