Now working IPUX cam ptz

I used the “I_Dlink5300.xml” luup file and modified it so that now PTZ functions on IPUX cameras. I disabled the zoom function buttons since they are not used on the IPUX. I tested and it works for my IPUX 2330 cam.

However I would like to add code to this to also have my 8 IPUX presets working. I am using the Generic cam in UI5 on a Vera3. I have no preset buttons when I go into the wrench.

How can I add buttons in the Generic cam UI? I think I can sort out mapping them.

Also I am a newbi and so I don’t know how to post my I_PUX2330.xml file here if somebody wants to use it.

Thanks.

here is the file code:

<?xml version="1.0"?> <implementation> <functions> function lug_startup(lul_device) lug_Username = luup.devices[lul_device].user lug_Password = luup.devices[lul_device].pass lug_Path = luup.variable_get("urn:micasaverde-com:serviceId:Camera1", "URL", lul_device) if (lug_Path == nil or lug_Path == "" ) then luup.variable_set("urn:micasaverde-com:serviceId:Camera1", "URL", "/cgi-bin/video.jpg?size=3", lul_device) end end </functions> <startup>lug_startup</startup> <actionList> <action> <serviceId>urn:micasaverde-com:serviceId:PanTiltZoom1</serviceId> <name>MoveLeft</name> <job> luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/admin/ptctl.cgi?move=left',5, lug_Username, lug_Password) </job> </action> <action> <serviceId>urn:micasaverde-com:serviceId:PanTiltZoom1</serviceId> <name>MoveRight</name> <job> luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/admin/ptctl.cgi?move=right',5, lug_Username, lug_Password) </job> </action> <action> <serviceId>urn:micasaverde-com:serviceId:PanTiltZoom1</serviceId> <name>MoveUp</name> <job> luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/admin/ptctl.cgi?move=up',5, lug_Username, lug_Password) </job> </action> <action> <serviceId>urn:micasaverde-com:serviceId:PanTiltZoom1</serviceId> <name>MoveDown</name> <job> luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/admin/ptctl.cgi?move=down',5, lug_Username, lug_Password) </job> </action> </actionList> </implementation>