Virtual Input Text
Einklappen
X
-
Virtual Input Text
Hi, why isn't possible to display text from a virtual input? For example I want to display content_type: "audio/mpeg" but I get 0 instead of audio/mpeg. Any help on how to display it would be great. The text is coming from an API call. -
Getting text is only possible if you push it via HTTP Rest interface from your connected device to the Miniserver.
The HTTP Input can only read values.
By using \1 in the recognition you can get the ascii code of one single letter. This is useful to recognize TRUE or FALSE (ascii of T or ascii of F), and process the ascii value in a status block.
PS: To answer the question about "why": Because Loxone didn't implement this.Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine -
Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraineKommentar
-
\2, \3 and \4 is a known issue of the plugin (see wiki).
Simply use
"L_pump":"\1Zuletzt geändert von Christian Fenzl; 24.09.2020, 09:39.Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraineKommentar
-
Hi All,
I've tried the above but the result stays the same...
if my L_pump is true the value is 34 (also in loxone) .... if my L_pump is false the value is also 34 (also in loxone)
I now understand why it stays the same... ASCII 34 has value "
How can I get the command to move 1 character further so that it detects the letter t or f (true or false)
thanks in advance!
Jimmy
Kommentar
-
Double-Check the syntax in my post!Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraineKommentar
Kommentar