Webcam Dropbox Uploader - a plugin to store images to dropbox

If you want to write to 5 out of 7 cameras, you’ll need to disable automatic writing, and add a scene to write 5 times, e.g.

lul_settings={}
lul_settings[“webcamNumber”]=71
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2”,“SendSnapshot”, lul_settings,104)
lul_settings[“webcamNumber”]=72
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2”,“SendSnapshot”, lul_settings,104)
lul_settings[“webcamNumber”]=75
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2”,“SendSnapshot”, lul_settings,104)
lul_settings[“webcamNumber”]=76
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2”,“SendSnapshot”, lul_settings,104)
lul_settings[“webcamNumber”]=77
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2”,“SendSnapshot”, lul_settings,104)

Hi,

I’ve got the latest Vera Edge firmware and V2 of the Webcam Dropbox module installed. I’ve set the interval for 3 minutes and all three of my cameras uploads an image every three minutes without failure.

However, I’m not managing to get pictures uploaded using the following luup code, neither in scenes or via PLEG.

lul_settings={} lul_settings["webcamNumber"]=304 luup.call_action("urn:milliesoft-com:serviceId:WebcamDropboxUploader2:1","SendSnapshot", lul_settings,313)

I would like to trigger an image to be sent when an armed sensor detects movement. With version 1 i successfully used the following to trigger a series of images which were sent without issues to dropbox:

[code]local loopNumber=0

function sendImageFromWebcam(lul_data)
lul_settings={}
lul_settings[“webcamNumber”]=lul_data
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader1”,“SendSnapshot”, lul_settings,104)
loopNumber=loopNumber+1
if (loopNumber<5) then
luup.call_delay(‘sendImageFromWebcam’,2,lul_data,true)
end
end

sendImageFromWebcam(304)[/code]

But that doesn’t work either, modified for V2 to:

[code]local loopNumber=0

function sendImageFromWebcam(lul_data)
lul_settings={}
lul_settings[“webcamNumber”]=lul_data
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2:1”,“SendSnapshot”, lul_settings,313)
loopNumber=loopNumber+1
if (loopNumber<3) then
luup.call_delay(‘sendImageFromWebcam’,2,lul_data,true)
end
end

sendImageFromWebcam(304)[/code]

What am i missing?

Thanks!
/Tim

Webcam Dropbox Uploader V2 does not work for me. I have VeraEdge, firmware 1.7.2139. what do I have to do?

what you need to do is describe your problem in a bit more detail than just “it doesn’t work for me”.

what you need to do is describe your problem in a bit more detail than just “it doesn’t work for me”.[/quote]

I fail to receive pictures in Dropbox using the following code

lul_settings={}
lul_settings[“webcamNumber”]=86
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2:1”,“SendSnapshot”, lul_settings,111)

what you need to do is describe your problem in a bit more detail than just “it doesn’t work for me”.[/quote]

I fail to receive pictures in Dropbox using the following code

lul_settings={}
lul_settings[“webcamNumber”]=86
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2:1”,“SendSnapshot”, lul_settings,111)[/quote]

Somehow we have got a stray “:1” in some of the comments in the forum. The correct code should be;

lul_settings={}
lul_settings[“webcamNumber”]=86
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2”,“SendSnapshot”, lul_settings,111)

what you need to do is describe your problem in a bit more detail than just “it doesn’t work for me”.[/quote]

I fail to receive pictures in Dropbox using the following code

lul_settings={}
lul_settings[“webcamNumber”]=86
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2:1”,“SendSnapshot”, lul_settings,111)[/quote]

Somehow we have got a stray “:1” in some of the comments in the forum. The correct code should be;

lul_settings={}
lul_settings[“webcamNumber”]=86
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader2”,“SendSnapshot”, lul_settings,111)[/quote]

Thank you very much. Works.

I have placed the following on a scene under LUA

local loopNumber=0

function sendImageFromWebcam(lul_data)
lul_settings={}
lul_settings[“webcamNumber”]=lul_data
luup.call_action(“urn:milliesoft-com:serviceId:WebcamDropboxUploader1”,“SendSnapshot”, lul_settings,128)
loopNumber=loopNumber+1
if (loopNumber<3) then
luup.call_delay(‘sendImageFromWebcam’,5,lul_data)
end
end
sendImageFromWebcam(86)

It gives me an error ’ Error in lua for scenes and events;. What am I doing wrong ? Regards,

I seen one advertised a while back. I think it was over 1000 Think the wife will still go for it?

