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

@@ -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 = [
{