Car-PC.info

Relaiskarten - k8055 und LogoDashboard

Fillip13 - So 24 März, 2013 17:07
Titel: k8055 und LogoDashboard
Einen schönen Sonntag euch allen,

kann mir eventuell einer Helfen. Ich versuche gerade die Digitalen Eingänge der k8055 über das LogoDashboard (http://www-stud.uni-due.de/~sgchhaus/logodashboarden.php) über den Skin "Clean2" anzeigen zu lassen. Ich möchte gerne Symbole anzeigen lassen wenn diese Eingänge angesteuert werden.

Habe auch schon in der Dokumentation nachgelesen aber mein Englisch ist nicht soooo gut und ich werde daraus nicht ganz schlau Embarassed

Danke euch schon einmal !
Stryder - So 24 März, 2013 20:48
Titel:
Ich antworte einfach mal drauf.

Hier als Beispiel ein Icon mit An Aus Zustand für den digitalen Eingang1 von der k8055. Was du anpassen musst ist Position und Größe (bounds) und den Pfad zum Bild für an und dem für aus.

<CONTROL path="images/bild.png" type="Image" id="BeliebigerEindeutigerNameAN" bounds="66;20;200;200" path="images/an.png" show="false" conditions="{STRING;x=True;{k8055,DIN1}}" />

<CONTROL type="Image" id="BeliebigerEindeutigerNameAUS" bounds="66;20;200;200" path="images/aus.png" show="true" conditions="{STRING;x=False;{k8055,DIN1}}" />

Der show parameter auf true heißt das dieses Bild beim erstmaligen aufruf angezeigt wird. Sinnvoll für den Status aus. Wenn es dann wirklich an ist siehst du das Icon für den Status an.
so siehst du den aus Status auch dann wenn die k8055 kein Signal ausgeben würde.
Fillip13 - So 24 März, 2013 21:25
Titel:
Doofe Frage... Wo füge ich das ein? hatte es in der "Clean2" Skin datei eingefügt aber hat nicht geklappt..
Fillip13 - So 24 März, 2013 23:36
Titel:
Ôder liegt es daran dass ich nur die Testversion nutze?
Stryder - Mo 25 März, 2013 12:13
Titel:
Schau dir mal an wie die Dateien aufgebaut sind. Dies ist ein Beispiel:

<SKIN id="Clean2" bounds="178;394;138;86" intendedsize="800;480" >
<FONTCLASSES>
<FONTCLASS id="Label" font="Arial" color="#30aaf8" size="11" style="Bold" align="MiddleCenter" />
<FONTCLASS id="Date" font="Arial" color="#11ace4" size="11" style="Bold" align="MiddleCenter" />
</FONTCLASSES>
<SCREENS>
<SCREEN id="Logo">
<CONTROLS>
<CONTROL type="Image" id="Logo" bounds="25;3;80;80" path="images/logo.png" show="true" conditions="" />
</CONTROLS>
</SCREEN>
</SCREENS>
</SKIN>

Die Datei besteht aus verschiedenen Tags. Ganz außen der Skin Tag mit Attributen. Darin dann Fontclasses, wenn man sie braucht und Screens.

Screens sind die Seiten zwischen denen man wechseln kann.
Darin werden die einzelnen Screens (SCREEN) definiert. Diese brauchen eine ID (oben: Logo)

Jeder Screen hat CONTROLS (Bedienelemente). Darin müssen diese definiert werden.

Angepasst also so:

<SKIN id="Clean2" bounds="178;394;138;86" intendedsize="800;480" >
<FONTCLASSES>
<FONTCLASS id="Label" font="Arial" color="#30aaf8" size="11" style="Bold" align="MiddleCenter" />
<FONTCLASS id="Date" font="Arial" color="#11ace4" size="11" style="Bold" align="MiddleCenter" />
</FONTCLASSES>
<SCREENS>
<SCREEN id="Logo">
<CONTROLS>
<CONTROL type="Image" id="BeliebigerEindeutigerNameAN" bounds="66;20;200;200" path="images/an.png" show="false" conditions="{STRING;x=True;{k8055,DIN1}}" />
<CONTROL type="Image" id="BeliebigerEindeutigerNameAUS" bounds="66;20;200;200" path="images/aus.png" show="true" conditions="{STRING;x=False;{k8055,DIN1}}" />
</CONTROLS>
</SCREEN>
</SCREENS>
</SKIN>

Wie bereits geschrieben, musst du nun im passenden Unterordner images zwei BIlder haben. Einmal an.png und einmal aus.png

Der Ordner ist dann beim Skin Clean2 hier:

C:\Program Files (x86)\Centrafuse\Centrafuse Auto\Plugins\LogoDashboard\Skins\Clean2\images
(Je nachdem wo CF installiert ist)
Fillip13 - Mo 25 März, 2013 15:19
Titel:
Möchte nur ein Screen haben. Er soll mir einfach unten neben der Uhrzeit die Symbole anzeigen wenn aktiv... Habe jetzt alles so gemacht wie du beschrieben hast...

Hier mal ein Auszug:

<SKIN id="Clean2" bounds="178;394;138;86" intendedsize="800;480" >
<FONTCLASSES>
<FONTCLASS id="Label" font="Arial" color="#30aaf8" size="11" style="Bold" align="MiddleCenter" />
<FONTCLASS id="Date" font="Arial" color="#11ace4" size="11" style="Bold" align="MiddleCenter" />
</FONTCLASSES>
<SCREENS>


<SCREEN id="Logo">
<CONTROLS>
<CONTROL path="images/bild.png" type="Image" id="tflAN" bounds="69;16;25;25" path="images/tflan.png" show="false" conditions="{STRING;x=True;{k8055,DIN1}}" />
<CONTROL type="Image" id="tflAUS" bounds="69;16;25;25" path="images/tflaus.png" show="true" conditions="{STRING;x=False;{k8055,DIN1}}" />
</CONTROLS>
</SCREEN>
</SCREENS>
</SKIN>

k8055N ist angeschlossen. Wenn DIN1 geschaltetet wird passiert nix. Aber dein Plugin für die k8055N klappt gut. Dieses erkennt den Zustand und zeigt diesen auch an...
Stryder - Mo 25 März, 2013 15:38
Titel:
Je nachdem was du mit neben der Uhr meinst, ist deine Position (bounds) wahrscheinlich nicht ok. Die Position ist zwischen den Icons und der Uhr.

Ich schau mir das aber voraussichtlich morgen nochmal an, was da vom k8055 Plugin ausgegeben wird und ob das so passt. Mach auch mal vom LogoDashboard Plugin das Logging an und schau was da ausgegeben wird.
Fillip13 - Mo 25 März, 2013 15:45
Titel:
Also ich wollte die Icons in den Roten Bereich machen.

Und (wenn möglich) würde ich gerne auch die Aktuelle Geschwindigkeit in den Blauen bereich machen...


Habe das Loggen eingeschaltet. Wo speichert er die datei denn?
Stryder - Mo 25 März, 2013 15:52
Titel:
Im Moment geht nur ein Bereich im LogoDashboard. Also wirst du dich entscheiden müssen.

Die LogDatei ist unter C:\ProgramData\Centrafuse\Centrafuse Auto\DEINBENUTZERNAME\Plugins\LogoDashboard\
Fillip13 - Mo 25 März, 2013 15:55
Titel:
Dann nehme ich den Blauen Bereich denke ich mal... da ist mehr Platz Wink

Geht das aber mit der Geschwindigkeit? Und ich schau mal wegen der LOg datei glaube aber da war keine

EDIT: Ah Ups war im falschen Ordner


Das spuckt er aus:

42:18.39> eCamloTBs(): System.Collections.Generic.KeyNotFoundException: Der angegebene Schl?ssel war nicht im W?rterbuch angegeben.<CR><LF> bei System.ThrowHelper.ThrowKeyNotFoundException()<CR><LF> bei System.Collections.Generic.Dictionary`2.get_Item(TKey key)<CR><LF> bei LogoDashboard.Screen.updateButton(String bname, Boolean down)<CR><LF> bei LogoDashboard.bgForm.setButtonState(Int32 screenid, String bname, Boolean state, Boolean update)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:19.49> eCamloTBs(): System.Collections.Generic.KeyNotFoundException: Der angegebene Schl?ssel war nicht im W?rterbuch angegeben.<CR><LF> bei System.ThrowHelper.ThrowKeyNotFoundException()<CR><LF> bei System.Collections.Generic.Dictionary`2.get_Item(TKey key)<CR><LF> bei LogoDashboard.Screen.updateButton(String bname, Boolean down)<CR><LF> bei LogoDashboard.bgForm.setButtonState(Int32 screenid, String bname, Boolean state, Boolean update)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:20.49> eCamloTBs(): System.Collections.Generic.KeyNotFoundException: Der angegebene Schl?ssel war nicht im W?rterbuch angegeben.<CR><LF> bei System.ThrowHelper.ThrowKeyNotFoundException()<CR><LF> bei System.Collections.Generic.Dictionary`2.get_Item(TKey key)<CR><LF> bei LogoDashboard.Screen.updateButton(String bname, Boolean down)<CR><LF> bei LogoDashboard.bgForm.setButtonState(Int32 screenid, String bname, Boolean state, Boolean update)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:21.22> eCamloTBs(): System.Collections.Generic.KeyNotFoundException: Der angegebene Schl?ssel war nicht im W?rterbuch angegeben.<CR><LF> bei System.ThrowHelper.ThrowKeyNotFoundException()<CR><LF> bei System.Collections.Generic.Dictionary`2.get_Item(TKey key)<CR><LF> bei LogoDashboard.Screen.updateButton(String bname, Boolean down)<CR><LF> bei LogoDashboard.bgForm.setButtonState(Int32 screenid, String bname, Boolean state, Boolean update)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:22.25> eCamloTBs(): System.Collections.Generic.KeyNotFoundException: Der angegebene Schl?ssel war nicht im W?rterbuch angegeben.<CR><LF> bei System.ThrowHelper.ThrowKeyNotFoundException()<CR><LF> bei System.Collections.Generic.Dictionary`2.get_Item(TKey key)<CR><LF> bei LogoDashboard.Screen.updateButton(String bname, Boolean down)<CR><LF> bei LogoDashboard.bgForm.setButtonState(Int32 screenid, String bname, Boolean state, Boolean update)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:22.41> eCamloTBs(): Skinfolder: Clean2 exists.
42:22.42> eCamloTBs(): Skinfile: skin.xml exists
42:22.55> eCamloTBs(): Serial isnt specified or wrong
42:23.80> eCamloTBs(): System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.<CR><LF>Parametername: index<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException()<CR><LF> bei System.Collections.Generic.List`1.get_Item(Int32 index)<CR><LF> bei LogoDashboard.bgForm.getLastButtonEvent(Int32 screenid)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:23.81> eCamloTBs(): CF_pluginCMLCommand: Centrafuse.Main.MainMenu
42:24.67> eCamloTBs(): System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.<CR><LF>Parametername: index<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException()<CR><LF> bei System.Collections.Generic.List`1.get_Item(Int32 index)<CR><LF> bei LogoDashboard.bgForm.getLastButtonEvent(Int32 screenid)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:25.08> eCamloTBs(): System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.<CR><LF>Parametername: index<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException()<CR><LF> bei System.Collections.Generic.List`1.get_Item(Int32 index)<CR><LF> bei LogoDashboard.bgForm.getLastButtonEvent(Int32 screenid)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:25.25> eCamloTBs(): System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.<CR><LF>Parametername: index<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException()<CR><LF> bei System.Collections.Generic.List`1.get_Item(Int32 index)<CR><LF> bei LogoDashboard.bgForm.getLastButtonEvent(Int32 screenid)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:31.31> eCamloTBs(): System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.<CR><LF>Parametername: index<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException()<CR><LF> bei System.Collections.Generic.List`1.get_Item(Int32 index)<CR><LF> bei LogoDashboard.bgForm.getLastButtonEvent(Int32 screenid)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:33.32> eCamloTBs(): System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.<CR><LF>Parametername: index<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException()<CR><LF> bei System.Collections.Generic.List`1.get_Item(Int32 index)<CR><LF> bei LogoDashboard.bgForm.getLastButtonEvent(Int32 screenid)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:34.16> eCamloTBs(): System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.<CR><LF>Parametername: index<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException()<CR><LF> bei System.Collections.Generic.List`1.get_Item(Int32 index)<CR><LF> bei LogoDashboard.bgForm.getLastButtonEvent(Int32 screenid)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:35.68> eCamloTBs(): System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.<CR><LF>Parametername: index<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException()<CR><LF> bei System.Collections.Generic.List`1.get_Item(Int32 index)<CR><LF> bei LogoDashboard.bgForm.getLastButtonEvent(Int32 screenid)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:35.68> eCamloTBs(): CF_pluginCMLCommand: Centrafuse.Main.MainMenu
42:46.50> eCamloTBs(): System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.<CR><LF>Parametername: index<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException()<CR><LF> bei System.Collections.Generic.List`1.get_Item(Int32 index)<CR><LF> bei LogoDashboard.bgForm.getLastButtonEvent(Int32 screenid)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:46.51> eCamloTBs(): CF_pluginCMLCommand: Centrafuse.Main.MainMenu
42:47.33> eCamloTBs(): System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.<CR><LF>Parametername: index<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)<CR><LF> bei System.ThrowHelper.ThrowArgumentOutOfRangeException()<CR><LF> bei System.Collections.Generic.List`1.get_Item(Int32 index)<CR><LF> bei LogoDashboard.bgForm.getLastButtonEvent(Int32 screenid)<CR><LF> bei LogoDashboard.LogoDashboard.MouseUpEvent()
42:48.22> eCamloTBs(): CF_pluginClose
Alle Zeiten sind GMT + 1 Stunde
Powered by phpBB2 Plus and Kostenloses Forum based on phpBB