Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-15-2014, 06:01 AM   #1
daw
Junior Member
daw began at the beginning.
 
Posts: 1
Karma: 20
Join Date: May 2014
Device: kobo touch/ android
Qr codes to download books

Hi I just added qr codes to my calibre library and thought I would share
how I did it as I did not find any way on the forums

first I added a custom column and named it "qr code"
then set type to "column built from other columns"
then in template insert "
Code:
<img  src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=192.168.0.102:8080/get/{format}/{id}.{format}" alt="Qr"/>
where 192.168.0.102:8080 is your servers address
tick show as html
click OK then apply it will ask to restart then you will see the qr codes

this will display a qr code in "book details" that will download the book on my android devices that are on the same network alternatively if you use this code it will take you to the details page

Code:
<img  src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=192.168.0.102:8080/browse/book/{id}" alt="Qr"/>
Hope this helps someone, if you have any suggestions I would like to hear them
daw is offline   Reply With Quote
Old 12-14-2019, 04:26 AM   #2
spyshow
Junior Member
spyshow began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2019
Device: android
hi

when i put the code in the template, it gave me a text in the book details page not QR code ...

anything wrong i did ?
spyshow is offline   Reply With Quote
Advert
Old 12-14-2019, 09:23 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,037
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You included the IMG tag part?

Wrap your exact code (copy-paste) into [ code ] tags so we can see what you really did
theducks is offline   Reply With Quote
Old 12-14-2019, 04:30 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Just did a little test. For this to work, the column must have "Show as HTML in Book details". Also, the URL changed with calibre 3. The following template worked for me:

Code:
<img  src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=192.168.0.102:8080/get/{format}/{id}/{:'current_library_name()'}" alt="Qr"/>
But, the "{format}" will produce a list if there is more than one for a book. If only want to download one format, then hardcoding that would work. Otherwise, you would need to do something to have it pick a format.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bar codes on books johnwhelan Calibre 7 04-10-2014 11:14 PM
Books on Board Cyber Week Promo Codes Lynx-lynx Deals and Resources (No Self-Promotion or Affiliate Links) 0 11-28-2012 02:58 AM
Promo codes for Books on Board Mort1997 Deals and Resources (No Self-Promotion or Affiliate Links) 1 11-10-2012 11:39 AM
Books-a-Million Coupon Codes Not Valid for eBooks??? dandelioncottage Deals and Resources (No Self-Promotion or Affiliate Links) 1 06-21-2012 04:21 PM
Various free books from Smashwords (with codes) + extra Andreiuta Deals and Resources (No Self-Promotion or Affiliate Links) 14 04-20-2011 03:01 AM


All times are GMT -4. The time now is 01:10 PM.


MobileRead.com is a privately owned, operated and funded community.