Dropbox .pnc not working
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Dropbox .pnc not working
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.
-
RERII
- Posts: 56
- Joined: March 4th, 2015, 11:34 am
Re: Dropbox .pnc not working
So what happens when I have multiple people sending files to dropbox? How do I distinguish which dat file belongs to whom?
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Dropbox .pnc not working
You can use %UID% or %DEVICEID% in the serverpath to distinguish between users/devices. For example:
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.
Code: Select all
CreateServerPath=/MobileJW/%UID%
ServerPath=/MobileJW/%UID%
Put=*.dat
/MobileJW
/Bob
/Mary
Note that the username comes from the email address that was used during the initial setup of the phone/tablet.
-
RERII
- Posts: 56
- Joined: March 4th, 2015, 11:34 am
Re: Dropbox .pnc not working
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
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Dropbox .pnc not working
Use %DEVICEID% that will be unique for each device even if all the phones have the same username.
-
RERII
- Posts: 56
- Joined: March 4th, 2015, 11:34 am
Re: Dropbox .pnc not working
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.
[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.
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Dropbox .pnc not working
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.
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.
-
RERII
- Posts: 56
- Joined: March 4th, 2015, 11:34 am
Re: Dropbox .pnc not working
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
[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
-
josh
- Posts: 2403
- Joined: May 5th, 2014, 12:49 pm
- Location: Washington DC
Re: Dropbox .pnc not working
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.
-
Sigma
- Posts: 17
- Joined: March 18th, 2015, 7:12 am
Re: Dropbox .pnc not working
Hi Josh,
Does %DEVICEID% work with CSEntry 6.0.4?
Does %DEVICEID% work with CSEntry 6.0.4?