View Single Post
Old 04-30-2020, 03:51 PM   #1
Mavireck
Connoisseur
Mavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a TexanMavireck might easily be mistaken for a Texan
 
Posts: 63
Karma: 18290
Join Date: Jul 2016
Location: France
Device: Kobo H2O (broken), Kobo H2O Edition 2 v1 (stolen), Kobo Clara 2E
[Proof of concept] BingMaps running as a fake book without killing Nickel

Hi everyone

I made a useless app once again. I wanted to know how well an app could be integrated within Nickel.
So I made a fake book, which displays a map, with which you can interact. Once you quit, your reader goes back to the normal reading mode.

EDIT : And the day after I published this post, Geek1011 released NickelMenu. Which is massively more helpful and is integrated in Nickel a much better way. But anyway what follows can still be interesting, who knows...

Here is a demo: (https://youtu.be/sSYhStf_AZs)


It is availaible on github .
But do not expect to read the code, I did it very quickly and it is quite badly written.
I built it with my python librairies, which are available here: PSSM
As for how I managed to prevent Nickel from registering touch events, I used that.

IT WILL ONLY WORK ON A H2O, simpy because I do not own any other device and I can't adapt my librairies to handle touch events on other devices !

It requires NiLuJe's Kobo stuff (thanks again for your work!). and my Python librairies. You should decompress all my stuff in "/mnt/onboard/.adds/mavireck"
So at the end you should have :
"/mnt/onboard/.adds/mavireck/Python-Screen-Stack-Manager"
"/mnt/onboard/.adds/mavireck/Book-BingMaps"
"/mnt/onboard/.adds/mavireck/Kobo-Input-Python"

In the KFMon folder in my github there are the required files : "bingMaps.ini" goes into your KFMon config folder, and "bingMaps.png" goes in "/mnt/onboard/icons/"

If you really want to use it, delete all the jpg files, then check bingmaps.py. The first few lines are the ones you can tweak (like centerPoint and zoomLevel).

Have fun!

Last edited by Mavireck; 05-03-2020 at 06:35 AM.
Mavireck is offline   Reply With Quote