07-31-2022, 08:54 AM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jul 2022
Location: Italy
Device: Kobo Libra 2
|
How to share screenshots without USB connection
Hi everyone!
Do you know a workaround in order to easily share the screenshots I can take with my Kobo? At the moment I need to connect the kobo to my pc using the USB cable but that's not very convenient. I thought of something like "KoboCloud" but that would work in a reverse way: it would share the file FROM the Kobo TO the Cloud. Does anything like that exist? Do you know other solutions to get the result I'm looking for? Thanks in advance |
08-02-2022, 08:57 AM | #2 |
Connoisseur
Posts: 58
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
|
I don't know of any existing solution to this, but it shouldn't be too hard to create something like this. Let's suppose you're using Nextcloud/Owncloud, then you could create a share in which you allow uploads. Using curl (which is already included in KoboCloud) you can then upload any file to that share. To summarize:
Hope this helps to get you going. |
Advert | |
|
08-02-2022, 09:06 AM | #3 |
Ebook reader
Posts: 390
Karma: 5899335
Join Date: Oct 2008
Location: York, England
Device: Kobo Aura H2O (ed 2, v1), Kobo Forma, Kobo Libra 2
|
You're going to have to connect USB to charge the thing, so why not just transfer the screenshots then?
|
08-02-2022, 09:07 AM | #4 |
Connoisseur
Posts: 92
Karma: 10988
Join Date: Dec 2018
Device: Kobo Clara HD
|
You could try running an FTP server (with NickelMenu) on your Kobo device with which you could transfer those screenshots.
|
08-02-2022, 09:13 AM | #5 |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
Advert | |
|
08-03-2022, 03:13 AM | #6 | ||
Junior Member
Posts: 8
Karma: 10
Join Date: Jul 2022
Location: Italy
Device: Kobo Libra 2
|
Quote:
Two days ago I wrote a bash script that I launch through NickelMenu. It checks the internet connection, looks for screenshots in the root directory and it uploads (it's supposed to, at least) to dropbox with curl and deletes them after that. I still have a problem I can't fix: curl throws me an error about some missing certificates. I've already tried to run curl with the Code:
--cacert Quote:
Am I the only one with such a use case? |
||
08-03-2022, 03:42 AM | #7 |
Ebook reader
Posts: 390
Karma: 5899335
Join Date: Oct 2008
Location: York, England
Device: Kobo Aura H2O (ed 2, v1), Kobo Forma, Kobo Libra 2
|
Each to his own. Nothing implied, I was just trying to help.
By suggesting simply using a USB cable, I was applying Occam's principle of Do it the simple way. For me, but perhaps not for you, putting a lot of effort in to do it a way that I wouldn't find easier anyway, is pointless. But then my iMac has a USB C and micro USB cable permanently connected so I would say that. I don't do a lot of sharing, so think we oldies work differently from the way you youngsters do |
08-03-2022, 05:36 AM | #8 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Jul 2022
Location: Italy
Device: Kobo Libra 2
|
Quote:
It's not an age-related thing, it's more about the where & when we read |
|
08-03-2022, 06:36 AM | #9 | |
Diligent dilettante
Posts: 3,417
Karma: 48736498
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
Quote:
|
|
08-03-2022, 12:37 PM | #10 | |
Connoisseur
Posts: 58
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
|
Quote:
|
|
08-05-2022, 09:34 AM | #11 |
Junior Member
Posts: 8
Karma: 10
Join Date: Jul 2022
Location: Italy
Device: Kobo Libra 2
|
Sure! You can find it here: https://github.com/luke-gto/kobo-screenshot-uploader
I've decided to upload the screenshots to telegram because it's the messaging app I use the most. At the moment the script has very few features (only one actually) but at least it does what I need. Feel free to suggest any improvements |
08-06-2022, 09:25 AM | #12 | |
Connoisseur
Posts: 58
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
|
Quote:
If you have KoboCloud installed, you could just use their cert bundle, or download a bundle from the curl website: https://curl.se/docs/caextract.html - see also https://github.com/fsantini/KoboClou...ateCABundle.sh |
|
08-06-2022, 10:47 AM | #13 |
Connoisseur
Posts: 58
Karma: 143000
Join Date: Apr 2022
Device: Kobo Libra 2
|
On a second note I've simplified your script and made it work with Nextcloud/Owncloud. It makes use of KoboCloud's curl and certificate bundle. I am not quite sure how to check for a connection, but wanted to use NickelMenu like this:
Code:
menu_item :main :Sync Screenshots :nickel_wifi :autoconnect chain_success :cmd_spawn :quiet:/mnt/onboard/.adds/sync/sync.sh chain_success :dbg_toast :Syncing Screenshots Code:
#!/bin/sh SCREENSHOTS="/mnt/onboard" KC_HOME="/usr/local/kobocloud" CURL="$KC_HOME/curl --cacert $KC_HOME/ca-bundle.crt --fail --silent" HEADER="X-Requested-With: XMLHttpRequest" URL="[Your Nextcloud/Owncloud instance]/public.php/webdav" USER="[Your Share]:" for i in $(find $SCREENSHOTS -maxdepth 1 -type f -name "screen_*.png"); do DATE=$(date -r "$i" "+%Y-%m-%d-%H-%M-%S") $CURL -u "$USER" -H "$HEADER" -T "$i" "$URL/kobo-$DATE.png" if [ $? -eq 0 ]; then rm $i fi done |
08-06-2022, 11:56 AM | #14 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Jul 2022
Location: Italy
Device: Kobo Libra 2
|
Quote:
Btw, feel free to fork the repo and work on that Ah, why don't you open a pull request, I'd like to implement your version of the config file! Let me know how I can attribute the work to you. Next thing I'm gonna do is implementing NickelMenu signals and slot. I want to have an option that lets the kobo to automatically connect to the wifi when the button for sharing the screenshot is pressed and then turn the wifi off. Last edited by not_lucky_luke; 08-06-2022 at 12:00 PM. |
|
Tags |
cloud, kobo, screenshot, share |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
usb connection | lumpynose | Onyx Boox | 1 | 04-28-2019 04:57 PM |
Share kindle internet connection via usb | maribu | Kindle Developer's Corner | 2 | 12-28-2014 11:06 AM |
Kindle DXG -- share the computer's connection via USB? | HansTWN | Kindle Developer's Corner | 1 | 01-20-2012 07:21 AM |
Hacks Is it possible to share the 3G connection of Kindle via WiFi? | palmtenor | Amazon Kindle | 12 | 12-05-2010 03:25 PM |
USB Connection | Kingston | iRex | 2 | 04-15-2008 09:36 AM |