greppy Posted July 26, 2013 Report Share Posted July 26, 2013 I have written a QR Code generator in Ruby for those that use a configuration file on linux, but still want to be able to add Android devices easily.https://github.com/g...y/btsync-qrcodebtsync-qrcode=============BitTorrent Sync QR Code generatorI like the idea of being able to sync directories on my android phone and tablet with my other systems.However, there is no way to generate the QR Code on linux if using a config file instead of the webui interface.This script provides QR Codes as individual PNG files for each share in a BTSync configuration file. $ btsync_qrcode.rb --help Usage: btsync_qrcode.rb [options] -f, --file FILE BTSync config file ( default ~/.btsync ) -s, --size SIZE PNG image size (default 300) Quote Link to comment Share on other sites More sharing options...
greppy Posted July 26, 2013 Author Report Share Posted July 26, 2013 Just because I can't leave well enough alone, I updated the code to have a --html FILE and --[no-]png option. It is now possible to generate an HTML file with the QR Codes built using CSS and tables.$ btsync_qrcode.rb --helpUsage: btsync_qrcode.rb [options] --[no-]png Output as individual PNG files, default TRUE --html FILE Print HTML QR Codes to FILE -f, --file FILE BTSync config file ( default ~/.btsync ) -s, --size SIZE PNG image size (default 300) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.