|
|
#1 |
|
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,906
Karma: 12983233
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
script to enable BT and launch audio apps
I use my PocketBook frequently to play audiobooks and occasionally to listen to MP3s (mainly background noise) whilst reading.
I regularly pair two different sets of BT headphones as well as my car stereo to the Pocketbook. I find it cumbersome to use the PocketBook menu system to connect across these devices, so wrote a shell script to automate the procedure.
Save the code below as a .app file in /mnt/ext1/applications if you'd like to try it. May need a device reboot before it shows in User's section of the app menu. Spoiler:
Last edited by neil_swann80; 10-23-2024 at 01:47 PM. Reason: Improved code |
|
|
|
|
|
#2 |
|
Member
![]() Posts: 12
Karma: 10
Join Date: Oct 2024
Device: Pocketbook Verse Pro
|
Hi, thanks for your script
![]() I want to ask for help about writing a script that achieves the following function: 1. Open the last opened book. 2. turn on bluetooth 3. pairing the headphone 4. entering tts mode and start to play I have CS program but have little experience writing scripts in Linux environment. I am wondering if there is any documentation for this or if you could tell me how you find these api for toggling the interface of the pocketbook. |
|
|
|
| Advert | |
|
|
|
|
#4 |
|
Member
![]() Posts: 12
Karma: 10
Join Date: Oct 2024
Device: Pocketbook Verse Pro
|
Thanks for your reply. I did not see api related to TTS mode in that file. Does that mean that the tts could not be toggled by scripts?
|
|
|
|
|
|
#6 |
|
0000000000101010
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,906
Karma: 12983233
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
This command should launch the last opened book:
Code:
/ebrmain/cramfs/bin/eink-reader.app "$(head -n 1 /mnt/ext1/system/state/lastopen.txt)" I do see: qml: openVoice in the terminal output when I manually click on TTS in the reader app. And when closing it: close tts panel Last edited by neil_swann80; 10-26-2024 at 07:44 AM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Enable Wifi by script? | kanataa | Kobo Developer's Corner | 6 | 08-07-2019 11:10 AM |
| how to enable usb audio driver on andriod 4.4 on KPW3? | jsjcjsjc | Kindle Developer's Corner | 6 | 06-25-2017 06:12 AM |
| Launch script on sytem events | arikfunke | Kindle Developer's Corner | 0 | 04-21-2012 04:46 AM |
| iLiad Launch file from script | dedo | iRex Developer's Corner | 3 | 07-21-2009 05:32 AM |