Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-28-2022, 05:47 PM   #1
Dirk-71
Groupie
Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.
 
Posts: 160
Karma: 35462
Join Date: Dec 2016
Location: Germany
Device: Kobo: Clara BW, Libra 2, Aura One
Virtual library - if reader is connected

I want to make a library that shows specific books only if a reader is connected.

Example: #collection:true and #readerconnected:true

The red part is where I am not sure. Can you help?
Dirk-71 is offline   Reply With Quote
Old 10-28-2022, 06:47 PM   #2
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
ondevice:true should work.
ownedbycats is offline   Reply With Quote
Advert
Old 10-29-2022, 04:23 AM   #3
Dirk-71
Groupie
Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.
 
Posts: 160
Karma: 35462
Join Date: Dec 2016
Location: Germany
Device: Kobo: Clara BW, Libra 2, Aura One
Quote:
Originally Posted by ownedbycats View Post
ondevice:true should work.
Thank you, but this is not what I am looking for. This checks if a book is stored on the connected device. But I need to check whether a reader is connected to calibre.
Dirk-71 is offline   Reply With Quote
Old 10-29-2022, 05:11 AM   #4
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
template search - this probably isn't the most optimal but it works:

template:"""program: if connected_device_name('main') then 'yes' fi#@#:t:yes""" AND #collection:true

If you want a specific device you'll want something like (assuming you're using your Libra 2 and I guessed the device name right)

template:"""program: if connected_device_name('main') == 'Kobo Libra 2' then 'yes' fi#@#:t:yes""" AND #collection:true

to check the specific device name, just pop open the template tester (you may need to add it to a menu) and put program: connected_device_name('main') in while it's connected.

Last edited by ownedbycats; 10-29-2022 at 05:17 AM.
ownedbycats is offline   Reply With Quote
Old 10-29-2022, 05:22 AM   #5
Dirk-71
Groupie
Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.Dirk-71 turned on, tuned in, and dropped out.
 
Posts: 160
Karma: 35462
Join Date: Dec 2016
Location: Germany
Device: Kobo: Clara BW, Libra 2, Aura One
Quote:
Originally Posted by ownedbycats View Post
template search - this probably isn't the most optimal but it works:

template:"""program: if connected_device_name('main') then 'yes' fi#@#:t:yes""" AND #collection:true

If you want a specific device you'll want something like (assuming you're using your Libra 2 and I guessed the device name right)

template:"""program: if connected_device_name('main') == 'Kobo Libra 2' then 'yes' fi#@#:t:yes""" AND #collection:true

to check the specific device name, just pop open the template tester (you may need to add it to a menu) and put program: connected_device_name('main') in while it's connected.
YES! This is it!
Dirk-71 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Libraries - Using Multiple searches to make one virtual library tlwright Library Management 3 07-23-2020 06:29 PM
Virtual connected to ebook reader PowerOffliner Devices 5 04-09-2020 07:02 AM
Virtual Library still show up in main library bskies Library Management 3 11-13-2013 10:41 PM
Can you change the library while a reader is connected? Kirtai Calibre 2 09-17-2010 07:38 PM
Reader library opening when connected leevancleef Sony Reader 8 02-02-2010 10:16 PM


All times are GMT -4. The time now is 03:54 AM.


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