|  08-30-2020, 10:55 PM | #16 | 
| BLAM!            Posts: 13,506 Karma: 26047202 Join Date: Jun 2010 Location: Paris, France Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E | 
			
			Yeah, no   . | 
|   |   | 
|  09-05-2020, 12:20 AM | #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
		 | 
|   |   | 
|  10-23-2020, 09:17 AM | #18 | 
| Wizard            Posts: 1,026 Karma: 500000 Join Date: Jun 2015 Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color | 
			
			This looks like a fun plugin! Feature requests: 
 | 
|   |   | 
|  10-23-2020, 05:21 PM | #19 | |
| Guru            Posts: 877 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. | |
|   |   | 
|  12-15-2020, 05:54 PM | #20 | 
| Guru            Posts: 877 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. | 
|   |   | 
|  12-15-2020, 06:03 PM | #21 | 
| BLAM!            Posts: 13,506 Karma: 26047202 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). | 
|   |   | 
|  12-20-2020, 03:28 AM | #22 | 
| Connoisseur  Posts: 97 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. | 
|   |   | 
|  12-20-2020, 03:58 AM | #23 | |
| Guru            Posts: 877 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. | |
|   |   | 
|  12-20-2020, 06:54 AM | #24 | |
| Connoisseur  Posts: 97 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. | |
|   |   | 
|  12-20-2020, 11:54 AM | #25 | 
| BLAM!            Posts: 13,506 Karma: 26047202 Join Date: Jun 2010 Location: Paris, France Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E | |
|   |   | 
|  12-20-2020, 01:15 PM | #26 | 
| Connoisseur  Posts: 97 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    . Thanks | 
|   |   | 
|  12-23-2020, 09:50 PM | #27 | ||
| Guru            Posts: 877 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: 
 | ||
|   |   | 
|  12-25-2020, 03:36 PM | #28 | |
| Wizard            Posts: 1,026 Karma: 500000 Join Date: Jun 2015 Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color | 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. | |
|   |   | 
|  12-26-2020, 12:45 AM | #30 | 
| Wizard            Posts: 1,026 Karma: 500000 Join Date: Jun 2015 Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color | |
|   |   | 
|  | 
| Tags | 
| kobo, ldpreload, nickel | 
| 
 | 
|  Similar Threads | ||||
| 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 |