Skip to content

Implement Basic Auto-Transfer Functionality #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nprail opened this issue Sep 30, 2017 · 0 comments
Open

Implement Basic Auto-Transfer Functionality #1

nprail opened this issue Sep 30, 2017 · 0 comments
Assignees

Comments

@nprail
Copy link
Member

nprail commented Sep 30, 2017

Flow

loop:
  ping camera, if its there:
	if getUpdateStatus=1:
	  getFileList
	  sort by date
	  filterlist where date > timestampOnLastItemTransferred
	  sort filterlist by date
	  for each item in filterlist
		download item
		pull metadata from image (unless item data is good enough)
		move image to {base}\YYYY\YYYY-MM-DD\{imagename} (set extension to lower case)
		timestampOnLastItemTransferred from item 
		on failure, dump transferred file into "dead" item folder for inspection
  sleep 15 seconds

Research

  • FlashAir Docs
  • GetUpdateStatus (returns 1 if something has changed since the last time you asked) http://<flashair-ip>/command.cgi?op=102
  • http://<flashair-ip>/command.cgi?op=100&DIR=/
WLANSD_FILELIST
,UPLOAD,0,16,0,0
,DCIM,0,16,19261,39097
,MISC,0,16,19261,37547
,scripts,0,16,19262,23814
  • http://<flashair-ip>/command.cgi?op=100&DIR=/DCIM
WLANSD_FILELIST
/DCIM,100__TSB,0,16,19261,39097
/DCIM,EOSMISC,0,16,19261,37547
  • http://<flashair-ip>/command.cgi?op=100&DIR=/DCIM/100__TSB
WLANSD_FILELIST
/DCIM/100__TSB,FA000001.JPG,128617,33,18660,35185
/DCIM/100__TSB,IMG_1264.JPG,6082228,32,19261,37563
/DCIM/100__TSB,IMG_1265.JPG,8601624,32,19261,38953
/DCIM/100__TSB,IMG_1266.JPG,8245121,32,19261,39033
/DCIM/100__TSB,IMG_1267.JPG,7453231,32,19261,39447
/DCIM/100__TSB,IMG_1268.JPG,5732330,32,19261,39539
/DCIM/100__TSB,IMG_1269.JPG,7176929,32,19261,39567
/DCIM/100__TSB,IMG_1270.JPG,7686705,32,19261,39572
/DCIM/100__TSB,IMG_1271.JPG,7815061,32,19261,39577
/DCIM/100__TSB,IMG_1272.JPG,7439681,32,19261,39587
/DCIM/100__TSB,IMG_1273.JPG,6722482,32,19262,22965
  • Get one image: http://<flashair-ip>/DCIM/100__TSB/IMG_1270.JPG
nprail added a commit that referenced this issue Sep 30, 2017
@nprail nprail self-assigned this Sep 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant