Chromoflex RC Steuerung mit RGB Fader und Color Picker

olla Jens,

freut mich das es wenigstens einer Testet;).
Variablen Profil ist einleuchtent werde ich überarbeiten. Da in den neusten Versionen die Abfrage ob Manuell oder nicht sehr wichtig ist.
Warmweiß, Kaltweiß ect wurden absichtlich entfärnt. Da wir unsere Farben nicht mehr per Herstellertable sondern per Fader und Picker setzen wollen.
In den kommenden Versionen soll es eine Programiermögllichkeit aus dem WebFront für Farben und Chromoprogramme geben.
Hierbei brauche ich dann aber Hilfe. Das kann ich nicht aleine.

jedoch sollte die colorpicker1.php sich die chromo_id aus „variablenidsrgbsteuerungchromoflexIIIRC“ per include hollen.

Prüf das Bitte doch mal. Oder hast du die Dateien vor der Installation nicht ausgetaucht?
Hab mir echt ein an den Kopf gedacht wie ich das löse.

Gruß Nick

Mein Fehler … dein Zipfile war anders aufgebaut (1. Version war ein Ordner) und ich hab das Ergebnis beim Entpacken nicht überprüft.

Das mit den fehlenden Buttons kann man doch sicher irgendwie lösen, oder? Ne Idee wie man da manuell ein paar Werte vorgeben kann?

Gruß
Jens

Jens werde dir mal nen Sript bauen welche dir die Buttens für die festen Farben im Hersteller Tool esrtellt.

Gruß Nick

So habe mal was gebastelt.

@Jens

1 .Intiger Variable erstellen. Habe Sie bei mir „Hersteller Farben“ genant.
2. Script erstellen auch „Hersteller Farben“
3. Im Script die ID von deiner neuen Variable eintragen.
4. Neues Variablen Profil anlegen siehe Bild.
5. Deiner Variablen unter „Eigener Aktion“ das Script zuordnen.



<?
// Variablendifinition zum einfach Transport

define("HerstellerFarben",  56672 /**/, true);         // ID der Variable HerstellerFarben (HerstellerFarben kommen von 0-24)

/// Datei mit den IDs holen
$ScriptID = @IPS_GetScriptID("variablenidsrgbsteuerungchromoflexIIIRC"); // ID vom Script suchen
$scriptdir = $ScriptID.'.ips.php'; 	//Pfad zusammensetzen

include $scriptdir; // Script includiren

// WebFront werte an Variablen zurückgeben
if($IPS_SENDER == "WebFront")
{
    SetValue($IPS_VARIABLE, $IPS_VALUE);
}

// Variablenwerte einlesen
$dimmer        = GetValue(dimmer);
$programm    = GetValue(programm);
$objectId   = chromo_id;
$HerstellerFarben = GetValue(HerstellerFarben);

//Farbpalette (wie die im Herstellertool)
$cf_color_table=array(
    array(255, 0, 0),                /*/0: Rot */
    array(255, 20, 0),            /*/1: Hell3rot */
    array(255, 40, 0),            /*/2: Hell2rot*/
    array(255, 80, 0),            /*/3: Hellrot*/
    array(255, 120, 0),            /*/4: Orange*/
    array(255, 255, 0),            /*/5: Gelb*/
    array(200, 255, 0),            /*/6: Gruengelb*/
    array(100, 255, 0),            /*/7: Hellgruen*/
    array(0, 255, 0),            /*/8: Reingruen*/
    array(0, 255, 80),            /*/9: Leicht Indigo*/
    array(0, 255, 144),            /*/10: Indigo*/
    array(0, 255, 255),           /*/11: Hellblau*/
    array(0, 100, 255),            /*/12: Hellblau*/
    array(0, 50, 255),            /*/13: Dunkelblau*/
    array(0, 0, 255),                /*/14: Royal*/
    array(50,    0, 255),        /*/15:*/
    array(100, 0, 255),            /*/16:*/
    array(255, 0, 255),            /*/17: Magenta*/
    array(255, 0, 100),            /*/18 */
    array(255, 0, 50),            /*/19 */
    array(255, 255, 255),            /*/ 20 *Weiss */
    array(255, 255, 80),            /*/ 21 Ungefaehr Weiss*/
    array(120, 255, 120),            /*/ 22 Ungefaehr Weiss*/
    array(190, 255, 180),            /*/ 23 Ungefaehr Weiss*/
    array(160, 255, 255)            /*/ 24 Ungefaehr Weiss */
);

// Passende Funktion für Palette
function ChromoflexRC_SetPalColor($objectId, $palColor, $dimmer) {
    global $cf_color_table;
    ChromoflexRC_SetColor($objectId, $cf_color_table[$palColor][0],$cf_color_table[$palColor][1],$cf_color_table[$palColor][2],$dimmer);
}

// Funktionsaufruf anhand des gedrückten Buttens im WebFront.
ChromoflexRC_SetPalColor($objectId, $HerstellerFarben, $dimmer);
SetValue(programm, 99);
?>

Sollte dann wie bei mir aussehen.

Wen algemeines Interesse daran bestehen das in die RGB Steuerung mit aufzunehemen ist das kein Problem.

Gruß Nick

Ja…ich denke das macht Sinn… Wobei die Lösung von Huelke halt leider nicht langfristig als Basis im IPS dienen könnte… Er ist halt lange nicht mehr hier vorbei gekommen und jedes Upgrade hatte so seine Tücken…

Hi,

leider bekomme ich die neue Version nicht so richtig zum laufen. :frowning:

Wenn ich ein Programm (z:b: Burst) wird eine Fehlermeldung generiert, siehe Screenshot. Das Programm wird jedoch ausgeführt.
Ich glaube dass das mit dem Variablenprofil zusammenhngt, komme aber nicht weiter. Bin über Hilfe von Euch sehr dankbar.:stuck_out_tongue:

