Add source: Blaenau Gwent (#2688)

* script updated for blaenau Gwent

* iapp_itouchvision md updated

* update_doculinks run

* reformatting

---------

Co-authored-by: 5ila5 <38183212+5ila5@users.noreply.github.com>
This commit is contained in:
dt215git
2024-09-17 12:39:01 +01:00
committed by GitHub
parent 6730e7151a
commit 81d8428d64
5 changed files with 29 additions and 3 deletions

View File

@@ -1595,6 +1595,7 @@ If your service provider is not listed, feel free to open a [source request issu
- [Birmingham City Council](/doc/source/birmingham_gov_uk.md) / birmingham.gov.uk
- [Blackburn with Darwen Borough Council](/doc/source/blackburn_gov_uk.md) / blackburn.gov.uk
- [Blackpool Council](/doc/source/blackpool_gov_uk.md) / blackpool.gov.uk
- [Blaenau Gwent County Borough Council](/doc/source/iapp_itouchvision_com.md) / blaenau-gwent.gov.uk
- [Borough Council of King's Lynn & West Norfolk](/doc/source/west_norfolk_gov_uk.md) / west-norfolk.gov.uk
- [Borough of Broxbourne Council](/doc/source/broxbourne_gov_uk.md) / broxbourne.gov.uk
- [Bracknell Forest Council](/doc/source/bracknell_forest_gov_uk.md) / selfservice.mybfc.bracknell-forest.gov.uk

View File

@@ -10228,6 +10228,14 @@
"default_params": {},
"id": "blackpool_gov_uk"
},
{
"title": "Blaenau Gwent County Borough Council",
"module": "iapp_itouchvision_com",
"default_params": {
"municipality": "BLAENAU GWENT"
},
"id": "iapp_itouchvision_com"
},
{
"title": "Borough Council of King's Lynn & West Norfolk",
"module": "west_norfolk_gov_uk",

View File

@@ -21,7 +21,11 @@ DESCRIPTION = "Source for Itouchvision Source using the encrypted API."
URL = "https://www.itouchvision.com/"
TEST_CASES = {
"chiltern: 100080550517": {"uprn": 100080550517, "municipality": "BUCKINGHAMSHIRE"},
"newport: 100080550517": {"uprn": "10090955364", "municipality": "NEWPORT"},
"newport: 10090955364": {"uprn": "10090955364", "municipality": "NEWPORT"},
"blaenau gwent: 100100457787": {
"uprn": "100100457787",
"municipality": "BLAENAU GWENT",
},
}
COUNTRY = "uk"
@@ -35,6 +39,8 @@ ICON_MAP = {
"GARDEN WASTE": "mdi:flower",
"HOUSEHOLD WASTE": "mdi:trash-can",
"RECYCLING": "mdi:recycle",
"Recycling collection": "mdi:recycle",
"Refuse Bin": "mdi:trash-can",
}
# Global variables for encryption key and IV
@@ -81,9 +87,18 @@ MUNICIPALITIES: dict[str, Municipality] = {
"title": "Newport City Council",
"url": "https://www.newport.gov.uk/",
},
"BLAENAU GWENT": {
"PAYLOAD": {
"P_CLIENT_ID": 106,
"P_COUNCIL_ID": 35,
},
"API_URL": "https://iweb.itouchvision.com/portal/itouchvision/kmbd/collectionDay",
"title": "Blaenau Gwent County Borough Council",
"url": "https://www.blaenau-gwent.gov.uk/",
},
}
MUNICIPALITY_LITERALS = Literal["BUCKINGHAMSHIRE", "NEWPORT"]
MUNICIPALITY_LITERALS = Literal["BUCKINGHAMSHIRE", "NEWPORT", "BLAENAU GWENT"]
EXTRA_INFO = [
{

View File

@@ -22,8 +22,10 @@ waste_collection_schedule:
*(String) (required)*
supported are:
- BLAENAU GWENT
- BUCKINGHAMSHIRE
- CHILTERN
- NEWPORT
## Example

File diff suppressed because one or more lines are too long