Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 2.73 KB

renoweb_dk.md

File metadata and controls

83 lines (59 loc) · 2.73 KB

Renoweb

Support for schedules provided by Sweco's RenoWeb, serving many Danish municipalities.

Configuration via configuration.yaml

waste_collection_schedule:
    sources:
        - name: renoweb_dk
          args:
              municipality: MUNICIPALITY
              address: ADDRESS
              address_id: ADDRESS_ID

Configuration Variables

municipality
(String) (required)

The name of the municipality as it appears in the URL. E.g. https://htk.renoweb.dk/Legacy/selvbetjening/mit_affald.aspx where "htk" is for Høje-Taastrup municipality.

address (String) (optional)

The address to look up. It should be exactly as it is on the website until the comma between the street address and the postal code.

address_id (Int) (optional)

Use address_id if the address lookup fails.

Note that while both address and address_id are optional, one of them must be supplied and if both are used, address_id will take precedence.

include_ordered_pickup_entries (Bool) (optional)

Whether to include entries that are not collected automatically but should be ordered for pickup (has 'afhentningsbestillingmateriel' = True).

Example

waste_collection_schedule:
    sources:
        - name: renoweb_dk
          args:
              municipality: frederiksberg
              address: "Roskildevej 40"
          customize:
              - type: "Haveaffald - Haveaffald henteordning (1 stk.)"
                alias: "Haveaffald"

How to find the address_id

Go to the RenoWeb site for your municipality, e.g. https://htk.renoweb.dk/Legacy/selvbetjening/mit_affald.aspx if you are lucky enough to live in Høje-Taastrup.

Open the developer console in your browser.

Enter your address and select it in the dropdown menu. (Note that the Ejd.nr. in the dropdown is not the ID we are looking for).

In the Network tab in the browser console, find the latest URL ending in Adresse_SearchByString and look in under Response, where you should see a chunk of JSON-ish data. The ID you need to use for adress_id is in the "value" field.

d: '{"list":[{"value":"45149","label":"Rådhusstræde 1, 2630 Taastrup (Ejd.nr. 186783)"}],"status":{"id":0,"status":"Ok","msg":""}}'

Customizing Waste Types

Customizing waste types is a feature of the Waste Collection Schedule component and is very useful here, since the waste types in RenoWeb are often long and not very consistent.

waste_collection_schedule:
    sources:
        - name: renoweb_dk
          args:
              municipality: frederiksberg
              address: "Roskildevej 40"
          customize:
              - type: "Haveaffald - Haveaffald henteordning (1 stk.)"
                alias: "Haveaffald"