Gruß

Darklord

Die Fehlermeldung sagt dir doch wo das Problem liegt !? Sript, Zeile und die Variable werden doch genannt! :confused:

Hast du dich an die neue Anleitung gehalten?

@ Darklord

leg dir mal nen Script an und Copier das hier rein.


if (IPS_VariableProfileExists(".ChromoProgramm")==False)
	{
		IPS_CreateVariableProfile(".ChromoProgramm", 1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 0, "Aus","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 1, "Speichern/Aus","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 2, "Feste Farbe","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 3, "FW Normal","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 4, "FW Mittel","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 5, "FW Langsam","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 6, "Blob","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 7, "LSD","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 8, "Feuer","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 9, "Blitz","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 10, "Burst","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 11, "User 1","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 12, "User 2","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 13, "User 3","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 14, "Strobo langsam","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 15, "Strobo mittel","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 16, "Strobo schnell","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 99, "Manuell","",-1);
	}
else {
      IPS_DeleteVariableProfile(".ChromoProgramm");
      IPS_CreateVariableProfile(".ChromoProgramm", 1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 0, "Aus","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 1, "Speichern/Aus","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 2, "Feste Farbe","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 3, "FW Normal","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 4, "FW Mittel","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 5, "FW Langsam","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 6, "Blob","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 7, "LSD","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 8, "Feuer","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 9, "Blitz","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 10, "Burst","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 11, "User 1","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 12, "User 2","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 13, "User 3","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 14, "Strobo langsam","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 15, "Strobo mittel","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 16, "Strobo schnell","",-1);
		IPS_SetVariableProfileAssociation(".ChromoProgramm", 99, "Manuell","",-1);
		}



einfach ausführen. Danach sollte es gehen.
Wen nicht PN an mich dann schauen wir mal wo es hängt.

Gruß Nick

Ich hoffe doch. Mann munkelt man Arbeitet dran. Ich gebe die Hofnung aber nicht auf das Huelke zurück kommt.

Oder jemand die Befehle von Ihm in ein neues Modul portiert.
Will auf keinen Fall in IPS 2.5 auf Chromoflex verzichten.

Gruß Nick

So, Erweiterung mit den festen Farben eingebaut und erfolgreich getestet! Fehler habe ich keine gefunden :wink:
Klappt einwandfrei, vielen Dank dafür … auch von meiner Frau !

Gruß
Jens

Hallo,

Nick, danke für Deine Mühe wegen dem extra-Script.
Hat leider auch nicht funktioniert.
Keine Ahnung wieso, ich habe nun eine Backup eingespielt, das Script neu installiert und nun funktioniert alles ohne Fehler.:confused:

Nochmal Danke für das Script.
Meine Lebensgefährtin ist ebenfalls begeistert. :smiley:

Nur wird bei meinem Archos noch immer das Eingabefeld geöffnet, aber damit kann man leben. :slight_smile:

Gruß

Darklord

@Darklord dan ist doch alles Tuti :wink:

Touchoptimirung kommt in v1.2 mit den Color Buttens Gruß Nick.

Hi,

Du gibst Dir wirklich alle Mühe. :stuck_out_tongue:
Freue mich schon…

Gruß

Darklord

Version 1.2 der RGB Steuerung ist releaste.

Wie immer Bugreport und Wünsche Posten.

@tetrapack du brauchst eigentlich nichts ändern außer die Dateien aus dem Zip file zu aktualisieren da du das ja schon mit der anderen Lösung implementiert hast.

Gruß an alle
Nick

Hi Nick,

funktioniert so weit ganz gut.
Über mein Archos 70 wird nun, nach einigen Testen, das Texteingabefeld nicht mehr geöffnet.
Allerdings wird bei Betätigung der „Hacken“-Taste im Colorpicker diese Taste
und die Anzeige für den Hex-Code eininge Zeilen nach unten verschoben.
Erst nach neu Laden der Seite wird wieder ein normale Ansicht dargestellt.
Bei erneuter Ausführung tritt dieses Verhalten wieder auf.:confused:

Gruß

Darklord

Ich muss mal nen Screanshoot von dem Achros haben.

Ich denke das der Picker keinen Platz hat sich auszudehnen.
Was ist den die Auflösung von dem Teil?

Gruß Nick

Hi Nick,

macht keinen Unterschied, ob Archos oder Rechner mit Firefox.
Dieses Verhalten tritt bei Beiden auf.

Gruß

Darklord

Tausch mal die colorpicker.php Dateien durch durch die des v1.2 files

Brauche trozdem ein screnshot.

Hi,

selbstverständlich habe ich die Dateien durch die neuen ausgetauscht.:slight_smile:

Hier die Screenshots:

Ja aber dich nicht an die Update anleitung gehalten :wink:
Prüfe mal wie deine „variablenidsrgbsteuerungchromoflexIIIRC“
und ob dort die Konstante HerstllerFarben definiert ist mit richtiger ID.


<?
    	define("chromo_id",  35602 /**/, true);    // ID der ChromoFlex Instanz
    	define("dimmer",     47298 /**/, true);    // ID der Variable DIMMER
    	define("dimmer_prg", 22793 /**/, true);    // ID der Variable DIMMER_PRG
    	define("programm",   32322 /**/, true);    // ID der Variable PROGRAMM (Programm kommen von 1-18)
    	define("rgbfader",    27671 /**/, true); ;    // ID der Variable RGB Steuerung mit dem HEXCOLOR Profil
    	define("HerstellerFarben",29506 /**/, true); ;
?>


Sollte so aussehen wen nicht musst das noch gerade rücken.