Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 2.76 KB

affaldonline_dk.md

File metadata and controls

73 lines (52 loc) · 2.76 KB

Affaldonline

Support for schedules from Affaldonline, which serves several Danish municipalities.

The layout of the response page may differ. There seems to be a default, but I've stumpled upon at least a few uniques.

Configuration via configuration.yaml

waste_collection_schedule:
    sources:
        - name: affaldonline_dk
          args:
              municipality: "favrskov"
              values: "Nørregade|1||||8382|Hinnerup|6443|108156|0"

Configuration Variables

municipality
(String) (required)

An affaldonline defined string for the municipality. I.e. "aeroe" for "Ærø".

A duckduckgo search revealed many of them:

values
(String) (required)

A string that includes the street name, house number, postal code, city name, and some numbers that seems to be internal affaldonline references.

How to find the "values" string to use

Go to the Affaldonline site for your municipality:

Open the developer console in your browser.

Enter your address and select the house number in the dropdown menu.

In the Network tab in the browser console, select the latest URL ending in showInfo.php and look under Payload, where you should find the values variable ready for copy/paste.

Depending on your browser, it should also be possible to right-click the house number field, and select "Inspect" - this should give you the html for the field, and here you can select the value from your house number in the list.

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 affaldonline are often long and not very consistent.

waste_collection_schedule:
    sources:
        - name: affaldonline_dk
          args:
              municipality: "favrskov"
              values: "Nørregade|1||||8382|Hinnerup|6443|108156|0"
          customize:
              - type: "Plast/mad- og drikkekartoner og glas/metal"
                alias: "Plast/glas/metal"