Hi,
App. is running as it should with my 3 cameras and VeraPlus UI7, but the “cleanup” never seems to happen. I have it set to keep the directories for 7 days, but have to delete the daily directories manually in my Dropbox, as the 7 day “keep” does not seem to function. Any ideas on what I should do from here to get this part of the plugin working?
Thanks.

Here is a log snip showing the failure to delete the older folders:
50 02/19/17 15:31:24.709 luup_log:17: Failed to delete folder 2017_02_03 <0x75701520>
50 02/19/17 15:31:24.710 luup_log:17: Failed to delete folder 2017_02_04 <0x75701520>
50 02/19/17 15:31:24.710 luup_log:17: Failed to delete folder 2017_02_05 <0x75701520>
50 02/19/17 15:31:24.710 luup_log:17: Failed to delete folder 2017_02_06 <0x75701520>
50 02/19/17 15:31:24.711 luup_log:17: Failed to delete folder 2017_02_07 <0x75701520>
50 02/19/17 15:31:24.711 luup_log:17: Failed to delete folder 2017_02_08 <0x75701520>
50 02/19/17 15:31:24.711 luup_log:17: Failed to delete folder 2017_02_09 <0x75701520>
50 02/19/17 15:31:24.712 luup_log:17: Failed to delete folder 2017_02_10 <0x75701520>
50 02/19/17 15:31:24.712 luup_log:17: Failed to delete folder 2017_02_11 <0x75701520>
50 02/19/17 15:31:24.712 luup_log:17: Failed to delete folder 2017_02_12 <0x75701520>
50 02/19/17 15:31:24.713 luup_log:17: Dropbox done cleaning up <0x75701520>
04 02/19/17 15:31:51.246 <0x76b01520>
Must be a problem with the permissions?

Has anyone noticed files intermittently not making it to Dropbox? I had an issue yesterday that I wanted to check so I looked at Dropbox and found only files from five days ago and last year. I logged on to my Vera and checked on the plugin then noticed that files from today are showing up in Dropbox. I am not sure if accessing Dropbox or accessing Vera triggered the files being saved again.
Any thoughs?

Awesome work dude. That was exactly what I was searching for.

I love this plugin and have been using it flawless for a year or so. But today it stopped working. When looking at the logs, I find the rows below. I have tried searching for similar errors but end up short. Has anyone in here experienced something similar and can give me some words on how to proceed?

02 09/29/17 23:34:09.343 Device_Basic::AddPoll 58 poll list full, deleting old one <0x72d3a520> 06 09/29/17 23:34:09.344 Device_Variable::m_szValue_set device: 58 service: urn:micasaverde-com:serviceId:HaDevice1 variable: PollRatings was: 5.00 now: 5.00 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x72d3a520> 50 09/29/17 23:34:10.189 luup_log:56: Dropbox file for webcam 58 sending failed <0x77a2a320> 50 09/29/17 23:34:10.189 luup_log:56: {"error": "v1_retired"} <0x77a2a320> 04 09/29/17 23:34:10.190 <0x77a2a320> 50 09/29/17 23:34:10.191 luup_log:56: sending device 54 images to Dropbox 56 <0x77a2a320>

[quote=“RoffeRuff, post:254, topic:176879”]I love this plugin and have been using it flawless for a year or so. But today it stopped working. When looking at the logs, I find the rows below. I have tried searching for similar errors but end up short. Has anyone in here experienced something similar and can give me some words on how to proceed?

02 09/29/17 23:34:09.343 Device_Basic::AddPoll 58 poll list full, deleting old one <0x72d3a520> 06 09/29/17 23:34:09.344 Device_Variable::m_szValue_set device: 58 service: urn:micasaverde-com:serviceId:HaDevice1 variable: PollRatings was: 5.00 now: 5.00 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x72d3a520> 50 09/29/17 23:34:10.189 luup_log:56: Dropbox file for webcam 58 sending failed <0x77a2a320> 50 09/29/17 23:34:10.189 luup_log:56: {"error": "v1_retired"} <0x77a2a320> 04 09/29/17 23:34:10.190 <0x77a2a320> 50 09/29/17 23:34:10.191 luup_log:56: sending device 54 images to Dropbox 56 <0x77a2a320>[/quote]

Now, I just found some more info relating to this issue on https://www.2doapp.com/kb/article/i-get-a-v1_retired-error-message-when-trying-to-sync-with-dropbox.html
Apparently, Dropbox has retired their V1 API, so the uploader will not be working until it is calling for the V2 API. Does anyone know if there’s an updated version of the Plugin out there?

