Foscam controls no longer work with UI5

It looks like it was a mistake on Florin’s part when naming the file. All files that are uploaded into Vera are compressed and use the lzo extension. You would just have to locate the file in the /etc/cmh-ludl/ directory and remove the file that you want. Obviously I would take caution to what files you remove.

  • Garrett

And as for the documented version of what @garrettwp said, here’s the wiki page.

@silvereagle2208

I actually meant:

rm /etc/cmh-ludl/I_FoscamPTZ.lzo

The correct file name is I_FoscamPTZ.xml.lzo, any Foscam file that doesn’t have this name is not used, so it can be deleted.

The only way to delete the extra URL variables is by editing the user_data. You can find the instructions here: http://forum.micasaverde.com/index.php/topic,8314.msg53832.html#msg53832

@mvcflorin

With regard of your post of May 21, 2012, 02:23:48 am and instructions your provided with http://forum.micasaverde.com/index.php/topic,8314.msg53832.html#msg53832

I have been busy with vacation and installing an additional Foscam FI8910W camera. Now I would like to work on eliminating the redundant URLs from Advanced Setting variables list used with my four Linksys WVC80N cameras. (It is interesting to note that the Advanced Settings lists for my Foscam Variables do not have redundant URLs, even thought both use the same device_file (D_DigitalSecurityCamera1.xml) and impl_file (I_FoscamPTZ.xml).

I have a couple of questions regarding the procedure, before I begin.

  1. I assume you need to do an SSH into Vera to run the procedure.
  2. You state the I need to make a backup of my current user_data. I assume that one needs to use a command similar to mv to create the backup. Is this correct? Is there any specific location to which I should create the backup of the user data?
  1. Yes.
  2. I usually use this command, but you can copy it where you want:
cp /etc/cmh/user_data.json.lzo /etc/cmh/user_data.json.lzo.bak

@mvcflorin

I have some questions regarding editing of the user_data.json file to remove extraneous variables:
What editor do you use? When I was in Vera’s open-wrt environment, I could only find the vi and vim editors. If I used the vi or vim editor, all I had was a single line of data that was extremely difficult to edit.

How do you extract all the data in the unpacked user_data.json file, so that it can be tested using http://jsonling.com? I tried using the vi yank command (yy), but it did not extract all the information.

I open the file with Notepad++ (using WinSCP), which has a shortcut to go to the matching brace. I found that in some cases if I format the Json to look nice and save it like this then LuaUPnP fails to open it, so I leave it in one line.

I use a dedicated JSON editor (on the Mac); SCP’ing the user_data from and to Vera.

I can control my Foscam FI8918W remotely (using VeraLite UI5), but it seems very clunky. When I use any of the PZT controls, I can’t SEE the camera image change. I have to click away from the Camera Control tab and then click on the Camera Control tab again to see where the camera is now pointing. It also does not appear that the image is streaming, which may be the problem.

Any ideas on how to fix this?

Please read this post: http://forum.micasaverde.com/index.php/topic,9312.msg71375.html#msg71375

@mcvflorin

I have a question regarding the removal of variables from the user_data.json file. Each variable in the user_data.jason file receives a sequential ID number. Now let’s suppose you have 15 variables with a number between 1 and 15. Now if you remove variables 9 and 10, do you have to change the variable number for variables 11 to 15 so that the variable numbering sequence is preserved or can Vera handle missing numbers in the variable numbering sequence?

@silvereagle2208

No, it doesn’t matter if the IDs are sequential or not.

Hi Guys
Thanks for the help in this post. Were any of you able to get the preset views working?
It is not implemented in this xml.

Thanks again

bbosch I got the presets working the following way.

  1. Uninstalled all camera plugins
  2. Installed the VistaCam plugin for UI5
  3. Added device manually as per this thread: http://forum.micasaverde.com/index.php/topic,14820.0.html
  4. In the advanced tab → device_file: D_DigitalSecurityCamera2.xml
  5. Advanced tab → impl_file: I_FoscamPTZ.xml

that seemed to work for me!