Kobo+Telegram channel. Ho to catch kobo events?
Hi all.
I used to use kindle for years and now with kobo.
I love my new kobo, but missing one very helpful feature - share highlights. (kindle has share in twitter option)
I made a new script to post my highlights to my telegram channel.
Not a big deal - all highlights stored in SQLite DB file -
I created a new telegram bot channel and every time kindle get wifi connected -
check bookmarks table for new records and via simple python script post them to the channel.
An everything almost working fine - except one thing -
If I run the script " ./usr/local/kobotelegram/run.sh " from kobo ssh - all works
but seems like my rules.d/98-kobotelegram.rules file has been ignored.
The file:
KERNEL=="eth*", RUN+="/usr/local/kobotelegram/run.sh"
KERNEL=="wlan*", RUN+="/usr/local/kobotelegram/run.sh"
KERNEL=="lo", RUN+="/usr/local/kobotelegram/mount.sh"
as I understand - if kobo gets wifi connected - /usr/local/kobotelegram/run.sh should be called..... but nothing ...
Does somebody know what can be the reason and how to troubleshoot?
and is there any other events I can catch on kobo to fire my script except "check wifi connection"? Maybe there is an event on "bookmark added"?
Thanks to everybody. Any help will be appreciated.
After I finish my project I will share my Github repo for everyone.
|