[quote=“RoffeRuff, post:255, topic:176879”]Now, I just found some more info relating to this issue on https://www.2doapp.com/kb/article/i-get-a-v1_retired-error-message-when-trying-to-sync-with-dropbox.html
Apparently, Dropbox has retired their V1 API, so the uploader will not be working until it is calling for the V2 API. Does anyone know if there’s an updated version of the Plugin out there?[/quote]

I will keep answering my own questions:
No, there is no updated version of the plugin. Dropbox confirms that they smoked the V1 API just now: API v1 Shutdown Details - Dropbox

So, how to resolve this issue? Can anyone get in touch with the developer and see if he or she can release an updated version?

[quote=“RoffeRuff, post:256, topic:176879”][quote=“RoffeRuff, post:255, topic:176879”]Now, I just found some more info relating to this issue on https://www.2doapp.com/kb/article/i-get-a-v1_retired-error-message-when-trying-to-sync-with-dropbox.html
Apparently, Dropbox has retired their V1 API, so the uploader will not be working until it is calling for the V2 API. Does anyone know if there’s an updated version of the Plugin out there?[/quote]

I will keep answering my own questions:
No, there is no updated version of the plugin. Dropbox confirms that they smoked the V1 API just now: API v1 Shutdown Details - Dropbox

So, how to resolve this issue? Can anyone get in touch with the developer and see if he or she can release an updated version?[/quote]

I just got a message from the author who told me that there is another plugin called Vera Dropbox Webcam Uploader V2. I will check it out straight away.

V2 does not seem to do anything after entering the dropbox credentials, it never changes from the initial config screen which shows the link to connect to dropbox.

Does anyone have different results?

I get a different result trying to use V2 on UI5, seems to install ok but doesn’t actually create a ‘visible’ device i.e. in the app control panel it lists the device created but they dont show up in the main UI. When creating the initial device or adding additional it shows the initial device panel which contains no options.

Looking in the logs, creating a new device appears to reset (though it does exit with code 250 so probably just reloading after adding new device).

[code]08 10/03/17 8:43:52.051 JobHandler_LuaUPnP::HandleActionRequest device: 0 service: urn:micasaverde-com:serviceId:HomeAutomationGateway1 action: [[36;1mCreatePluginDevice[[0m <0x2df11680>
08 10/03/17 8:43:52.052 JobHandler_LuaUPnP::HandleActionRequest argument PluginNum=8741 <0x2df11680>
03 10/03/17 8:43:52.095 JobHandler_LuaUPnP::Reload: Created device for plugin Critical 1 m_bCriticalOnly 0 dirty data 1 <0x2df11680>
06 10/03/17 8:43:52.611 Device_Variable::m_szValue_set device: 1 service: urn:micasaverde-com:serviceId:ZWaveNetwork1 variable: [[35;1mNetStatusID[[0m was: 1 now: 2 #hooks: 0 upnp: 0 v:0xd75150/NONE duplicate:0 LEAK this:4096 start:1028096 to 0x1133000 <0x2df1168
0>
06 10/03/17 8:43:52.612 Device_Variable::m_szValue_set device: 1 service: urn:micasaverde-com:serviceId:ZWaveNetwork1 variable: [[35;1mNetStatusText[[0m was: OK now: Resetting ZWave Network #hooks: 0 upnp: 0 v:0xd948b0/NONE duplicate:0 <0x2df11680>
01 10/03/17 8:43:52.828 [[31;1mMongoose XXX-mg_stop1 0xcbde20 1 5[[0m LEAK this:69632 start:1097728 to 0x1144000 <0x2abde000>
01 10/03/17 8:43:54.829 [[31;1mMongoose XXX-mg_stop2 0xcbde20 2 5[[0m <0x2abde000>
01 10/03/17 8:43:54.829 [[31;1mMongoose XXX-mg_stop3 0xcbde20 2 5[[0m <0x2abde000>
01 10/03/17 8:43:54.830 [[31;1mMongoose XXX-mg_stop4 0xcbde20 17561976 5[[0m <0x2abde000>

[[7;36m2017-10-03 08:43:54 - LuaUPnP Terminated with Exit Code: 250[[1;00m

[[7;36m2017-10-03 08:43:54 - LuaUPnP crash[[1;00m

01 2017-10-3 8:20:1 caught signal 6 <0x2bdf7680>
01 2017-10-3 8:43:54 caught signal 6 <0x2b911680>
---------------exited-------------
[/code]

I too get the same result when installing on UI5 … initial device panel which contains no options, but no ‘visible’ device is created. Perhaps this app is not compatible with UI5

It did seem to install correctly for me on my UI7 system, but since I have no cameras on that system, I cannot confirm if it actually works.