<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://wiki.fhem.de/w/index.php?action=history&amp;feed=atom&amp;title=Verkehrslage</id>
	<title>Verkehrslage - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.fhem.de/w/index.php?action=history&amp;feed=atom&amp;title=Verkehrslage"/>
	<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;action=history"/>
	<updated>2026-04-09T05:07:31Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in FHEMWiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=19453&amp;oldid=prev</id>
		<title>Amenophis86: Hinweis auf das Modul TRAFFIC eingebaut.</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=19453&amp;oldid=prev"/>
		<updated>2017-02-05T13:58:40Z</updated>

		<summary type="html">&lt;p&gt;Hinweis auf das Modul TRAFFIC eingebaut.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 5. Februar 2017, 15:58 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Hier wird ein Device erstellt um sich die [[Verkehrslage]] einer bestimmten Strecke anzeigen zu lassen. Das ganze beruht auf dem Modul [[HTTPMOD]].  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Hier wird ein Device erstellt um sich die [[Verkehrslage]] einer bestimmten Strecke anzeigen zu lassen. Das ganze beruht auf dem Modul [[HTTPMOD]].  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Hinweis|Inzwischen gibt es das Modul [[TRAFFIC]], welches die hier genannte Funktion bereits implementiert hat.}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Zielsetzung ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Zielsetzung ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key c1fhemwiki:diff:1.41:old-15896:rev-19453:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Amenophis86</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=15896&amp;oldid=prev</id>
		<title>Reibuehl: Fehlerbehebung nach Meldung im Forum</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=15896&amp;oldid=prev"/>
		<updated>2016-07-25T13:42:00Z</updated>

		<summary type="html">&lt;p&gt;Fehlerbehebung nach Meldung im Forum&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 25. Juli 2016, 15:42 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l100&quot;&gt;Zeile 100:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 100:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Berechnung der Werte für die spätere Anzeige ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Berechnung der Werte für die spätere Anzeige ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Damit die Werte später User freundlich angezeigt werden, lassen wir sie von FHEM berechnen:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Damit die Werte später User freundlich angezeigt werden, lassen wir sie von FHEM berechnen:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI userReadings duration_hr {strftime &quot;%H:%M&quot;, gmtime( int( ReadingsVal(&quot;$name&quot;,&quot;duration&quot;,0) /60+0.5)*60 );}, duration_in_traffic_hr {strftime &quot;%H:%M&quot;, gmtime( int( ReadingsVal(&quot;$name&quot;,&quot;duration_in_traffic&quot;,0) /60+0.5)*60 );}, distance_hr&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:distance &lt;/del&gt;{int( ReadingsVal(&quot;$name&quot;,&quot;distance&quot;,0) /1000+0.5);}, duration_diff {int((ReadingsVal(&quot;$name&quot;,&quot;duration_in_traffic&quot;,0)-ReadingsVal(&quot;$name&quot;,&quot;duration&quot;,0))/60+0.5);}, duration_diff_hr {my $diff=int((ReadingsVal(&quot;$name&quot;,&quot;duration_in_traffic&quot;,0)-ReadingsVal(&quot;$name&quot;,&quot;duration&quot;,0))/60+0.5); return &quot;+&quot;.$diff if ($diff&amp;gt;0); return &quot;+0&quot;;} &amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI userReadings duration_hr {strftime &quot;%H:%M&quot;, gmtime( int( ReadingsVal(&quot;$name&quot;,&quot;duration&quot;,0) /60+0.5)*60 );}, duration_in_traffic_hr {strftime &quot;%H:%M&quot;, gmtime( int( ReadingsVal(&quot;$name&quot;,&quot;duration_in_traffic&quot;,0) /60+0.5)*60 );}, distance_hr {int( ReadingsVal(&quot;$name&quot;,&quot;distance&quot;,0) /1000+0.5);}, duration_diff {int((ReadingsVal(&quot;$name&quot;,&quot;duration_in_traffic&quot;,0)-ReadingsVal(&quot;$name&quot;,&quot;duration&quot;,0))/60+0.5);}, duration_diff_hr {my $diff=int((ReadingsVal(&quot;$name&quot;,&quot;duration_in_traffic&quot;,0)-ReadingsVal(&quot;$name&quot;,&quot;duration&quot;,0))/60+0.5); return &quot;+&quot;.$diff if ($diff&amp;gt;0); return &quot;+0&quot;;} &amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== State Anzeige ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== State Anzeige ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Reibuehl</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=15797&amp;oldid=prev</id>
		<title>Kaihs: /* Startort */</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=15797&amp;oldid=prev"/>
		<updated>2016-07-05T20:05:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Startort&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 5. Juli 2016, 22:05 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l93&quot;&gt;Zeile 93:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 93:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Startort ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Startort ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Den Startort greifen wir mit den Attributen:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Den Startort greifen wir mit den Attributen:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;reading06Name &lt;/del&gt;origin_addresses   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;reading05Name &lt;/ins&gt;origin_addresses   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;attr Verkehr.FFM.GI &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;reading06Regex &lt;/del&gt;&quot;origin_addresses&quot;\s*:\s*\[\s*&quot;([\w\s.,-:üöäß(\)]+)&quot;\s*\]   &amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;attr Verkehr.FFM.GI &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;reading05Regex &lt;/ins&gt;&quot;origin_addresses&quot;\s*:\s*\[\s*&quot;([\w\s.,-:üöäß(\)]+)&quot;\s*\]   &amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Unser Reading wird später &amp;quot;origin_addresses&amp;quot; heißen und uns den Zielort angeben.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Unser Reading wird später &amp;quot;origin_addresses&amp;quot; heißen und uns den Zielort angeben.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kaihs</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=15796&amp;oldid=prev</id>
		<title>Kaihs: Doppelten Abschnitt Startort gelöscht</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=15796&amp;oldid=prev"/>
		<updated>2016-07-05T20:04:30Z</updated>

		<summary type="html">&lt;p&gt;Doppelten Abschnitt Startort gelöscht&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 5. Juli 2016, 22:04 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l90&quot;&gt;Zeile 90:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 90:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Unser Reading wird später &amp;quot;destination_addresses&amp;quot; heißen und uns den Zielort angeben.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Unser Reading wird später &amp;quot;destination_addresses&amp;quot; heißen und uns den Zielort angeben.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==== Startort ====&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Den Startort greifen wir mit den Attributen: &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI reading05Name origin_addresses  &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;attr Verkehr.FFM.GI reading05Regex &quot;origin_addresses&quot;\s*:\s*\[\s*&quot;([\w\s.,-:üöäß(\)]+)&quot;\s*\]   &amp;lt;/pre&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Unser Reading wird später &quot;origin_addresses&quot; heißen und uns den Zielort angeben.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Startort ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Startort ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kaihs</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=15795&amp;oldid=prev</id>
		<title>Kaihs: /* Definieren des Device */</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=15795&amp;oldid=prev"/>
		<updated>2016-07-05T19:57:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Definieren des Device&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 5. Juli 2016, 21:57 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Zeile 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wir geben also folgendes in unsere Kommandozeile ein:  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Wir geben also folgendes in unsere Kommandozeile ein:  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;define Verkehr HTTPMOD Link 3600&amp;lt;/pre&amp;gt;  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;define Verkehr&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.FFM.GI &lt;/ins&gt;HTTPMOD Link 3600&amp;lt;/pre&amp;gt;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;in unserem Beispiel also:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;in unserem Beispiel also:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;define Verkehr HTTPMOD https://maps.googleapis.com/maps/api/distancematrix/json?origins=Frankfurt,Friedberger%20Stra%C3%9Fe%20291&amp;amp;destinations=Gie%C3%9Fen,%20Schiffenberger%20Weg%20115&amp;amp;mode=driving&amp;amp;language=de-DE&amp;amp;departure_time=now&amp;amp;key=APIKEY 3600&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;define Verkehr&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.FFM.GI &lt;/ins&gt;HTTPMOD https://maps.googleapis.com/maps/api/distancematrix/json?origins=Frankfurt,Friedberger%20Stra%C3%9Fe%20291&amp;amp;destinations=Gie%C3%9Fen,%20Schiffenberger%20Weg%20115&amp;amp;mode=driving&amp;amp;language=de-DE&amp;amp;departure_time=now&amp;amp;key=APIKEY 3600&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Die Zahl am Ende bestimmt die Häufigkeit der Abfrage in Sekunden. In unserem Fall also einmal die Stunde.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Die Zahl am Ende bestimmt die Häufigkeit der Abfrage in Sekunden. In unserem Fall also einmal die Stunde.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Anlegen der Attribute ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Anlegen der Attribute ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kaihs</name></author>
	</entry>
	<entry>
		<id>http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=14626&amp;oldid=prev</id>
		<title>Amenophis86: Erstellen der Seite</title>
		<link rel="alternate" type="text/html" href="http://wiki.fhem.de/w/index.php?title=Verkehrslage&amp;diff=14626&amp;oldid=prev"/>
		<updated>2016-03-10T03:25:41Z</updated>

		<summary type="html">&lt;p&gt;Erstellen der Seite&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Hier wird ein Device erstellt um sich die [[Verkehrslage]] einer bestimmten Strecke anzeigen zu lassen. Das ganze beruht auf dem Modul [[HTTPMOD]]. &lt;br /&gt;
