소스 검색

FTUI-Verbindungen

hmetzner 7 년 전
부모
커밋
bc40e0c63b

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2152 - 0
fhem/core/FHEM/98_DBPlan.pm


+ 1 - 0
fhem/core/FHEM/controls.txt

@@ -1,3 +1,4 @@
 http://fhem.de/fhemupdate/controls_fhem.txt
 https://raw.githubusercontent.com/klein0r/fhem-style-haus-automatisierung/version-2/controls_ha_theme.txt
 https://raw.githubusercontent.com/knowthelist/fhem-tablet-ui/master/controls_fhemtabletui.txt
+https://raw.githubusercontent.com/jowiemann/DBPlan-for-Fhem/master/controls_dbplan.txt

+ 3 - 0
fhem/core/FHEM/controls_dbplan.txt

@@ -0,0 +1,3 @@
+DEL FHEM/98_DBPlan.pm 
+UPD 2018-02-23_18:53:00 80662 FHEM/98_DBPlan.pm
+UPD 2017-01-04_18:33:00 231027 FHEM/deutschland_bhf.csv

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 7090 - 0
fhem/core/FHEM/deutschland_bhf.csv


+ 185 - 0
fhem/core/docs/commandref.html

@@ -137,6 +137,7 @@
       <a href="#CUL_TX">CUL_TX</a> &nbsp;
       <a href="#CUL_WS">CUL_WS</a> &nbsp;
       <a href="#dash_dhcp">dash_dhcp</a> &nbsp;
+      <a href="#DBPlan">DBPlan</a> &nbsp;
       <a href="#DFPlayerMini">DFPlayerMini</a> &nbsp;
       <a href="#DLNARenderer">DLNARenderer</a> &nbsp;
       <a href="#Dooya">Dooya</a> &nbsp;
@@ -7383,6 +7384,190 @@ attr myReadingsDisplay room 0-Test<br>
 </ul>
 
 
