08-28-2024, 04:19 PM | #1396 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
|
Quote:
|
|
08-28-2024, 08:30 PM | #1397 |
Wizard
Posts: 1,435
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
|
I've made another update to my battery statistics calculation script. Version 1.2 brings a few improvements:
I had hoped to use bc to do proper floating-point arithmetic, but it seems that Kobo's version of BusyBox doesn't have it, so instead I've resorted to manipulating v_now, v_min, and v_max as strings, which avoids doing any actual arithmetic for the units conversion. Remember that if you have the Libra Colour, you must replace: /sys/class/power_supply/battery/ with /sys/class/power_supply/bd71827_bat/ in order for the script to work. Other Kobo models may require greater changes, as some statistics may not be available. Code:
# Battery Statistics Calculator 1.2 (2024-08-28) by Aleron Ives # # This script calculates battery statistics for the Kobo Libra 2. # Check the contents of /sys/class/power_supply/ if you use a different # model to ensure that the statistics you want to track are available. # # You can use NickelMenu to invoke this script like so: # menu_item :main :Battery :cmd_output :500 :/mnt/onboard/.adds/battcalc.sh # Gather the necessary statistics meter=$(cat /sys/class/power_supply/battery/capacity) v_now=$(cat /sys/class/power_supply/battery/voltage_now) v_min=$(cat /sys/class/power_supply/battery/voltage_min) v_max=$(cat /sys/class/power_supply/battery/voltage_max) c_now=$(cat /sys/class/power_supply/battery/charge_now) c_full=$(cat /sys/class/power_supply/battery/charge_full) c_dfull=$(cat /sys/class/power_supply/battery/charge_full_design) # Format the statistics let c_now/=1000; let c_full/=1000; let c_dfull/=1000 # Convert to mAh let charge=$c_now*100/$c_full # Calculate charge percentage from mAh let c_health=$c_full*100/$c_dfull # Calculate health percentage from mAh let v_div=$v_max-$v_min; let v_div/=100 # Calculate charge percentage from V let v_pct=$v_max-$v_now; let v_pct/=$v_div # " let v_pct=100-$v_pct # " v_nowr=$(echo $v_now | cut -b 2-4) # Simulate floating-point arithmetic v_now=$(echo $v_now | cut -b 1) # " v_minr=$(echo $v_min | cut -b 2-3) # " v_min=$(echo $v_min | cut -b 1) # " v_maxr=$(echo $v_max | cut -b 2-3) # " v_max=$(echo $v_max | cut -b 1) # " # Display the results echo Capacity: $c_now mAh / $charge% / $meter% echo Voltage: $v_min.$v_minr V / $v_now.$v_nowr V / $v_max.$v_maxr V / $v_pct% echo Health: $c_full mAh / $c_dfull mAh / $c_health% Last edited by Aleron Ives; 08-28-2024 at 08:40 PM. |
Advert | |
|
08-29-2024, 09:17 AM | #1398 |
Member
Posts: 23
Karma: 10
Join Date: Sep 2018
Device: Libra 2
|
|
08-30-2024, 02:37 AM | #1399 |
Junior Member
Posts: 5
Karma: 10
Join Date: Aug 2023
Device: PPW5, Scribe
|
The lastest build from master branch, not tested yet.
https://drive.filen.io/f/d0f6be6c-e5...bUIFbgLUJuttaY |
08-30-2024, 03:17 AM | #1400 | |
Member
Posts: 23
Karma: 10
Join Date: Sep 2018
Device: Libra 2
|
Quote:
|
|
Advert | |
|
08-30-2024, 05:06 AM | #1401 | |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2023
Device: Kobo Elipsa
|
Quote:
menu_item :main :Bluetooth (enable) :nickel_bluetooth :enable menu_item :main :Bluetooth (disable) :nickel_bluetooth :disable menu_item :main :Bluetooth (toggle) :nickel_bluetooth :toggle |
|
08-31-2024, 06:45 PM | #1402 | ||
Junior Member
Posts: 9
Karma: 10
Join Date: Aug 2024
Device: Kobo Libra Colour
|
Hello!
I found a guide on reddit for how to use NickelMenu to create a translation feature on Kobo. However, when I try to use it, I get the following error: Quote:
Quote:
|
||
09-05-2024, 08:21 PM | #1403 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2024
Device: kobo libra 2
|
Hello everyone, I have kobo libra 2, software version 4.38.23038
I have a small problem, I already done this part Quote:
That is something new for me... I don't understand how all of this is supposed to look in the file "config" as the result, can someone with the libra 2 send me a config or nm folder file so I can understand how it's supposed to look in the end? I want to install KOReader but as far as I understood, I first need to install NickelMenu and then install there KOReader |
|
09-05-2024, 08:54 PM | #1404 | |
Bibliophagist
Posts: 40,579
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
My preferred method is to use the installer then uninstall KFMon and delete the kfmon, koreader and plato files in the .adds/nm directory. The attached nm_kp.txt file has the entries to run KOReader and Plato directly from NickelMenu. Simply remove the # in front the menu-item for either or both and copy the file into .adds/nm where you should see that file and the doc file. You can find the KFMON-Uninstaller link in this Kute File Monitor: A smarter file-trigger based launcher thread. Last edited by DNSB; 09-05-2024 at 08:58 PM. Reason: Added link to KFMon uninstaller |
|
09-06-2024, 07:18 AM | #1405 | ||
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2024
Device: kobo libra 2
|
Quote:
Quote:
|
||
09-06-2024, 10:09 AM | #1406 | |
Enthusiast
Posts: 36
Karma: 24602
Join Date: May 2015
Device: Kobo Glo HD
|
Quote:
https://github.com/pgaskin/NickelMen...ent-1546998211 |
|
09-06-2024, 02:29 PM | #1407 | |
Bibliophagist
Posts: 40,579
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
For folder navigation, you will need to use KOReader or Plato. Nickel does not have folder navigation. Personally, I use search since it is a lot faster than tapping my way through a directory structure. Nickel can search author, title, series, etc. while KOReader if the calibre generated metadata.calibre is present, can also do searching. KFMon is a program launcher, for instance, you might see a KOReader png image displayed in your Kobo books. Tap on it and KFMon will launch KOReader. To learn more, check out NiLuJe's kfmon GitHub page. |
|
09-15-2024, 04:17 PM | #1408 |
Zealot
Posts: 145
Karma: 35462
Join Date: Dec 2016
Location: Germany
Device: Kobo Libra 2 & Aura One / Tolino Shine 5th Gen.
|
How is the command to simpy open the (general) settings
menu_item : reader: Settings : nickel_open : settings .....doesn't work |
09-15-2024, 04:32 PM | #1409 | |
Zealot
Posts: 146
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
|
Quote:
Code:
# nickel_setting - <action>:<setting> # action is one of: # toggle - toggles between true/false # enable - sets to true # disable - sets to false # setting is one of: # invert - FeatureSettings.InvertScreen # lockscreen - PowerSettings.UnlockEnabled (4.12.12111+) # screenshots - FeatureSettings.Screenshots # force_wifi - DeveloperSettings.ForceWifiOn (note: the setting doesn't apply until you toggle WiFi) # auto_usb_gadget - Automatically enable USB mass storage on connection Code:
# nickel_open - one of: # discover:storefront - Kobo Store # discover:wishlist - Wishlist # library:library - My Books (with last tab and filter) # library:all - Books # library:authors - Authors # library:series - Series (4.20.14601+) # library:shelves - Collections # library:pocket - Articles # library:dropbox - Dropbox (4.18.13737+) # reading_life:reading_life - Activity (with last tab) # reading_life:stats - Activity # reading_life:awards - Awards # reading_life:words - My Words # store:overdrive - OverDrive (4.10.11655+) (note: if you don't have an active OverDrive account, it will give you a "Network Error") # store:search - Search |
|
09-15-2024, 05:07 PM | #1410 |
Zealot
Posts: 145
Karma: 35462
Join Date: Dec 2016
Location: Germany
Device: Kobo Libra 2 & Aura One / Tolino Shine 5th Gen.
|
@hatuluang Ok, I don't find any command to open the settings. However thank you for your reply.
|
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 05:35 AM |
kobo arc launcher not working | lana loves books | Kobo Tablets | 8 | 03-21-2014 07:40 AM |
Orginization on kobo ereaders | crochetgeek2010 | Kobo Reader | 7 | 09-03-2013 03:13 PM |
Kobo Announces eReaders Available for Purchase on Kobo.com in Canada and US | markemark | News | 1 | 04-02-2013 02:46 PM |
Ereaders with Integrated Dictionary | poohbear_nc | Which one should I buy? | 4 | 04-08-2010 07:42 AM |