the general problem in the shellswitch getcommand or other executing
is, that pimatic try to interprete the code within the “…”
Pimatic-Shell-Switch General Problem
the general problem in the shellswitch getcommand or other executing
is, that pimatic try to interprete the code within the “…”
now i am searching for a way to send curl data as binary date,…may this could solve every problem…
my idea is to capture the binary code with wireshark and send it via “curl --data-binary”
@bootinterupt said in Pimatic-Shell-Switch General Problem:
thanks for your idea, i have tested this
put that won´t workthis command…curl --silent -d \“<YAMAHA_AV cmd=\“GET\”><Main_Zone><Power_Control><Power>GetParam</Power></Power_Control></Main_Zone></YAMAHA_AV>\” http://192.168.1.13/YamahaRemoteControl/ctrl | grep On | cut -f5 -d ‘>’| cut -f1 -d ‘<’
will result…
bash: Syntaxfehler beim unerwarteten Wort »<«
in bash console, and in config.json the state is always “null” because of syntax error
You also need to escape all (!) your < and > statements, also in bash itself. Normally these < and > are used for redirecting data/commands, etc.