+<p><a name="DBPlan"></a>
+<h3>DBPlan</h3>
+<div class='langLinks'>[EN <a href='commandref_DE.html#DBPlan'>DE</a>]</div>
+
+<ul>
+	The module fetches from the info page of the DB <https://reiseauskunft.bin.de/bin/query.exe/dox?S=departure&Z=destination&start=1&rt=1>
+       up-to-date information on a specified connection and stores it in Fhem readings.
+       The file with the IBNR codes and stations of Deutsche Bahn can be download at http://www.michaeldittrich.de/ibnr.
+
+	<br><br>
+	<b>Prerequisites</b>
+	<ul>
+		<br>
+		<li>
+			This Module uses the non blocking HTTP function HttpUtils_NonblockingGet provided by FHEM's HttpUtils in a new Version published in December 2013.<br>
+			If the module is not already present in your Fhem environment, please update FHEM via the update command.<br>
+		</li>
+		
+	</ul>
+	<br>
+       State will show the device status (DevState): 
+	<ul>
+		<li><b>initialized</b></li>
+			the device is defined, but no successfully requests and parsing has been done<br>
+                     this state will also be set when changing from <inactive> to <active> and <disabled> to <enabled><br>
+		<li><b>active</b></li>
+			the device is working<br>
+		<li><b>stopped</b></li>
+			the device timer has been stopped. A reread is possibel<br>
+		<li><b>disabled</b></li>
+			the device is disabled.<br>
+
+	</ul>
+	<br>
+
+	<a name="DBPlandefine"></a>
+	<b>Define</b>
+	<ul>
+		<br>
+		<code>define &lt;name&gt; DBPlan &lt;Refresh interval in seconds [time offset in minutes]&gt;</code>
+		<br><br>
+		The module connects to the given URL every Interval seconds and then parses the response. If time_offset is
+                defined, the moudules uses the actual time + time_offset as start point<br>
+		<br>
+		Example:<br>
+		<br>
+		<ul><code>define DBPlan_Test DBPlan 60</code></ul>
+	</ul>
+	<br>
+
+	<a name="DBPlanconfiguration"></a>
+	<b>Configuration of DBPlan</b><br><br>
+	<ul>
+		Example for a timetable query:<br><br>
+		<ul><code>
+                   attr DB_Test dbplan_station  Köln-Weiden West
+                   attr DB_Test dbplan_destination Köln HBF
+                   attr DB_Test room OPNV
+		</code></ul>
+	</ul>
+	<br>
+
+	<a name="DBPlanset"></a>
+	<b>Set-Commands</b><br>
+	<ul>
+		<li><b>interval</b></li>
+			set new interval time in seconds for parsing the DB time table<br>
+		<li><b>timeOffset</b></li>
+			Start of search: actual time plus time_offset.<br>
+		<li><b>reread</b></li>
+			reread and parse the DB time table. Only active, if not DevState: disabled<br>
+		<li><b>stop</b></li>
+			stop interval timer, only active if DevState: active<br>
+		<li><b>start</b></li>
+			restart interval timer, only active if DevState: stopped<br>
+	</ul>
+	<br>
+	<a name="DBPlanget"></a>
+	<b>Get-Commands</b><br>
+	<ul>
+		<li><b>PlainText</b></li>
+			the informations will be shown as plain text<br>
+		<li><b>searchStation</b></li>
+			search for a german DB Station. Without search pattern all stations will be shown.<br>
+	</ul>
+	<br>
+
+	<a name="DBPlanattr"></a>
+	<b>Attributes</b><br><br>
+	<ul>
+		<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
+		<br>
+		<li><b>dbplan_station</b></li>
+			place of departure<br>
+		<li><b>dbplan_destination</b></li>
+			place of destination<br>
+		<li><b>dbplan_via_1</b></li>
+			DB first via station<br>
+		<li><b>dbplan_via_2</b></li>
+			DB second via station<br>
+		<li><b>dbplan_journey_prod</b></li>
+			DB travel products like: ICE<br>
+		<li><b>dbplan_journey_opt</b></li>
+			DB journey options like: direct connection<br>
+		<li><b>dbplan_tariff_class</b></li>
+			DB tariff class: 1 or 2 class<br>
+		<li><b>dbplan_board_type</b></li>
+			DB board type: departure or arrival (depart / arrive)<br>
+		<li><b>dbplan_delayed_Journey</b></li>
+			DB delayed journey: on or off<br>
+		<li><b>dbplan_max_Journeys</b></li>
+			Number of displayed train connections in the station view.<br>
+		<li><b>dbplan_reg_train</b></li>
+			The train designation, e.g. S for everything S- and streetcars, ICE all ICE or ICE with train number.<br>
+		<li><b>dbplan_travel_date</b></li>
+			Define the date of travel in dd.mm.yy. Default: actual date.<br>
+		<li><b>dbplan_travel_time</b></li>
+			Define the time of travel in hh:mm. Default: actual time.<br>
+		<li><b>dbplan_addon_options</b></li>
+			extended options like discribed in the api document: <li><a http://webcache.googleusercontent.com/search?q=cache:wzb_OlIUCBQJ:www.geiervally.lechtal.at/sixcms/media.php/1405/Parametrisierte%2520%25DCbergabe%2520Bahnauskunft(V%25205.12-R4.30c,%2520f%25FCr.pdf+&cd=3&hl=de&ct=clnk&gl=de
+">Parametrisierte Übergabe Bahnauskunft</a></li><br>
+              <br>
+		<li><b>Attributes controlling the behavior:</b></li>
+		<li><b>dbplan-disable</b></li>
+			If set to 1 polling of DB Url will be stopped, setting to 0 or deleting will activate polling<br>
+		<li><b>dbplan-reading-deselect </b></li>
+			deselecting of readings<br>
+		<li><b>dbplan-default-char</b></li>
+			Define a string which will be displayed if no information is available. Defaultstring: "none"<br>
+			When defined the special string "delete" the raeding will not be filled and is not available since an information excists<br>
+			When defined the special string "nochar" the raeding will be filled with " "<br>
+		<li><b>dbplan-tabel-headers</b></li>
+			internal attribute to change the header information used by HTML::TableExtract<br>
+		<li><b>dbplan-station-file</b></li>
+			Directory and name of the station table to be used: /opt/fhem/FHEM/deutschland_bhf.csv<br>
+			This table is to be used as a help for the search for railway stations and has no other function in the module.<br>
+		<li><b>dbplan-base-type</b></li>
+			Select whether a station table (table) or a timetable (plan) display is to be generated<br>
+              <br>
+		<li><b>HTTPMOD attributes, have a look at the documentation</b></li>
+		<li><b>dbplan-remote-timeout</b></li>
+		<li><b>dbplan-remote-noshutdown</b></li>
+		<li><b>dbplan-remote-loglevel</b></li>
+		<li><b>dbplan-remote-buf</b></li>
+	</ul>
+       <br>
+	<a name="DBPlanReadings"></a>
+	<b>Readings</b><br><br>
+	<ul>
+		<li><a href="#internalReadings">internalReadings</a></li>
+		<br>
+		<li><b>plan_departure_(1..3)</b></li>
+			time of departure<br>
+		<li><b>plan_arrival_(1..3)</b></li>
+			time of arrival<br>
+		<li><b>plan_connection_(1..3)</b></li>
+			type of connection<br>
+		<li><b>plan_departure_delay_(1..3)</b></li>
+			delay time for departure<br>
+		<li><b>plan_arrival_delay_(1..3)</b></li>
+			delay time for arrival<br>
+		<li><b>plan_travel_duration_(1..3)</b></li>
+			travel duration time<br>
+		<li><b>plan_travel_change_(1..3)</b></li>
+			travel plattform changings<br>
+              <br>
+		<li><b>travel_departure_(1..3)</b></li>
+			informations about the departure and the plattform, if available<br>
+		<li><b>travel_destination_(1..3)</b></li>
+			informations about the destination and the plattform, if available<br>
+		<li><b>travel_price_(1..3)</b></li>
+			travel price in EUR<br>
+              <br>
+		<li><b>travel_error_(1..3)</b></li>
+			error information when calling the note url<br>
+		<li><b>travel_note_(1..3)</b></li>
+			travel note for travel plan<br>
+		<li><b>travel_note_link_(1..3)</b></li>
+			travel note link for further informations<br>
+		<li><b>travel_note_text_(1..3)</b></li>
+			travel note text<br>
+	</ul>
+</ul>
+
 <p><a name="DFPlayerMini"></a>
 <h3>DFPlayerMini - FN-M16P Embedded MP3 Audio Module</h3>
 <div class='langLinks'>[EN <a href='commandref_DE.html#DFPlayerMini'>DE</a>]</div>

