Using sitecopy during Wipy dev

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
Post Reply
scudderfish
Posts: 24
Joined: Sun Oct 04, 2015 9:06 am

Using sitecopy during Wipy dev

Post by scudderfish » Sun Nov 08, 2015 10:52 am

I thought this might be of some interest. I got fed up with manually copying files with FileZilla, and the FTP client in my usual text editor (TextWrangler) wouldn't talk to the wipy. I installed sitecopy from http://www.manyfish.co.uk/sitecopy/ and configured it's .sitecopyrc file like this :-

Code: Select all

site wipy
	server 192.168.1.1
	remote /flash/lib/
	local /Users/dgs/dev/SFL525R/wipy/flash/lib/
	username micro
	password python
	exclude .DS_Store
	exclude LICENSE
	exclude README.md
	exclude .git*
Then I can mirror the contents of my development directories on my desktop to the wipy simply like this :-

Code: Select all

gedge:wipy dgs$ sitecopy -u wipy
sitecopy: Updating site `wipy' (on 192.168.1.1 in /flash/lib/)
Creating onewire/: done.
Creating uDS3231/: done.
Uploading onewire/__init__.py: [.......] done.
Uploading uDS3231/LICENSE: [..] done.
Uploading uDS3231/__init__.py: [..] done.
sitecopy: Update completed successfully.
gedge:wipy dgs$ sitecopy -u wipy
sitecopy: Updating site `wipy' (on 192.168.1.1 in /flash/lib/)
Deleting uDS3231/LICENSE: done.
sitecopy: Update completed successfully.
gedge:wipy dgs$ 
(I changed the config file to exclude the LICENSE file between runs)
Now I don't have to worry about missing a file in a multifile edit session. I hope this is of some use to someone.

Regards,
David

User avatar
danicampora
Posts: 342
Joined: Tue Sep 30, 2014 7:20 am
Contact:

Re: Using sitecopy during Wipy dev

Post by danicampora » Sun Nov 08, 2015 10:58 am

Hi scudderfish,

Super cool, thanks for sharing! I will test this and add it to the official docs :-)

scudderfish
Posts: 24
Joined: Sun Oct 04, 2015 9:06 am

Re: Using sitecopy during Wipy dev

Post by scudderfish » Sun Nov 08, 2015 1:39 pm

I tried with a node.js package (https://www.npmjs.com/package/ftpsync) in case compiling C code was too scary but it seems to disagree over file listing. I've uploaded a packet capture here https://www.dropbox.com/s/4z0mk1asfsc83 ... ap.gz?dl=0. As far as I can see, the ftp client issues 'list /flash/lib' and the wipy server responds with 'flash' and fun ensues as the client attmpts to recurse down an infinite structure. Sitecopy doesn't seem to try to do anything clever on the remote host and tracks everything clientside to figure out what needs changing.

User avatar
platforma
Posts: 258
Joined: Thu May 28, 2015 5:08 pm
Location: Japan

Re: Using sitecopy during Wipy dev

Post by platforma » Mon Nov 09, 2015 11:52 am

What about fatfs under unix? Update applications binary would be a simple copy. I don't know how well it would work though but might be worth a shot.

Post Reply