Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.43 KB

File metadata and controls

41 lines (30 loc) · 1.43 KB

City of Oklahoma City (Unofficial Server)

Note: This source now uses an unofficial server to get the data. The official server is no longer available as they use scraping protection now.

Support for schedules provided by City of Oklahoma City, serving City of Oklahoma City.

Configuration via configuration.yaml

waste_collection_schedule:
    sources:
    - name: okc_gov
      args:
        objectID: UNIQUE_PROPERTY_IDENTIFIER

Configuration Variables

objectID
(string) (required)

try_offical
(boolean) (optional|DEFAULT=False)
If set to True, the official server will be used. This probably won't work as they use scraping protection now.

Example

waste_collection_schedule:
    sources:
    - name: okc_gov
      args:
        objectID: "1781151"

How to find your objectID

Using a browser, go to data.okc.gov. Click on the Map tab, search for your address, then click on your house. Your schedule will be displayed. Click on the Table tab, then click on the Filter By Map menu item, and click Apply to reduce the number of items being displayed. Note: In the previous step, the more you zoom in on your house, the better this filter works. Find your address in the filtered list and make a note of the Object ID number in the first column. This is the number you need to use.