+ 187 - 1
fhem/core/docs/commandref_DE.html

@@ -138,6 +138,7 @@
       <a href="#CUL_TX">CUL_TX</a> &nbsp;
       <a href="#CUL_WS">CUL_WS</a> &nbsp;
       <a href="#dash_dhcp">dash_dhcp</a> &nbsp;
+      <a href="#DBPlan">DBPlan</a> &nbsp;
       <a href="#DFPlayerMini">DFPlayerMini</a> &nbsp;
       <a href="#DLNARenderer">DLNARenderer</a> &nbsp;
       <a href="#Dooya">Dooya</a> &nbsp;
@@ -5646,7 +5647,192 @@ Absichtlich keine deutsche Dokumentation vorhanden, die englische Version gibt e
   Leider keine deutsche Dokumentation vorhanden. Die englische Version gibt es
   hier: <a href='commandref.html#CustomReadings'>CustomReadings</a><br/>
 </ul>
-<a name="DFPlayerMini"></a>
+<a name="DBPlan"></a>
+<h3>DBPlan</h3>
+<div class='langLinks'>[<a href='commandref.html#DBPlan'>EN</a> DE]</div>
+
+<ul>
+	Das Modul holt von der Infoseite der DB <https://reiseauskunft.bahn.de/bin/query.exe/dox?S=departure&Z=destination&start=1&rt=1>
+       aktuelle Informationen zu einer angegeben Verbindung und legt sie in Fhem readings ab.
+       Die Datei mit den IBNR-Codes und Stationen der Deutschen Bahn kann unter http://www.michaeldittrich.de/ibnr abgerufen werden.
+
+	<br><br>
+	<b>Prerequisites</b>
+	<ul>
+		<br>
+		<li>
+			Dieses Modul verwendet die nicht blockierende HTTP-Funktion HttpUtils_NonblockingGet von FHEM's HttpUtils in der aktuellen Version.<br>
+                     Falls das Modul noch nicht in Ihrer Fhem-Umgebung vorhanden ist, aktualisieren Sie bitte FHEM über den Update Befehl.<br>
+		</li>
+		
+	</ul>
+	<br>
+       Der device status (DevState): 
+	<ul>
+		<li><b>initialized</b></li>
+			Das Device ist definiert, aber es wurde keine erfolgreichen Anfragen und Analysen durchgeführt<br>
+                     Dieser Zustand wird auch beim Wechsel von <inactive> auf <active> und <disabled> auf <enabled> gesetzt<br>
+		<li><b>active</b></li>
+			Das Device arbeitet<br>
+		<li><b>stopped</b></li>
+			Der Device Time wurde angehalten. Ein reread ist jedoch möglich<br>
+		<li><b>disabled</b></li>
+			Das Device wurde deaktiviert.<br>
+	</ul>
+	<br>
+
+	<a name="DBPlandefine"></a>
+	<b>Define</b>
+	<ul>
+		<br>
+		<code>define &lt;name&gt; DBPlan &lt;Refresh interval in seconds [time offset in minutes]&gt;</code>
+		<br><br>
+              Das Modul holt nach angegebenen "Intervall"-Sekunden über die DB URL die Fahrpläne. Ist time_offset definiert werden
+              die Fahrpläne für die aktuelle Zeit plus Offset in Minuten gelesen.<br>
+		<br>
+		Example:<br>
+		<br>
+		<ul><code>define DBPlan_Test DBPlan 60</code></ul>
+	</ul>
+	<br>
+
+	<a name="DBPlanconfiguration"></a>
+	<b>Konfiguration von DBPlan</b><br><br>
+	<ul>
+		Beispiel für eine Fahrplanabfrage:<br><br>
+		<ul><code>
+                   attr DB_Test dbplan_station  Köln-Weiden West
+                   attr DB_Test dbplan_destination Köln HBF
+                   attr DB_Test room OPNV
+		</code></ul>
+	</ul>
+	<br>
+
+	<a name="DBPlanset"></a>
+	<b>Set-Commands</b><br>
+	<ul>
+		<li><b>interval</b></li>
+			setzen einer anderen Intervallzeit für das Holen und Parsen der DB Informationen<br>
+		<li><b>timeOffset</b></li>
+			Start der Suche: aktuelle Zeit plus time_offset.<br>
+		<li><b>reread</b></li>
+			Holen und Parsen der DB Informationen. Nur aktiv, wenn kein Status: disabled<br>
+		<li><b>stop</b></li>
+			Stoppt den Timer. Nur aktiv, wenn Status: active<br>
+		<li><b>start</b></li>
+			Neustart des Timers. Nur aktiv, wenn Status: stopped<br>
+	</ul>
+	<br>
+	<a name="DBPlanget"></a>
+	<b>Get-Commands</b><br>
+	<ul>
+		<li><b>PlainText</b></li>
+			Die ermittelten Informationen werden als "plain Text" ausgegeben<br>
+		<li><b>searchStation</b></li>
+			suche in der Bahnhofstabelle. Wird kein Suchbegriff eingegen, werden alle Bahnhöfe angezeigt.<br>
+	</ul>
+	<br>
+
+	<a name="DBPlanattr"></a>
+	<b>Attributes</b><br><br>
+	<ul>
+		<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
+		<br>
+		<li><b>dbplan_station</b></li>
+			Abfahrtsbahnhof / Haltestelle<br>
+		<li><b>dbplan_destination </b></li>
+			Ankunftsbahnhof / Haltestelle<br>
+		<li><b>dbplan_via_1 </b></li>
+			1. Zwischenhalt in Bahnhof / Haltestelle<br>
+		<li><b>dbplan_via_2 </b></li>
+			2. Zwischenhalt in Bahnhof / Haltestelle<br>
+		<li><b>dbplan_journey_prod </b></li>
+			Verkehrsmittel, wie z.B.: ICE, Bus, Straßenbahn<br>
+		<li><b>dbplan_journey_opt </b></li>
+			Reiseoptionen wie z.B.: direct connection<br>
+		<li><b>dbplan_tariff_class </b></li>
+			1. oder 2. Klasse<br>
+		<li><b>dbplan_board_type </b></li>
+			Fahrplansuche bzw. Bahnhofsanzeige für Abfahrts- oder Ankunftszeit (depart / arrive).<br>
+		<li><b>dbplan_delayed_Journey </b></li>
+			Bei off werden nur pünktliche Verbindungen angezeigt.<br>
+		<li><b>dbplan_max_Journeys </b></li>
+			Anzahl der angezeigten Zugverbindungen in der Bahnhofsansicht.<br>
+		<li><b>dbplan_reg_train </b></li>
+			die Zugbezeichnung, z.B. S für alles was S- und Straßenbahnen angeht, ICE alle ICE oder ICE mit Zugnummer. Usw.<br>
+		<li><b>dbplan_travel_date </b></li>
+			Reisedatum in der Angabe: dd.mm.yy<br>
+		<li><b>dbplan_travel_time </b></li>
+			Abfahtrtszeit in der Angabe: hh.mm<br>
+		<li><b>dbplan_addon_options </b></li>
+			weitere Optionen, wie sie im API-Dokument der DB beschrieben sind.<br>
+              <br>
+		<li><b>Steuernde Attribute:</b></li>
+		<li><b>dbplan-disable </b></li>
+			Device aktivieren / deaktivieren (s. auch FHEM-Doku)<br>
+		<li><b>dbplan-reading-deselect </b></li>
+			delsektieren von Readings<br>
+		<li><b>dbplan-default-char </b></li>
+			Hinweis, der angezeigt wird, wenn keine Information für ein reading zur Verfügung steht.<br>
+			- "none" ist der Standardhinweis.<br> 
+			Sofern folgende spezielle Einträge gemacht werden:
+			- "delete" nicht genutzte readings werden auch nicht angezeigt.<br>
+			- "nochar" das Reading wird mit leerem Inhalt angezeigt.<br>
+		<li><b>dbplan-tabel-headers </b></li>
+			internes Attribut um die Spaltenbezeichnungen für HTML::TableExtract<br>
+		<li><b>dbplan-station-file </b></li>
+			Pfad zur Bahnhofstabelle der Deutschen Bahn (evtl. nicht vollständig). Für Für andere Verkehrsunternehmen liegen keine Tabellen vor.<br>
+			Diese Tabelle ist als Hilfe für die Suche nach Bahnhöfen anzusehen und hat keine weitere Funktion im Modul.<br>
+		<li><b>dbplan-base-type </b></li>
+			Anzeige als Bahnhofstabelle (table) oder Verbindungsinformation (plan)<br>
+              <br>
+		<li><b>HTTPMOD Attribute, siehe entsprechende Doku</b></li>
+		<li><b>dbplan-remote-timeout</b></li>
+		<li><b>dbplan-remote-noshutdown</b></li>
+		<li><b>dbplan-remote-loglevel</b></li>
+		<li><b>dbplan-remote-buf</b></li>
+
+	</ul>
+       <br>
+	<a name="DBPlanReadings"></a>
+	<b>Readings</b><br><br>
+	<ul>
+		<li><a href="#internalReadings">internalReadings</a></li>
+		<br>
+		<li><b>plan_departure_(1..3) </b></li>
+			Abfahrtszeit<br>
+		<li><b>plan_arrival_(1..3) </b></li>
+			Ankunftszeit<br>
+		<li><b>plan_connection_(1..3) </b></li>
+			Verbindungstyp<br>
+		<li><b>plan_departure_delay_(1..3) </b></li>
+			Verspätung in der Abfahrtszeit<br>
+		<li><b>plan_arrival_delay_(1..3) </b></li>
+			Verspätung in der Ankunftszeit<br>
+		<li><b>plan_travel_duration_(1..3) </b></li>
+			Reisezeit<br>
+		<li><b>plan_travel_change_(1..3) </b></li>
+			Anzahl der Umstiege<br>
+              <br>
+		<li><b>travel_note_(1..3) </b></li>
+			Hinweise für die Verbindung<br>
+		<li><b>travel_note_link_(1..3) </b></li>
+			Link zu den weiteren Verbindungsinformationen<br>
+		<li><b>travel_note_text_(1..3) </b></li>
+			Verbindungshinweis<br>
+		<li><b>travel_note_error_(1..3) </b></li>
+			Fehlertext der Detailinformation<br>
+              <br>
+		<li><b>travel_departure_(1..3) </b></li>
+			Informationen über den Abfahtsbahnhof und das Ankunftsgleis<br>
+		<li><b>travel_destination_(1..3) </b></li>
+			Informationen über den Zielbahnhof und das Ankunftsgleis<br>
+		<li><b>travel_price_(1..3) </b></li>
+			Fahrpreis<br>
+	</ul>
+</ul>
+
+<p><a name="DFPlayerMini"></a>
 <h3>DFPlayerMini - FN-M16P Embedded MP3 Audio Module</h3>
 <div class='langLinks'>[<a href='commandref.html#DFPlayerMini'>EN</a> DE]</div>
   Dieses Modul integriert den <a href="http://www.flyrontech.com/eproducts/84.html">DFPlayerMini - FN-M16P Embedded MP3 Audio Modul</a> in fhem.

