Page 2 of 3
Re: Dropbox .pnc not working
Posted: March 20th, 2015, 2:23 pm
by josh
Glad to hear it worked. Yes, I'm in the states but no need to send anything. I'm just happy that it is working.
Re: Dropbox .pnc not working
Posted: March 22nd, 2015, 6:25 pm
by RERII
So what happens when I have multiple people sending files to dropbox? How do I distinguish which dat file belongs to whom?
Re: Dropbox .pnc not working
Posted: March 23rd, 2015, 7:10 am
by josh
You can use %UID% or %DEVICEID% in the serverpath to distinguish between users/devices. For example:
Code: Select all
CreateServerPath=/MobileJW/%UID%
ServerPath=/MobileJW/%UID%
Put=*.dat
This way if you have two enumerators, one whose username is Bob and the other whose username is Mary then on the server you will end up with different folders for each one:
/MobileJW
/Bob
/Mary
Note that the username comes from the email address that was used during the initial setup of the phone/tablet.
Re: Dropbox .pnc not working
Posted: March 23rd, 2015, 7:29 pm
by RERII
Ok see the problem is that all the phones were signed in by one guy I think he had it done from the factory. is there a way I can use the username that they enter when they are in cspro, or a variable that I created? or probably the imei number? I should probably learn how to create that menu that way I can name the file after the Enumeration Area and the code I give to each person
Re: Dropbox .pnc not working
Posted: March 24th, 2015, 7:05 am
by josh
Use %DEVICEID% that will be unique for each device even if all the phones have the same username.
Re: Dropbox .pnc not working
Posted: March 25th, 2015, 8:41 am
by RERII
alright so my sync file is sending the file but not uploading the dat file it just creates a folder with the device id
[SyncFile]
version=CSPro 6.0
[Server]
Type=Dropbox
[Sync]
CreateClientPath=/unmeer
ClientPath=/unmeer
ServerPath=/unmeer
CreateServerPath=/unmeer/%DEVICEID%
ServerPath=/unmeer/%DEVICEID%
Put=*.DAT
Get=MEER_DEA.pen
Get=MEER_DEA.pff
its not workign at all now let me know JOsh I can't figure this crap out now.
Re: Dropbox .pnc not working
Posted: March 25th, 2015, 9:56 am
by josh
I suspect that you don't have the correct client path. Check that your data file is in the directory csentry/number on your phone/tablet.
If you are using the beta then CSEntry will create a file called synclog.txt in the csentry folder on your device. Look in that file to see what is happening with your synch.
Re: Dropbox .pnc not working
Posted: March 25th, 2015, 11:20 am
by RERII
Actually it does work the problem is I have no idea where its getting the device ID from? it would really help if I could identify it or try and use the ID that the people sign in with on CSPro
[SyncFile]
version=CSPro 6.0
[Server]
Type=Dropbox
[Sync]
createclientpath=/unmeer
ClientPath=/unmeer
ServerPath=/unmeer
Get=MEER_DEA.pen
Get=MEER_DEA.pff
CreateServerPath=/UNMEER/%DEVICEID%
ServerPath=/UNMEER/%DEVICEID%
Put=*.dat
Re: Dropbox .pnc not working
Posted: March 25th, 2015, 3:46 pm
by josh
DeviceID is set automatically by Android and cannot be changed. It is unique for each tablet/phone. UserID can be changed (by changing Google account in Android settings) but it will not always be unique for each device unless you make sure to use different emails for each device used in your survey.
Re: Dropbox .pnc not working
Posted: April 8th, 2015, 2:23 pm
by Sigma
Hi Josh,
Does %DEVICEID% work with CSEntry 6.0.4?