|  06-21-2022, 06:45 PM | #796 | |
| Addict            Posts: 209 Karma: 20980 Join Date: Oct 2020 Device: Kobo Aura One, Aura HD (R.I.P.) :( | Quote: 
 I have only scripted in Windows before and I really don't where I should be looking for cmd's that work with Kobo. I have used linux cmd's to move and delete files etc but when it comes to the wifi there seems to be a lot of different ways it can be done and I am unable to get it to work. I am making a huge guess here that there might be different versions of linux out there that have different cmd's or I am just barking up the wrong tree on all of this? | |
|   |   | 
|  06-21-2022, 07:27 PM | #797 | |
| Guru            Posts: 877 Karma: 2676800 Join Date: Aug 2008 Location: Taranaki - NZ Device: Kobo Aura H2O, Kobo Forma | Quote: 
 Documentation is here, specifically, look at the qndb portion of that page. Then look at the API documentation to find out what methods to call. For Wifi, there is currently wfmConnectWireless wfmConnectWirelessSilently wfmSetAirplaneMode methods available. You'll probably also want to listen for the wmNetworkConnected and wmNetworkFailedToConnect signals as well. This is completely untested, but the following might work: Code: #!/bin/sh
signal=$(qndb -s wmNetworkConnected -s wmNetworkFailedToConnect -t 60 -m wfmConnectWireless)
# Note, It's been a while, this may be wrong, I'll double check later
if [ "$signal" = "wmNetworkConnected" ]; then
    # connected, do stuff here
elif [ "$signal" = "wmNetworkFailedToConnect" ]; then
    # did not connect, do cleanup here
else
    # timeout happened
fiLast edited by sherman; 06-21-2022 at 07:30 PM. | |
|   |   | 
|  06-21-2022, 07:52 PM | #798 | 
| Addict            Posts: 209 Karma: 20980 Join Date: Oct 2020 Device: Kobo Aura One, Aura HD (R.I.P.) :( | 
			
			@sherman awsome thanks very much for that!! Got some research to do now that I will be headed in the right direction   | 
|   |   | 
|  06-21-2022, 07:54 PM | #799 | |
| Wizard            Posts: 1,026 Karma: 500000 Join Date: Jun 2015 Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color | Quote: 
 Unix and Linux are really a collection of 10-20 languages all available at once with a good number of utilities on the side. A lot of the languages are domain specific languages that are good at some narrow purpose. The unifying language of all of them is Bourne shell, sometimes called just "shell" or "sh", and standardized by POSIX, including the side utilities. Of course, standards are never good enough, so linux has included several variations of sh. Of the myriad languages and variations of sh available, bash is one of the more popular, and has lots of things added beyond plain sh. Busybox is a lobotomized version of sh intended for embedded systems that embeds a great many of the side utilities into itself, and then varies from the standard where it's not convenient or efficient to stick with it. Kobo includes busybox and a handful of other things. Busybox makes at least a faint attempt at looking like Bourne shell but it is missing some things and probably includes some critical non-standard utilities as built in commands. Last edited by compurandom; 06-21-2022 at 07:57 PM. | |
|   |   | 
|  06-21-2022, 07:57 PM | #800 | 
| Addict            Posts: 209 Karma: 20980 Join Date: Oct 2020 Device: Kobo Aura One, Aura HD (R.I.P.) :( | 
			
			@compurandom Thanks that was interesting    | 
|   |   | 
|  06-21-2022, 09:13 PM | #801 | 
| Guru            Posts: 877 Karma: 2676800 Join Date: Aug 2008 Location: Taranaki - NZ Device: Kobo Aura H2O, Kobo Forma | 
			
			Just as a warning, I've never actually tested the wifi stuff. It should work, but since I need to have Wifi connected to easily test stuff, I never quite got around to testing it...
		 | 
|   |   | 
|  06-21-2022, 09:29 PM | #802 | 
| Addict            Posts: 209 Karma: 20980 Join Date: Oct 2020 Device: Kobo Aura One, Aura HD (R.I.P.) :( | |
|   |   | 
|  06-23-2022, 02:16 AM | #803 | |
| Addict            Posts: 209 Karma: 20980 Join Date: Oct 2020 Device: Kobo Aura One, Aura HD (R.I.P.) :( | Quote: 
  Had to add a bit at the start. It turns on the wifi and then turns it off again after a certain amount of time. To help me save the battery dying while I am reading (some dummy forgets to turn it off). Is a way to start the Kobo sync? Had a look but could not find any thing, might have missed it though on the terminology I used... Code: qndb -m wfmSetAirplaneMode "enable" signal=$(qndb -s wmNetworkConnected -s wmNetworkFailedToConnect -t 60000 -m wfmConnectWirelessSilently) | |
|   |   | 
|  06-24-2022, 12:36 PM | #804 | 
| Connoisseur        Posts: 70 Karma: 798 Join Date: Apr 2012 Device: iLiad, Kobo Aura 6" | 
			
			hello, i have installed it but NickelMenu is empty:   why? I use old Kobo Aura with firmware 4.30.18838 EDIT: i have created this KOBOeReader/.adds/nm/config: Code:    menu_item :main    :Show an Error      :dbg_error          :This is an error message!
   menu_item :main    :Do Nothing         :cmd_spawn          :sleep 60
   menu_item :main    :Dump Syslog        :cmd_spawn          :logread > /mnt/onboard/.adds/syslog.log
   menu_item :main    :Kernel Version     :cmd_output         :500:uname -a
   menu_item :main    :Sketch Pad         :nickel_extras      :sketch_pad
   menu_item :main    :Plato              :kfmon              :plato.png
   generator :main    :kfmon
   menu_item :reader  :Invert Screen      :nickel_setting     :toggle :invert
   menu_item :reader  :Invert Orientation :nickel_orientation :invert
   menu_item :main    :IP Address         :cmd_output         :500:/sbin/ifconfig | /usr/bin/awk '/inet addr/{print substr($2,6)}'
   menu_item :main    :Telnet             :cmd_spawn          :quiet:/bin/mount -t devpts | /bin/grep -q /dev/pts || { /bin/mkdir -p /dev/pts && /bin/mount -t devpts devpts /dev/pts; }
     chain_success                        :cmd_spawn          :quiet:/usr/bin/pkill -f "^/usr/bin/tcpsvd -E 0.0.0.0 1023" || true && exec /usr/bin/tcpsvd -E 0.0.0.0 1023 /usr/sbin/telnetd -i -l /bin/login
     chain_success                        :dbg_toast          :Started Telnet server on port 1023.
   menu_item :main    :FTP                :cmd_spawn          :quiet:/usr/bin/pkill -f "^/usr/bin/tcpsvd -E 0.0.0.0 1021" || true && exec /usr/bin/tcpsvd -E 0.0.0.0 1021 /usr/sbin/ftpd -w -t 30 /mnt/onboard
     chain_success                        :dbg_toast          :Started FTP server for KOBOeReader partition on port 1021.
   menu_item :main    :Telnet (toggle)    :cmd_output         :500:quiet :/usr/bin/pkill -f "^/usr/bin/tcpsvd -E 0.0.0.0 2023"
     chain_success:skip:5
       chain_failure                      :cmd_spawn          :quiet :/bin/mount -t devpts | /bin/grep -q /dev/pts || { /bin/mkdir -p /dev/pts && /bin/mount -t devpts devpts /dev/pts; }
       chain_success                      :cmd_spawn          :quiet :exec /usr/bin/tcpsvd -E 0.0.0.0 2023 /usr/sbin/telnetd -i -l /bin/login
       chain_success                      :dbg_toast          :Started Telnet server on port 2023
       chain_failure                      :dbg_toast          :Error starting Telnet server on port 2023
       chain_always:skip:-1
     chain_success                        :dbg_toast          :Stopped Telnet server on port 2023
   menu_item :library :Import books       :nickel_misc        :rescan_books_full
   menu_item :browser :Invert Screen      :nickel_setting     :toggle :invert
   menu_item :browser :Open Pop-Up        :nickel_browser     :modalLast edited by mortimer7; 06-24-2022 at 12:52 PM. | 
|   |   | 
|  06-24-2022, 12:53 PM | #805 | 
| Wizard            Posts: 2,857 Karma: 22003124 Join Date: Aug 2014 Device: Kobo Forma, Kobo Sage, Kobo Libra 2 | 
			
			Because you need to add the commands you want to have access to which is detailed in the read me
		 | 
|   |   | 
|  06-24-2022, 01:34 PM | #806 | 
| Connoisseur        Posts: 70 Karma: 798 Join Date: Apr 2012 Device: iLiad, Kobo Aura 6" | 
			
			i add this menu: Code: menu_item:main:Dark Mode:nickel_setting:dark_mode menu_item:main:Screenshot:nickel_setting:screenshots p.s. How can i set user/password for FTP? | 
|   |   | 
|  06-24-2022, 02:11 PM | #807 | |
| Connoisseur        Posts: 70 Karma: 798 Join Date: Apr 2012 Device: iLiad, Kobo Aura 6" | Quote: 
 Code: menu_item:main:Dark Mode:nickel_setting:toggle:dark_mode menu_item:main:Screenshot:nickel_setting:toggle:screenshots | |
|   |   | 
|  06-25-2022, 02:34 AM | #808 | 
| Connoisseur        Posts: 70 Karma: 798 Join Date: Apr 2012 Device: iLiad, Kobo Aura 6" | 
			
			Hello, i have a big problem: I set dark mode on main menu, but now my home screen is always dark, i can't disable it. I have tried to uninstall NickelMenu and reboot but home screen is still dark! How can i solve? EDIT: I SOLVED: Code: menu_item:main:Dark Mode ON:nickel_setting:enable:dark_mode menu_item:main:Dark Mode OFF:nickel_setting:disable:dark_mode Last edited by mortimer7; 06-25-2022 at 03:02 AM. | 
|   |   | 
|  06-25-2022, 02:54 PM | #809 | 
| Guru            Posts: 739 Karma: 4306712 Join Date: Jun 2006 Location: Toronto Device: Kobo Libra 2, Clara 2E, and Clara HD; Kindle PaperWhite | 
			
			Dark mode and invert mode are not the same thing. The former only inverts black-and-white in actual books (while leaving pictures correct) but does not invert the user interface or home screen; the latter inverts everything including pictures. This Nickel menu code when let you control both modes independently (note that switching invert mode on/off requires a rebook, with this code will call for automatically). Code: # -----------------------------------------------------------------------
menu_item :main      :Dark Mode       :nickel_setting :toggle :dark_mode
menu_item :main      :Invert & Reboot :nickel_setting :toggle: invert
    chain_success                     :power          :reboot
# -----------------------------------------------------------------------
menu_item :reader    :Dark Mode       :nickel_setting :toggle :dark_mode
menu_item :reader    :Invert & Reboot :nickel_setting :toggle: invert
    chain_success                     :power          :reboot
# -----------------------------------------------------------------------
menu_item :library   :Dark Mode       :nickel_setting :toggle :dark_mode
menu_item :library   :Invert & Reboot :nickel_setting :toggle: invert
    chain_success                     :power          :reboot
# --------------------------------------------------------------------------Last edited by RobertJSawyer; 06-27-2022 at 10:20 AM. | 
|   |   | 
|  06-25-2022, 09:51 PM | #810 | |
| Guru            Posts: 706 Karma: 2153490 Join Date: Aug 2021 Location: Stupid Philippines Device: Kobo Libra 2, Boyue Likebook P78 | Quote: 
 Why is it that Kobo has not figured out yet to invert the screen 'properly with images not inverting' like what kindle does. | |
|   |   | 
|  | 
| Tags | 
| kobo, launcher, ldpreload, nickel | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Kobo eReaders and Heat | PeterT | Kobo Reader | 13 | 08-02-2014 04:35 AM | 
| kobo arc launcher not working | lana loves books | Kobo Tablets | 8 | 03-21-2014 06:40 AM | 
| Orginization on kobo ereaders | crochetgeek2010 | Kobo Reader | 7 | 09-03-2013 02:13 PM | 
| Kobo Announces eReaders Available for Purchase on Kobo.com in Canada and US | markemark | News | 1 | 04-02-2013 01:46 PM | 
| Ereaders with Integrated Dictionary | poohbear_nc | Which one should I buy? | 4 | 04-08-2010 06:42 AM |