+ 84 - 8
fhem/core/fhem.cfg

@@ -3,14 +3,15 @@ attr global autoload_undefined_devices 1
 attr global autosave 0
 attr global group System
 attr global icon rc_WEB
-attr global logfile -
+attr global logfile ./log/fhem-%Y-%m.log
 attr global modpath .
-attr global motd Messages collected while initializing FHEM:\
-configfile: could not read connection\
-./log/fhem.save: Please define DBLogging first\
-Please define DBLogging first\
+attr global motd SecurityCheck:\
+  WEB is not password protected\
+  telnetPort is not password protected\
 \
-Autosave deactivated
+Protect this FHEM installation by configuring the allowed device allowed_WEB\
+Running with root privileges is discouraged.\
+You can disable this message with attr global motd none
 attr global nofork 1
 attr global perlSyntaxCheck 1
 attr global room System
@@ -85,14 +86,14 @@ define at_DbLoggingReduce at *03:00:00 set DBLogging reduceLogNbl 90 average
 attr at_DbLoggingReduce alias Database-Log Reduce
 attr at_DbLoggingReduce group Logging
 attr at_DbLoggingReduce icon system_fhem_update
-attr at_DbLoggingReduce room System
+attr at_DbLoggingReduce room Log,System
 define Siri siri
 attr Siri room Interfaces
 define DBLogging_Reopen at +*00:15:00 set DBLogging reopen
 attr DBLogging_Reopen alias Database-Log Reopen
 attr DBLogging_Reopen group Logging
 attr DBLogging_Reopen icon time_timer
