QR Code generator


greppy

Recommended Posts

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-qrcode

btsync-qrcode

=============

BitTorrent Sync QR Code generator

I 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)

Link to comment
Share on other sites

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 --help
Usage: 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)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.