![]() |
#16 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yeah, no
![]() |
![]() |
![]() |
![]() |
#17 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,296
Karma: 5300240
Join Date: Jun 2020
Location: Edmonton, AB
Device: Kobo Aura H2O Edition 2 (mark 7), Kobo Mini
|
delete post
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 922
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
|
This looks like a fun plugin!
Feature requests:
|
![]() |
![]() |
![]() |
#19 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 868
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
Question is whether I can get the text from it, or if I can create my own version of the dialog like I did for the others. |
|
![]() |
![]() |
![]() |
#20 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 868
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
For those who would like an example of how this can be used 'in the real world', there's a fair amount of integration in the newly released Kobo-UNCaGED 0.5.x.
It has examples of both CLI usage with qndb and using the Go bindings. |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Of particular mention was the catch-22 we hit along the way when attempting to query *and wait for a result* Nickel from *within* Nickel itself (the example being a NM cmd_output launching qndb), c.f., https://github.com/shermp/Kobo-UNCaGED/issues/30
(Plus, you get to see us running around like headless chickens until a Eureka moment hits ;p). |
![]() |
![]() |
![]() |
#22 |
Connoisseur
![]() Posts: 93
Karma: 12
Join Date: Nov 2018
Location: Salamanca
Device: kobo Clara HD, Onyxboox C67
|
Hi. Can I use this one into 'reader.lua' when I am going to run koreader?.
This is I have got now into 'reader.lua' while I run a file.sh to backup some database and all is ok os.execute("./fbink -q -y -29 -pmh 'REALIZANDO COPIA DE SEGURIDAD'") os.execute("./fbink -q -y -27 -pmh 'DE LAS BASES DE DATOS DE KOBO'") os.execute("./grabar_fich_kobo.sh") Could I put something like this? os.execute("qndb -m mwcToast 4000 "REALIZANDO COPIA DE SEGURIDAD DE LAS BASES DE DATOS DE KOBO") os.execute("./grabar_fich_kobo.sh") Could I even make the message stick while the file.sh is running? (not only 4 seconds)? This is not important, just that I like to learn new things. |
![]() |
![]() |
![]() |
#23 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 868
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
The main thing is that Nickel needs to be running for qndb to work. Unfortunately, toasts are for a set duration only. I can think of a (really) dirty hack though. If you call qndb -m dlgConfirmNoBtn <title> <body>, this opens a message dialog. Then 'record' the touch of pressing the 'close' icon using something like cat /dev/input/event1 > touchfile. Then, you can display the message, and from your shell script you can pipe/redirect the contents of touchfile back into /dev/input/event1 to simulate a touch which should close the message box. I might see if I can figure out a way of doing something more elegant in NDB itself. |
|
![]() |
![]() |
![]() |
#24 | |
Connoisseur
![]() Posts: 93
Karma: 12
Join Date: Nov 2018
Location: Salamanca
Device: kobo Clara HD, Onyxboox C67
|
Ok. Very difficult for my programming level. I only copy code from other files.sh... hahaha. Well I will try my idea.
BTW, your latest version of UNCaGED has got a bigger frontend. Now it is perfect for me. Thanks EDIT: 8(( Reader.lua is running after nickel is killed Quote:
Last edited by Carmelocotonto; 12-20-2020 at 07:33 AM. |
|
![]() |
![]() |
![]() |
#25 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,484
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
|
![]() |
![]() |
![]() |
#26 |
Connoisseur
![]() Posts: 93
Karma: 12
Join Date: Nov 2018
Location: Salamanca
Device: kobo Clara HD, Onyxboox C67
|
My idea is backup several files only on sunday (one day a week). I will look for the way to do into a script
![]() |
![]() |
![]() |
![]() |
#27 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 868
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
It will be possible to create a 'modal' style dialog/message box that can be dismissed by the developer when convenient (the user can still close it for safety). The developer can also change the message as well. Quote:
|
||
![]() |
![]() |
![]() |
#28 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 922
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
|
Quote:
Being able to directly edit the input the shell script was working on would have been useful. Since I can't remember exactly what I was doing, I'm not sure if an alternative input chooser (number spinner? multiple buttons?) would have worked. |
|
![]() |
![]() |
![]() |
#30 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 922
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
|
|
![]() |
![]() |
![]() |
Tags |
kobo, ldpreload, nickel |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
'RUN, RUN, RUN' a crime thriller $1.61 | tothepoint | Self-Promotions by Authors and Publishers | 10 | 09-01-2014 12:07 PM |
Calibre: Bus error | migdus | Calibre | 7 | 08-15-2011 11:58 PM |
/proc/bus/usb ? | troymc | Calibre | 3 | 09-05-2009 10:35 AM |