-attr DBLogging_Reopen room System
+attr DBLogging_Reopen room Log,System
 define allowed_WEB allowed
 attr allowed_WEB alias WEB (Permissions)
 attr allowed_WEB group Web-Access
@@ -105,4 +106,79 @@ attr DOIFtools group System
 attr DOIFtools icon helper_doiftools
 attr DOIFtools room System
 define DBLogging DbLog /opt/fhem/db.conf .*:.*
+attr DBLogging DbLogSelectionMode Exclude/Include
 attr DBLogging DbLogType Current/History
+attr DBLogging room Log
+#DB Auskunft
+define HaNW DBPlan 300
+attr HaNW DbLogExclude .*
+attr HaNW dbplan_destination Neustadt-Böbig
+attr HaNW dbplan_station Haßloch(Pfalz)
+attr HaNW room Verkehr
+#
+define HaMA DBPlan 300
+attr HaMA DbLogExclude .*
+attr HaMA dbplan_destination Mannheim Hbf
+attr HaMA dbplan_station Haßloch(Pfalz)
+attr HaMA room Verkehr
+#Traffic Module
+define trafficViaHockenheim TRAFFIC AIzaSyCoAbPI0IfuBl8P6EJhKM316nyyW93T4Dg 600
+attr trafficViaHockenheim userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address outputReadings start_address verbose waypoints
+attr trafficViaHockenheim DbLogExclude .*
+attr trafficViaHockenheim GoogleMapsCenter 49.317545, 8.437319
+attr trafficViaHockenheim GoogleMapsStroke #0080FF,6,50
+attr trafficViaHockenheim GoogleMapsTrafficLayer 1
+attr trafficViaHockenheim GoogleMapsZoom 11
+attr trafficViaHockenheim end_address Heidelberger Str., 69226 Nußloch
+attr trafficViaHockenheim outputReadings text
+attr trafficViaHockenheim room Verkehr
+attr trafficViaHockenheim start_address Nelkenweg, 67454 Haßloch
+attr trafficViaHockenheim verbose 1
+attr trafficViaHockenheim waypoints 49.305870, 8.425785
+#
+define trafficViaTalhaus TRAFFIC AIzaSyCoAbPI0IfuBl8P6EJhKM316nyyW93T4Dg 600
+attr trafficViaTalhaus userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address includeReturn outputReadings start_address verbose waypoints
+attr trafficViaTalhaus DbLogExclude .*
+attr trafficViaTalhaus GoogleMapsCenter 49.317545, 8.437319
+attr trafficViaTalhaus GoogleMapsStroke #0080FF,6,40,#0080FF,6,40
+attr trafficViaTalhaus GoogleMapsTrafficLayer 1
+attr trafficViaTalhaus GoogleMapsZoom 11
+attr trafficViaTalhaus end_address Heidelberger Str., 69226 Nußloch
+attr trafficViaTalhaus includeReturn 1
+attr trafficViaTalhaus outputReadings text
+attr trafficViaTalhaus room Verkehr
+attr trafficViaTalhaus start_address Nelkenweg, 67454 Haßloch
+attr trafficViaTalhaus verbose 1
+attr trafficViaTalhaus waypoints 49.305870, 8.425785 | 49.3419634, 8.5320445
+#
+define trafficViaA61A6 TRAFFIC AIzaSyCoAbPI0IfuBl8P6EJhKM316nyyW93T4Dg 600
+attr trafficViaA61A6 userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address outputReadings start_address verbose waypoints
+attr trafficViaA61A6 DbLogExclude .*
+attr trafficViaA61A6 GoogleMapsCenter 49.317545, 8.437319
+attr trafficViaA61A6 GoogleMapsStroke #0080FF,6,50
+attr trafficViaA61A6 GoogleMapsTrafficLayer 1
+attr trafficViaA61A6 GoogleMapsZoom 11
+attr trafficViaA61A6 end_address Heidelberger Str., 69226 Nußloch
+attr trafficViaA61A6 outputReadings text
+attr trafficViaA61A6 room Verkehr
+attr trafficViaA61A6 start_address Nelkenweg, 67454 Haßloch
+attr trafficViaA61A6 verbose 1
+attr trafficViaA61A6 waypoints 49.3892154, 8.3393097
+#
+define trafficViaA61Talhaus TRAFFIC AIzaSyCoAbPI0IfuBl8P6EJhKM316nyyW93T4Dg 600
+attr trafficViaA61Talhaus userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address outputReadings start_address verbose waypoints
+attr trafficViaA61Talhaus DbLogExclude .*
+attr trafficViaA61Talhaus GoogleMapsCenter 49.317545, 8.437319
+attr trafficViaA61Talhaus GoogleMapsStroke #0080FF,6,50
+attr trafficViaA61Talhaus GoogleMapsTrafficLayer 1
+attr trafficViaA61Talhaus GoogleMapsZoom 11
+attr trafficViaA61Talhaus end_address Heidelberger Str., 69226 Nußloch
+attr trafficViaA61Talhaus outputReadings text
+attr trafficViaA61Talhaus room Verkehr
+attr trafficViaA61Talhaus start_address Nelkenweg, 67454 Haßloch
+attr trafficViaA61Talhaus verbose 1
+attr trafficViaA61Talhaus waypoints 49.3892154, 8.3393097 | 49.3419634, 8.5320445
+
+define n_DbLogExclude notify global:DEFINED.* attr $EVTPART1 DbLogExclude .*
+attr n_DbLogExclude DbLogExclude .*
+attr n_DbLogExclude room Notify,Log

