Webcam Dropbox Uploader - a plugin to store images to dropbox

[quote=“martin12345, post:54, topic:176879”]If you restart your vera, that will cause it to run the startup code, which always takes a picture. I can’t see any other way it would have been triggered.

Martin[/quote]

It is the Vera restart. Every time Vera restarts i have a picture of every camera in my dropbox. In a way thats a good way to see how many restarts i have as i havent managed to install datamine and a usb stick

Glad you like that. It was a bug not a feature though, and in the next version it won’t automatically take a picture at restart if you have the update frequency set to 0. If you want to retain the existing behaviour of taking a picture at reboot even if you turn off auto-upload, just add a service call to your lua startup code.

Martin

My dropbox plugin has been working fine for some time now. I have not touched it or changed anything, but the last few days i quite often get a dropbox startup lua failed error on rebooting or saving settings on Vera. It does go away after a few reboots, but something is wrong… This morning i have rebooted 3 times already but the error is still there. Dropbox works fine on my iphone app as well as on my PC.

Can you look in your log files to see what the actual error is?

Martin

This is part of the log file, i think it might contain what you are looking for. I have a much bigger log file but i would have to email that to you

50 10/18/13 20:12:55.328 luup_log:304: Dropbox update frequency= 0 minutes <0x2bd13680>
01 10/18/13 20:12:56.657 LuaInterface::CallFunction_Startup-1 device 304 function lug_startup failed [string “-------------------------------------------…”]:366: Unexpected character at Line 1 character 164: ] (93) when reading array ({ or [ or ’ or " or number or boolean or null expected)
Context:
": “app_folder”, “contents”: [], “icon”: “folder”}
^ LEAK this:368640 start:1740800 to 0x1413000 <0x2bd13680>
01 10/18/13 20:12:56.658 LuImplementation::StartLua running startup code for 304 I_WebcamDropboxUploader1.xml failed <0x2bd

[quote=“mikee123, post:65, topic:176879”]This is part of the log file, i think it might contain what you are looking for. I have a much bigger log file but i would have to email that to you

50 10/18/13 20:12:55.328 luup_log:304: Dropbox update frequency= 0 minutes <0x2bd13680>
01 10/18/13 20:12:56.657 LuaInterface::CallFunction_Startup-1 device 304 function lug_startup failed [string “-------------------------------------------…”]:366: Unexpected character at Line 1 character 164: ] (93) when reading array ({ or [ or ’ or " or number or boolean or null expected)
Context:
": “app_folder”, “contents”: [], “icon”: “folder”}
^ LEAK this:368640 start:1740800 to 0x1413000 <0x2bd13680>
01 10/18/13 20:12:56.658 LuImplementation::StartLua running startup code for 304 I_WebcamDropboxUploader1.xml failed <0x2bd[/quote]

I think that error comes from the json parser. The only place that is used is to delete the old webcam files from your folder. Have you added or renamed files in the dropbox folder Apps/Vera Camera Archive? Or is there perhaps some corruption in that folder? It’s possible that it is returning data that the json parser doesn’t handle.

No i have not touched anything in that folder. How can i get rid of that error ? I do not need any of the pictures in that folder, so if i need to delete them it would not be a problem

Completely emptying the folder would be worth a try, but you might want to try re-authorizing first. Clear out the AccessToken and AccessTokenSecret fields to re-authorize.

Martin

[quote=“martin12345, post:68, topic:176879”]but you might want to try re-authorizing first. Clear out the AccessToken and AccessTokenSecret fields to re-authorize.

Martin[/quote]

I have tried that. After i removed the AccessToken and AccessTokenSecret and saved, the error was gone. I re-authorised, everything looked ok but after save the error was back. In the dropbox device it says authorised.

[quote=“mikee123, post:69, topic:176879”][quote=“martin12345, post:68, topic:176879”]but you might want to try re-authorizing first. Clear out the AccessToken and AccessTokenSecret fields to re-authorize.

Martin[/quote]

I have tried that. After i removed the AccessToken and AccessTokenSecret and saved, the error was gone. I re-authorised, everything looked ok but after save the error was back. In the dropbox device it says authorised.[/quote]
Removing the AccessToken would stop the error, because it would stop it even trying to connect to Dropbox. Did you try removing the files?

Not yet, i did not get a chance beeb out most of the day. Will try that tomorrow.

I just tried. The Vera folder in Apps was empty anyway, so i just deleted that folder, and reloaded but error is still there

[quote=“mikee123, post:71, topic:176879”]Not yet, i did not get a chance beeb out most of the day. Will try that tomorrow.

I just tried. The Vera folder in Apps was empty anyway, so i just deleted that folder, and reloaded but error is still there[/quote]
The only other thing I can think is perhaps your vera files have become corrupted. Uninstall the dropbox plugin, then reinstall it.

Martin

That must have been the problem. I uninstalled and reinstalled the plugin and the error is gone

HELP! does this plug-in erase directories after a certain number?

I am missing weeks of photos that I’ve snapshotted and stored in DropBox and now only have folders for the month of December.

Where is september, october, november???

thanks for any assistance, DropBox.com shows nothing earlier than Dec 1

Yes, the plugin has a setting for the number of days to keep. It’s called “Days To Keep”, and it defaults to 14. Change it to however large you like, or set it to 0 to keep everything for ever.

Martin

This app works great. I have several cams, but would like to select only certain ones for the upload to Dropbox. How can this be accomplished? Thanks

Set the update frequency to 0 to stop the auto upload of all cameras, then create an automated task which runs however often you want, and put the following code in there;

lul_settings={}
lul_settings[“webcamNumber”]=number of your webcam device
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader1”,“SendSnapshot”, lul_settings,number of your dropbox uploader device)

You can repeat the last 2 lines for as many cameras as you want to upload from

Martin12345,

Thank You so much - your info will be most helpful!

Hi and thank you very much for this great plugin.
I do have a feature request related to the demand of Jethigh
I like the idea of autoupload of all cameras but as I have a camera in my Karotz… there is always a broken image (the 1k image in other previous posts…) uploaded with this setting.
Would it be possible to have a parameter where we could put excluded id’s of camera (=that would not be part of the auto-upload of all cams)?
I think it would be more easy than creating a scene that would do almost the same as the basic behaviour of the plugin…
BR

Is there a way with this plugin to upload files set off by the camera own settings (example my Foscam is set to take a photo when motion is detected on a sensor). I didn’t see a way to have the plugin detect this event in the Foscam plugin to upload to Dropbox.

Sent from my iPhone using Tapatalk