Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vindolin/flashair_sync
Simple non recursive, one way directory sync for Toshiba FlashAir SD cards, used in 3D printers.
https://github.com/vindolin/flashair_sync
Last synced: about 2 months ago
JSON representation
Simple non recursive, one way directory sync for Toshiba FlashAir SD cards, used in 3D printers.
- Host: GitHub
- URL: https://github.com/vindolin/flashair_sync
- Owner: vindolin
- License: mit
- Created: 2016-01-25T10:25:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T20:25:11.000Z (almost 7 years ago)
- Last Synced: 2024-09-14T11:58:14.194Z (4 months ago)
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 9
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
flashair_sync
-------------Simple non recursive, one way directory sync for Toshiba FlashAir SD cards.
Syncs a local directory to the FlashAir card. (create/modify/delete)
Intended for use in a 3D printer.
Installation
------------::
$ pip install flashair_sync
or under Windows:
C:\>py -m pip install flashair_sync
Example usage
-------------::
$ flashair_sync /directory/with/x3g_files 192.168.178.70 x3g s3g
or under Windows:
$ py flashair_sync c:\directory\with\x3g_files 192.168.178.70 x3g s3g
If you want to do an initial sycn to the card, add the -i switch.
--help output
-------------.. code-block::
usage: flashair_sync [-h] [-p POLL_INTERVAL] [-i]
directory_path flashair_address file_extensions
[file_extensions ...]Watch a directory for change/delete events to files and sync to flashair card
(not recursive!).positional arguments:
directory_path The directory to watch for changes.
flashair_address The address of your flashair card, eg.
"192.168.178.41"
file_extensions Only files that match one of these extensions get
monitored.optional arguments:
-h, --help show this help message and exit
-p POLL_INTERVAL, --poll_interval POLL_INTERVAL
How many seconds between directory polls (default is 1).
-i, --initial_sync Copy all files that are new or changed to the card on
program start, also delete all files on the card which
are not in the current directory. Without this switch
only files that are new/modified/deleted after the
program start are synced.Bugs
----Does not yet support unicode filenames (problems with the Requests module).