+ 10 - 1
fhem/core/www/tablet_dev/css/fhem-tablet-ui-custom_1280.css

@@ -1,5 +1,5 @@
 @font-face { font-family: 'DKCrayonCrumble';
-             src: url('../myfonts/crayoncrumble.ttf') format('truetype'); }
+             src: url('../myfonts/KGTenThousandReasons.ttf') format('truetype'); }
 body {
     background:#000000 url(../images/blackboard_1280x800.jpg) 0 0 no-repeat;
     font-family: DKCrayonCrumble, "Helvetica Neue", "Helvetica", "Open Sans", "Arial", sans-serif;
@@ -14,3 +14,12 @@ body {
 .fulltransparent {
     background: rgba(0, 0, 0, 0) !important;
 }
+.gridster li header {
+    background: #262626;
+    color: #8c8c8c;
+    display: block;
+    font-size: 1.75em;
+    line-height: 2.5em;
+    text-align: center;
+    width: 100%;
+}

+ 69 - 14
fhem/core/www/tablet_dev/main1280x800.html

@@ -46,39 +46,94 @@
 <body>
 <div class="gridster">
   <ul>
-    <li data-col="1" data-row="1" data-sizex="3" data-sizey="4">
-      <header>EXAMPLE1</header>
-      <!-- place your widget here -->
+<!--Verbindungen-->
+    <li data-col="1" data-row="1" data-sizex="4" data-sizey="6" class="fulltransparent">
+      <header class="fulltransparent">Ihre nächsten Verbindungen</header>
+      <div class="sheet">
+        <div class="row-5 bigger left-align">NW-Böbig</div>
+        <div class="row"
+             data-template="templates/template_abfahrt.html"
+             data-parameter='{"paraDev":"HaNW",
+                              "paraTve":"travel_vehicle_nr_1",
+                              "paraPde":"plan_departure_1",
+                              "paraTde":"travel_departure_1",
+                              "paraPdd":"plan_departure_delay_1"}'>
+        </div>
+        <div class="row"
+             data-template="templates/template_abfahrt.html"
+             data-parameter='{"paraDev":"HaNW",
+                              "paraTve":"travel_vehicle_nr_2",
+                              "paraPde":"plan_departure_2",
+                              "paraTde":"travel_departure_2",
+                              "paraPdd":"plan_departure_delay_2"}'>
+        </div>
+        <div class="row"
+             data-template="templates/template_abfahrt.html"
+             data-parameter='{"paraDev":"HaNW",
+                              "paraTve":"travel_vehicle_nr_3",
+                              "paraPde":"plan_departure_3",
+                              "paraTde":"travel_departure_3",
+                              "paraPdd":"plan_departure_delay_3"}'>
+        </div>
+        <div class="row-5 bigger left-align">Mannheim</div>
+        <div class="row"
+             data-template="templates/template_abfahrt.html"
+             data-parameter='{"paraDev":"HaMA",
+                              "paraTve":"travel_vehicle_nr_1",
+                              "paraPde":"plan_departure_1",
+                              "paraTde":"travel_departure_1",
+                              "paraPdd":"plan_departure_delay_1"}'>
+        </div>
+        <div class="row"
+             data-template="templates/template_abfahrt.html"
+             data-parameter='{"paraDev":"HaMA",
+                              "paraTve":"travel_vehicle_nr_2",
+                              "paraPde":"plan_departure_2",
+                              "paraTde":"travel_departure_2",
+                              "paraPdd":"plan_departure_delay_2"}'>
+        </div>
+        <div class="row"
+             data-template="templates/template_abfahrt.html"
+             data-parameter='{"paraDev":"HaMA",
+                              "paraTve":"travel_vehicle_nr_3",
+                              "paraPde":"plan_departure_3",
+                              "paraTde":"travel_departure_3",
+                              "paraPdd":"plan_departure_delay_3"}'>
+        </div>
+      </div>
     </li>
