We have moved at community.getvera.com

Author Topic: Panasonic Camera Files and Creating a Linksys Plugin  (Read 2596 times)

Offline myhomeserver

  • Hero Member
  • *****
  • Posts: 874
  • Karma: +3/-5
  • http://www.MyZwave.net
Panasonic Camera Files and Creating a Linksys Plugin
« on: March 24, 2011, 12:43:29 pm »
I'd like to give something back here and have some API's for Linksys/Cisco cams that have Pan/Tilt/Zoom and would like to add a plugin for these so others using these cams can control them and add them easier in Vera

Can someone help me make a plugin package?  What files do I need?  I edited the Panasonic XML file and then uploaded it back up there to see if I could use the Panasonic XML plugin that I edited to control my Linksys WVC210.  No go.  Not sure where I went wrong, but 'd like to create a test package on my Vera and then submit it to MCV or up here for testing

Thanks for the help!
MyZWave.net - See Our Z-Wave product Reviews
(formerly MyHomeServer)

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: Panasonic Camera Files and Creating a Linksys Plugin
« Reply #1 on: March 25, 2011, 10:06:23 am »
At the moment it's not possible to create a plugin package.
We are working on a new plugin management system that will make creating, editing and testing plugin easier, but I can't give a date when this will be finished.

Offline myhomeserver

  • Hero Member
  • *****
  • Posts: 874
  • Karma: +3/-5
  • http://www.MyZwave.net
Re: Panasonic Camera Files and Creating a Linksys Plugin
« Reply #2 on: March 25, 2011, 02:31:42 pm »
ok, I've figured out how to edit the Panasonic implementation file and added some of the Linksys WVC210 commands so you can at least move the cam with the Pan/Tilt buttons.  There is a great thread from user Ap15e here http://forum.micasaverde.com/index.php?topic=3720.0 that was a big help

Please note if you have panasonic cams and do this, it will render them useless for PTZ commands


1) Install the Panasonic Cam Plugin
2) Setup the username, PW, Domain:Port and the URL is /img/snapshot.cgi
3) Save this, Vera will go busy for a few seconds while saving
4) CHECK THE CAMERA, CAN VERA SEE IT? IF YES, Continue, if not, try again from #1

5) Use the MIOS DEVELOPERS button in vera, then click on LUUP FILES tab
6) Scroll down, find I_PanasonicPTZ.xml, save it
7) Open in Wordpad or your fav editor
8) Replace contents with the contents below, Save
9) Back to Mios Developers, LUUP FILES, scroll to bottom, select the I_PanasonicPTZ.xml file we just saved
10) Select it, and make sure to check RESTART LUUP and thats it, You should now have PTZ support for your Linksys WVC210 in Vera


Once they make a plugin tool, I'll add another one for the Cisco/Linksys PVC300


Code: [Select]
<?xml version="1.0"?>
<implementation>
  <functions>
   function lug_startup(lul_device)
     lug_Username=luup.variable_get( "urn:micasaverde-com:serviceId:Camera1", "Username",lul_device)
     lug_Password=luup.variable_get( "urn:micasaverde-com:serviceId:Camera1", "Password",lul_device)
     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", "/img/snapshot.cgi", 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 .. '/pt/ptctrl.cgi?mv=L,10',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 .. '/pt/ptctrl.cgi?mv=R,10',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 .. '/pt/ptctrl.cgi?mv=U,10',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 .. '/pt/ptctrl.cgi?mv=D,10',5, lug_Username, lug_Password)
      </job>
    </action>
    <action>
      <serviceId>urn:micasaverde-com:serviceId:PanTiltZoom1</serviceId>
      <name>ZoomOut</name>
      <job>
        luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/pt/ptctrl.cgi?mv=R,10',5, lug_Username, lug_Password)
      </job>
    </action>
    <action>
      <serviceId>urn:micasaverde-com:serviceId:PanTiltZoom1</serviceId>
      <name>ZoomIn</name>
      <job>
        luup.inet.wget('http://' .. luup.devices[lul_device].ip .. '/pt/ptctrl.cgi?mv=L,10',5, lug_Username, lug_Password)
      </job>
    </action>
  </actionList>
</implementation>
« Last Edit: March 25, 2011, 02:33:13 pm by myhomeserver »
MyZWave.net - See Our Z-Wave product Reviews
(formerly MyHomeServer)