Help with http/CGI lua script for air conditioner

Hi guys,
Hoping you can give me a kick start.
I have a Daikin Air Conditioner with a Skyfi controller and app.
The Skyfi controller runs a web server which I can access with the following browser command (password hidden):

http://192.168.0.223:2000/ac.cgi?pass=XXXXX

This returns:

opmode=1&units=.&settemp=27.0&fanspeed=3&fanflags=1&acmode=8&tonact=0&toffact=0&prog=0&time=05:12&day=3&roomtemp=26&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errcode=&sensors=1

What is the best way to create a device in Vera and return some of the variable names and values so I can view the status. Can anyone give me some script to experiment with?

I only need the following five variables displayed in the device:

opmode (1=on, 0=off)
setemp (celcius)
fanspeed (1=low, 3=high)
acmode (2 = Heat, 4 = Dry, 8 = Cool, 16 = Fan)
roomtemp (celcius)

If you can help me get that working I’ll next think about controlling the AC settings via vera with:

http://192.168.0.223:2000/set.cgi?pass=XXXXX&p=1&t=20&f=1&m=2

Power (1, 0)
p=1

Set Temperature (16-32)
t=20

Set Fan Speed (1-3)
f=1

Set Mode (2, 4, 8, 16)
m=2

This command works from my browser but I have even less idea about how to make it work through Vera.

Thank you in advance for any help you can give.

Source: http://forums.whirlpool.net.au/archive/2440219

Theres a (Beta) plugin for this… HERE.

Doh. Thanks!