Franck Nijhof c464056402
Making our website faster, cleaner and prettier (#9853)
* 🔥 Removes octopress.js

* 🔥 Removes use of root_url var

* 🔥 Removes Octopress generator reference from feed

* 🔥 Removes delicious support

* 🔥 Removes support for Pinboard

* 🔥 Removes support for Disqus

* 🔥 Removes support for Google Plus

* ↩️ Migrate custom after_footer to default template

* ↩️ Migrate custom footer to default template

* ↩️ Migrate custom header to default template

* 🔥 Removes unused template files

* 🚀 Places time to read directly in post template

* 🚀 Removes unneeded capture from archive_post.html template

* 🔥 🚀 Removes unused, but heaving sorting call in component page

* 🚀 Merged javascripts into a single file

* 🔥 Removes more uses of root_url

* 🚀 Removal of unneeded captures from head

* 🔥 🚀 Removal of expensive liquid HTML compressor

* 🔥 Removes unneeded templates

* 🚀 Replaces kramdown with GitHub's CommonMark 🚀

* 💄 Adds Prism code syntax highlighting

*  Adds support for redirect in Netlify

* ↩️ 🔥 Let Netlify handle all developer doc redirects

* ✏️ Fixes typo in redirects file: Netify -> Netlify

* 🔥 Removes unused .themes folder

* 🔥 Removes unused aside.html template

* 🔥 Removes Disqus config leftover

* 🔥 Removes rouge highlighter config

* 🔥 Removes Octopress 🎉

* 💄 Adjust code block font size and adds soft wraps

* 💄 Adds styling for inline code blocks

* 💄 Improve styling of note/warning/info boxes + div support

* 🔨 Rewrites all note/warning/info boxes
2019-07-15 22:17:54 +02:00

2.8 KiB

title, description, logo, ha_category, ha_iot_class, ha_release, redirect_from
title description logo ha_category ha_iot_class ha_release redirect_from
Washington State DOT Instructions on how to integrate WSDOT data into your home. wsdot.png
Transport
Cloud Polling 0.37
/components/sensor.wsdot/

The wsdot sensor will give you travel time information from the Washington State Department of Transportation (WSDOT).

Setup

First, you need to get a free Traveler Information api_key from the WSDOT API webpage. Just enter your email address to instantly get the key.

Configuration

Once you have the code, create wsdot sensors by editing your configuration.yaml file as follows:

# Example configuration.yaml entry
sensor:
  - platform: wsdot
    api_key: YOUR_API_KEY
    travel_time:
     - id: 95
       name: I-90 Eastbound HOV

{% configuration %} api_key: description: Your API key from WSDOT. required: true type: string travel_time: description: List of routes. required: true type: list keys: id: description: ID of the route. required: true type: string name: description: Name of the route. required: false default: Just uses id type: string {% endconfiguration %}

Figuring out which Travel Time ID (id) is associated with your routes is a bit of a challenge. If you visit http://wsdot.com/Traffic/api/TravelTimes/TravelTimesREST.svc/GetTravelTimesAsJson?AccessCode=[your_api_key_here] substituting your api_key, you will get a list of all available routes. Search through it and then find the key TravelTimeID. That tells you the number you need.

Some common examples include:

 73 Issaquah-Seattle (WB PM)
 74 Seattle-Issaquah (EB AM)
 75 HOV Issaquah-Seattle (WB REV)
 76 Issaquah-Seattle (WB REV)
 77 HOV Redmond-Seattle (WB PM)
 78 HOV Seattle-Redmond (EB AM)
 79 Redmond-Seattle (WB PM)
 80 Seattle-Redmond (EB AM)
 81 HOV Redmond-Seattle via I-90 (WB PM)
 82 HOV Seattle-Redmond via I-90 (EB AM)
 83 Redmond-Seattle via I-90 (WB PM)
 84 Seattle-Redmond via I-90 (EB AM)
 85 HOV Redmond-Seattle via I-90 (WB REV)
 86 Redmond-Seattle via I-90 (WB REV)
 89 Bellevue-Seattle via 520 (WB PM)
 90 HOV Bellevue-Seattle via 520 (WB PM)
 91 HOV Seattle-Bellevue via 520 (EB AM)
 92 Seattle-Bellevue via 520 (EB AM)
 93 Bellevue-Seattle via I-90 (WB PM)
 94 HOV Bellevue-Seattle via I-90 (WB PM)
 95 HOV Seattle-Bellevue via I-90 (EB AM)
 96 Seattle-Bellevue via I-90 (EB AM)
 97 Bellevue-Seattle via I-90 (WB REV)
 98 HOV Bellevue-Seattle via I-90 (WB REV)
WSDOT does provide information about ferry schedules, mountain passes, tolls, etc. but so far only Travel Time data is available in this platform.

Here's an example of the sensor in use: