@elena said:
Can you help me to address this add-on?
Can you confirm that this link is to the specification you mentioned: https://eww.pass.panasonic.co.... ?
Looking at that document, it appears you can control the device by sending HTTP requests to structured URLs.
So you should be able to use the 'Get/Post URL Text' actor in the default get mode.
On page 8 of the pdf, it suggests that the URL structure: http://[IP Address]/cgi-bin/aw_ptz?cmd=[Command]&res=[Type]
will allow you to control the device. There are a number of URL examples on that page, as well the Placeholders [IP Address], [Command], and [Type] are defined.
Once you know the IP address of the unit it should be a matter of building the URL, entering it into the URL input of the 'Get/Post URL Text' actor and triggering Go.
Once sent, the device will respond with a text message that you will get from the 'url text' ouput of the 'Get/Post URL Text' actor. (200 OK... means it worked)
On page 11 we can see some commands for turning on/off the device, with an example URL to reference.
NOTE: something that might be confusing is how the Command (made of the Command + Data text) needs to be URL encoded for the URL text.
In the table on page 11 we see:
The Power On control Command text is "#0"
and the Data value for On is "1"
So we might expect to put "#01" in the URL, however, this needs to be URL encoded. Once encoded it is "%2301"
so the URL to turn on the device is:
http://[IP Address]/cgi-bin/aw_ptz?cmd=%23O1&res=1
and the URL for turning it off is
http://[IP Address]/cgi-bin/aw_ptz?cmd=%23OO&res=1
Luckily there are many free tools online to URL encode text for you. I used https://www.urlencoder.org/
OR you can easily use the Javascript actor to create a tool for quick encoding in Isadora
This script is all you need in the javascript actor to encode a text input into URL encoded Text.
// iz_input 1 "Text"
// iz_output 1 "URL encoded"
function main()
{
var value = arguments[0]
var encodedValue = encodeURIComponent(value)
return encodedValue;
}
I hope this gets you started.