&lt;br /&gt;
== Zielsetzung ==&lt;br /&gt;
Ziel ist es, dass ein Dummy die aktuelle Verkehrslage für einen bestimmten Weg anzeigt und sich regelmäßig aktualisiert.  &lt;br /&gt;
&lt;br /&gt;
== Vorraussetzungen ==&lt;br /&gt;
Benötigt wird das Modul [[HTTPMOD]], welches standardmäßig installiert ist. Weiterhin wird ein Google Account benötigt und ein API Key um auf die Daten der Google Verkehrslage zuzugreifen. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== API Key von Google beziehen ==&lt;br /&gt;
Der Google API Key ist ein Schlüssel, welcher uns berechtigt Daten von Google zu erhalten. Google hat verschiedene Programme, welche über eine API Schnittstelle zur Verfügung gestellt werden. Damit nicht jeder einfach auf diese Daten zugreifen kann, wird der Key benötigt. Um diesen zu bekommen müsst ihr als aller erstes einen Google Account erstellen auf www.google.de &lt;br /&gt;
&lt;br /&gt;
Sobald ihr dies habt, müssen wir in die Developer Console. Grund ist, dass der Zugriff auf die Daten eigentlich für Entwickler ist. Dorthin gelang ihr über diesen [https://console.developers.google.com/start?hl=de Link]. &lt;br /&gt;
&lt;br /&gt;
Als nächstes müsst ihr oben Links auf &amp;quot;Google APIs verwenden&amp;quot; klicken und ein neues Projekt erstellen, wenn ihr noch keins habt.&lt;br /&gt;
&lt;br /&gt;
Jetzt in der Übersicht beim Reiter &amp;quot;Google APIs&amp;quot; unter Google Maps API &amp;quot;Google Maps Distance Matrix API&amp;quot; auswählen und dort auf den blauen Button &amp;quot;Enable&amp;quot; klicken.  &lt;br /&gt;
&lt;br /&gt;
Unter dem Reiter &amp;quot;Nutzung&amp;quot; könnt ihr später die Häufigkeit eurer Zugriffe anzeigen lassen. Unter dem Reiter &amp;quot;Kontingente&amp;quot; seht ihr, wie viele Zugriffe ihr an diesem Tag noch tätigen könnt. Insgesamt sind 2500 Zugriffe pro Tag erlaubt. Das sind etwa 1,7 Zugriffe pro Minute. So viele sollte man eigentlich nicht brauchen. &lt;br /&gt;
&lt;br /&gt;
Auf der linken Seite unter &amp;quot;Zugangsdaten&amp;quot; kann man sich nun auch seinen Key anzeigen lassen. Diesen werden wir später für die Zugriffe benötigen. &lt;br /&gt;
&lt;br /&gt;
== Link für das Modul erstellen ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;https://maps.googleapis.com/maps/api/distancematrix/json?origins=ORT,STRASSE+NR&amp;amp;destinations=ORT,STRASSE+NR&amp;amp;mode=driving&amp;amp;language=de-DE&amp;amp;departure_time=now&amp;amp;key=APIKEY&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Den Link müssen wir mit unseren eigenen Angaben ergänzen. Starten wir zB in Frankfurt an der Friedberger Straße 291 und wollen nach Gießen in die Straße Schiffenberger Weg 115 sieht unser Link wie folgt aus:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;https://maps.googleapis.com/maps/api/distancematrix/json?origins=Frankfurt,Friedberger%20Stra%C3%9Fe%20291&amp;amp;destinations=Gie%C3%9Fen,%20Schiffenberger%20Weg%20115&amp;amp;mode=driving&amp;amp;language=de-DE&amp;amp;departure_time=now&amp;amp;key=APIKEY&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Es empfiehlt sich den Link einmal in die Browserzeile einzugeben. Dann muss auch nicht auf Leerzeichen geachtet werden und Google formatiert ihn uns automatisch, wie wir ihn brauchen. Übrigens seht ihr dann auch, wie die Seite aussieht, auf welche wir später mit dem HTTPMOD Modul zugreifen werden. &lt;br /&gt;
&lt;br /&gt;
== HTTPMOD Einrichtung ==&lt;br /&gt;
&lt;br /&gt;
=== Definieren des Device ===&lt;br /&gt;
Wenn wir nun unseren Google API Key und den Link haben, müssen wir ein neues Device mittels des [[HTTPMOD]] Moduls anlegen. In unserem Beispiel werden wir es wie folgt nennen: Verkehr.FFM.GI Verkehr für die Übersicht, FFM, weil wir ins Frankfurt am Main starten werden und GI, weil wir in Gießen enden. &lt;br /&gt;
&lt;br /&gt;
Wir geben also folgendes in unsere Kommandozeile ein: &lt;br /&gt;
&amp;lt;pre&amp;gt;define Verkehr HTTPMOD Link 3600&amp;lt;/pre&amp;gt; &lt;br /&gt;
in unserem Beispiel also:&lt;br /&gt;
&amp;lt;pre&amp;gt;define Verkehr HTTPMOD https://maps.googleapis.com/maps/api/distancematrix/json?origins=Frankfurt,Friedberger%20Stra%C3%9Fe%20291&amp;amp;destinations=Gie%C3%9Fen,%20Schiffenberger%20Weg%20115&amp;amp;mode=driving&amp;amp;language=de-DE&amp;amp;departure_time=now&amp;amp;key=APIKEY 3600&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Die Zahl am Ende bestimmt die Häufigkeit der Abfrage in Sekunden. In unserem Fall also einmal die Stunde. &lt;br /&gt;
&lt;br /&gt;
=== Anlegen der Attribute ===&lt;br /&gt;
Die benötigten Daten werden nun über die Attribut readingXXName und readingXXRegex abgefragt. &lt;br /&gt;
&lt;br /&gt;
readingXXName: Hiermit geben wir dem späteren Reading einen Namen. &lt;br /&gt;
&lt;br /&gt;
readingXXRegex: Hier wird festgelegt, welcher Teil des Textes &amp;quot;herausgeschnitten&amp;quot; werden soll.&lt;br /&gt;
&lt;br /&gt;
XX: Wird durch Zahlen ersetzt, damit man eine Übersicht hat. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Als aller Erstes müssen wir uns unsere eigenen Attribute vorbereiten. Dies machen wir mit dem attr userattr wie folgt:&lt;br /&gt;
&lt;br /&gt;
==== UserReadings Attribut ====&lt;br /&gt;
Hier definieren wir die später benötigte Attribute:&lt;br /&gt;
&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI userattr reading01Name reading01Regex reading02Name reading02Regex reading03Name reading03Regex reading04Name reading04Regex reading05Name reading05Regex &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mehr zu den Attributen unter [[HTTPMOD]].&lt;br /&gt;
&lt;br /&gt;
Legen wir nun unsere weiteren Attribut an:&lt;br /&gt;
&lt;br /&gt;
==== Dauer der Reise ====&lt;br /&gt;
Die Dauer der Reise greifen wir mit den Attributen: &lt;br /&gt;
&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI reading01Name duration &lt;br /&gt;
attr Verkehr.FFM.GI reading01Regex &amp;quot;duration&amp;quot;\s*:\s*{\s*[&amp;quot;\w\s:,]+&amp;quot;value&amp;quot;\s*:\s*(\d+)\s*} &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unser Reading wird später &amp;quot;duration&amp;quot; heißen. Darin wird die Dauer der Reise in Sekunden angegeben.&lt;br /&gt;
&lt;br /&gt;
==== Dauer der Reise mit aktuellem Verkehr ====&lt;br /&gt;
Die Dauer der Reise mit Verkehr greifen wir mit den Attributen: &lt;br /&gt;
&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI reading02Name duration_in_traffic &lt;br /&gt;
attr Verkehr.FFM.GI reading02Regex &amp;quot;duration_in_traffic&amp;quot;\s*:\s*{\s*[&amp;quot;\w\s:,]+&amp;quot;value&amp;quot;\s*:\s*(\d+)\s*}  &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unser Reading wird später &amp;quot;duration&amp;quot; heißen. Darin wird die Dauer der Reise in Sekunden angegeben.&lt;br /&gt;
&lt;br /&gt;
==== Entfernung ====&lt;br /&gt;
Die Entfernung greifen wir mit den Attributen:&lt;br /&gt;
&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI reading03Name distance &lt;br /&gt;
attr Verkehr.FFM.GI reading03Regex &amp;quot;distance&amp;quot;\s*:\s*{\s*[&amp;quot;\w\s:,]+&amp;quot;value&amp;quot;\s*:\s*(\d+)\s*}   &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unser Reading wird später &amp;quot;distance&amp;quot; heißen und uns die Entfernung angeben.&lt;br /&gt;
&lt;br /&gt;
==== Zielort ====&lt;br /&gt;
Den Zielort greifen wir mit den Attributen:&lt;br /&gt;
&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI reading04Name destination_addresses  &lt;br /&gt;
attr Verkehr.FFM.GI reading04Regex &amp;quot;destination_addresses&amp;quot;\s*:\s*\[\s*&amp;quot;([\w\s.,-:üöäß(\)]+)&amp;quot;\s*\]   &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unser Reading wird später &amp;quot;destination_addresses&amp;quot; heißen und uns den Zielort angeben.&lt;br /&gt;
&lt;br /&gt;
==== Startort ====&lt;br /&gt;
Den Startort greifen wir mit den Attributen: &lt;br /&gt;
&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI reading05Name origin_addresses  &lt;br /&gt;
attr Verkehr.FFM.GI reading05Regex &amp;quot;origin_addresses&amp;quot;\s*:\s*\[\s*&amp;quot;([\w\s.,-:üöäß(\)]+)&amp;quot;\s*\]   &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unser Reading wird später &amp;quot;origin_addresses&amp;quot; heißen und uns den Zielort angeben.&lt;br /&gt;
&lt;br /&gt;
==== Startort ====&lt;br /&gt;
Den Startort greifen wir mit den Attributen:&lt;br /&gt;
&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI reading06Name origin_addresses  &lt;br /&gt;
attr Verkehr.FFM.GI reading06Regex &amp;quot;origin_addresses&amp;quot;\s*:\s*\[\s*&amp;quot;([\w\s.,-:üöäß(\)]+)&amp;quot;\s*\]   &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unser Reading wird später &amp;quot;origin_addresses&amp;quot; heißen und uns den Zielort angeben.&lt;br /&gt;
&lt;br /&gt;
==== Berechnung der Werte für die spätere Anzeige ====&lt;br /&gt;
Damit die Werte später User freundlich angezeigt werden, lassen wir sie von FHEM berechnen:&lt;br /&gt;
&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI userReadings duration_hr {strftime &amp;quot;%H:%M&amp;quot;, gmtime( int( ReadingsVal(&amp;quot;$name&amp;quot;,&amp;quot;duration&amp;quot;,0) /60+0.5)*60 );}, duration_in_traffic_hr {strftime &amp;quot;%H:%M&amp;quot;, gmtime( int( ReadingsVal(&amp;quot;$name&amp;quot;,&amp;quot;duration_in_traffic&amp;quot;,0) /60+0.5)*60 );}, distance_hr:distance {int( ReadingsVal(&amp;quot;$name&amp;quot;,&amp;quot;distance&amp;quot;,0) /1000+0.5);}, duration_diff {int((ReadingsVal(&amp;quot;$name&amp;quot;,&amp;quot;duration_in_traffic&amp;quot;,0)-ReadingsVal(&amp;quot;$name&amp;quot;,&amp;quot;duration&amp;quot;,0))/60+0.5);}, duration_diff_hr {my $diff=int((ReadingsVal(&amp;quot;$name&amp;quot;,&amp;quot;duration_in_traffic&amp;quot;,0)-ReadingsVal(&amp;quot;$name&amp;quot;,&amp;quot;duration&amp;quot;,0))/60+0.5); return &amp;quot;+&amp;quot;.$diff if ($diff&amp;gt;0); return &amp;quot;+0&amp;quot;;} &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== State Anzeige ====&lt;br /&gt;
Uns als letztes noch, wie wir das ganze in State angezeigt bekommen möchten:&lt;br /&gt;
&amp;lt;pre&amp;gt;attr Verkehr.FFM.GI stateFormat duration_hr duration_diff_hr Min. (distance_hr km) &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fertig ==&lt;br /&gt;
Fertig ist das Device, welches uns nun unseren Weg anzeigt. Natürlich könnt ihr die einzelnen Berechnungen und auch die State Anzeige für euch selbst anpassen und entsprechend ändern.&lt;br /&gt;
&lt;br /&gt;
== Anmerkung ==&lt;br /&gt;
Zwei Dinge möchte ich anmerken:&lt;br /&gt;
&lt;br /&gt;
1. Das ganze beruht auf {{Link2Forum|Topic=20151|Message=363109|LinkText=diesem}} und {{Link2Forum|Topic=20151|Message=365322|LinkText=diesem}} Beitrag. &lt;br /&gt;
&lt;br /&gt;
2. Sobald Google die Ausgabe der Website verändert, wird es vermutlich nicht mehr funktionieren. Wie ihr dem Thema im Forum entnehmen könnt, ist dies schon vorgekommen. Daher nicht wundern, sondern im Forum schauen, ob es schon eine Veränderung gibt oder selbst die Readings anpassen.&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Code_Snippets]]&lt;/div&gt;</summary>
		<author><name>Amenophis86</name></author>
	</entry>
</feed>