Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-05-2020, 10:49 AM   #1
tylpk
Enthusiast
tylpk has learned how to buy an e-book online
 
Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
Use Wi-Fi to turn pages on Kobo device.

I followed the concept of KoboCloud to create a project named KoboPageTurner. You could use Wi-Fi to turn pages on your Kobo devices.

Source Code

https://github.com/tylpk1216/KoboPageTurner

Usage
  1. Run KoboServer/makeKoboRoot.sh to get KoboRoot.tgz or you could use release version.
  2. Put KoboRoot.tgz to .kobo folder of your Kobo device.
  3. Reboot device.
  4. Check "ForceWifiOn" item.
  5. Turn on Wi-Fi on Kobo device. The Web Server will run on port 80.
  6. Use Android(HTTP Request Shortcuts) to send HTTP request.
  7. Use three API to control the Web Server.
    • GET /left -> left page.
    • GET /right -> right page.
    • GET /exit -> shutdown the Web Server.
  8. After closing the Web Server, uncheck "ForceWifiOn" item. Then turn off Wi-Fi.
tylpk is offline   Reply With Quote
Old 08-05-2020, 10:55 AM   #2
NiMa
Fanatic
NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.NiMa ought to be getting tired of karma fortunes by now.
 
NiMa's Avatar
 
Posts: 507
Karma: 2390534
Join Date: Jun 2020
Location: Somewhere in the Universe
Device: Kobo Libra, Glo HD, Touch C/B, Mini, Glo, Aura SE, Clara HD, KT
Interesting!
(Though, for me I don't see where I could apply this!)
NiMa is online now   Reply With Quote
Old 08-05-2020, 11:30 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
So how does this work without Android?
JSWolf is online now   Reply With Quote
Old 08-06-2020, 05:50 AM   #4
tylpk
Enthusiast
tylpk has learned how to buy an e-book online
 
Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
We need send HTTP API to Kobo device to turn pages. We can send HTTP API on Windows, Linux, Android, and so on.

Finally, I want to try it on ESP8266 development board.

https://en.wikipedia.org/wiki/ESP8266
tylpk is offline   Reply With Quote
Old 08-06-2020, 06:34 AM   #5
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Neat little idea. As it stands though, it probably isn't going to work properly on many Kobo's however. Mainly because of the touch events.

Different devices have different touch "protocols" (basically, sequence of events). So, ideally you need to account for that.

If that isn't annoying enough, touchscreen orientation in relation to the framebuffer differs on a device basis.

And then what happens when the user has a Forma or Libra, and reads in landscape...
sherman is offline   Reply With Quote
Old 08-06-2020, 07:49 AM   #6
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Try injecting keyboard events for the arrow keys to /dev/input/event1 (IIRC; it might be a different number). This should work on all devices.
geek1011 is offline   Reply With Quote
Old 08-06-2020, 08:47 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by tylpk View Post
We need send HTTP API to Kobo device to turn pages. We can send HTTP API on Windows, Linux, Android, and so on.

Finally, I want to try it on ESP8266 development board.

https://en.wikipedia.org/wiki/ESP8266
How would this work with iOS? Also, does this work with an Aura H2O Edition 1?
JSWolf is online now   Reply With Quote
Old 08-07-2020, 12:32 AM   #8
tylpk
Enthusiast
tylpk has learned how to buy an e-book online
 
Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
Quote:
Originally Posted by sherman View Post
Neat little idea. As it stands though, it probably isn't going to work properly on many Kobo's however. Mainly because of the touch events.

Different devices have different touch "protocols" (basically, sequence of events). So, ideally you need to account for that.

If that isn't annoying enough, touchscreen orientation in relation to the framebuffer differs on a device basis.

And then what happens when the user has a Forma or Libra, and reads in landscape...
Thanks for your suggestion. The touch event is a big problem. Actually, I spent a lot of days to solve the XY of event.

I have a config file named "koboserver.cfg". It can be adjusted for some settings.

eventFile=/dev/input/event1
leftX=800
leftY=500
rightX=100
rightY=500

However, I can not handle orientation now.

I also spent a lot of days to keep Wi-Fi on. It is a big problem too. Even I adjusted "ForceWiFiOn" in my code dynami, The Wi-Fi's behavior is still not stable.
tylpk is offline   Reply With Quote
Old 08-07-2020, 01:44 AM   #9
tylpk
Enthusiast
tylpk has learned how to buy an e-book online
 
Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
Quote:
Originally Posted by JSWolf View Post
How would this work with iOS? Also, does this work with an Aura H2O Edition 1?
Maybe you could try it.
https://apps.apple.com/us/app/action...r/id1400036021

If I have the running log, I can check whether we should modify settings or not. The KoboPageTurner has some settings to adjust.
eventFile=/dev/input/event1
leftX=800
leftY=500
rightX=100
rightY=500
tylpk is offline   Reply With Quote
Old 08-19-2020, 02:17 AM   #10
tylpk
Enthusiast
tylpk has learned how to buy an e-book online
 
Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
I wrote an app to help me use Logitecn R500 to turn pages, not bad.

https://youtu.be/FerqFQrJcjs
tylpk is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura H2O Turn pages by voice Ecallan Kobo Developer's Corner 43 08-25-2021 10:07 AM
Auto turn pages maac2212 Kindle Developer's Corner 3 05-19-2016 08:19 AM
Kobo Touch will not turn pages eddie19 Kobo Reader 1 03-26-2012 10:54 AM
pages won't turn MSMYTH Nook Color & Nook Tablet 1 05-14-2011 07:03 PM
cannot turn pages back Orfax PocketBook 2 07-19-2010 05:35 AM


All times are GMT -4. The time now is 10:42 AM.


MobileRead.com is a privately owned, operated and funded community.