-    <li data-col="4" data-row="1"  data-sizex="7" data-sizey="4">
+    <li data-col="4" data-row="1"  data-sizex="6" data-sizey="6">
       <header>EXAMPLE2</header>
-
     </li>
+<!--Uhrzeit-->
     <li data-col="11" data-row="1"  data-sizex="2" data-sizey="2" class="fulltransparent">
-      <!-- header>EXAMPLE3</header -->
-      <div>" "</div>
+      <header data-type="clock"
+              data-format="D, j.M Y"
+              class="fulltransparent">
+      </header>
       <div data-type="clock"
            data-format="H:i"
            class="great">
       </div>
-      <div data-type="clock"
+      <!-- div data-type="clock"
            data-format="D, j.M Y"
            class="bigger">
-      </div>
+      </div-->
     </li>
-    <li data-col="11" data-row="3"  data-sizex="2" data-sizey="2">
+    <li data-col="11" data-row="3"  data-sizex="2" data-sizey="4">
       <header>EXAMPLE4</header>
       <!-- place your widget here -->
     </li>
-    <li data-col="1" data-row="5" data-sizex="3" data-sizey="3">
-      <header>EXAMPLE5</header>
+<!--Reisezeiten-->
+    <li data-col="1" data-row="7" data-sizex="4" data-sizey="6" class="fulltransparent">
+      <header class="fulltransparent">Aktuelle Reisezeiten</header>
       <!-- place your widget here -->
     </li>
-    <li data-col="4" data-row="5"  data-sizex="3" data-sizey="3">
+    <li data-col="5" data-row="7"  data-sizex="3" data-sizey="3">
       <header>EXAMPLE6</header>
       <!-- place your widget here -->
     </li>
-    <li data-col="8" data-row="5" data-sizex="6" data-sizey="3">
+    <li data-col="8" data-row="7" data-sizex="5" data-sizey="3">
       <header>EXAMPLE7</header>
       <!-- place your widget here -->
     </li>

BIN
fhem/core/www/tablet_dev/myfonts/KGTenThousandReasons.ttf


BIN
fhem/core/www/tablet_dev/myfonts/KGTenThousandReasonsAlt.ttf


BIN
fhem/core/www/tablet_dev/myfonts/drawingguides.ttf


BIN
fhem/core/www/tablet_dev/myfonts/whateverittakes.ttf


BIN
fhem/core/www/tablet_dev/myfonts/whateverittakesbold.ttf


+ 33 - 0
fhem/core/www/tablet_dev/templates/template_abfahrt.html

@@ -0,0 +1,33 @@
+<!--template_abfahrt.html-->
+<!--TEMPLATE zum Anzeigen der Abfahrten-->
+<!--Das Template ist auf das Modul DBPlan abgestimmt und verwendet die Standardredings von diesem Modul-->
+<!--Übergabe Parameter-->
+<!--    paraDev => device-->
+<!--    paraTve => travel_vehicle-->
+<!--    paraPde => plan_departure-->
+<!--    paraTde => travel_departure-->
+<!--    paraPdd => plan_departure_delay-->
+<!--Zug-/Busnummer-->
+<div class="top-narrow-2x cell-30 left-align left-space large"
+     data-type="label"
+     data-device="paraDev"
+     data-get="paraTve">
+</div>
+<!--Geplante Abfahrt-->
+<div class="top-narrow-2x cell-30 left-align left-space big"
+     data-type="label"
+     data-device="paraDev"
+     data-get="paraPde">
+</div>
+<!--Abfahrt an Gleis-->
+<div class="top-narrow-2x cell-20 small"
+     data-type="label"
+     data-device="paraDev"
+     data-get="paraTde">
+</div>     
+<!--Verspätung-->
+<div class="top-narrow-2x cell-20 right-align right-space big bold"
+     data-type="label"
+     data-device="paraDev"
+     data-get="paraPdd">
+</div>