View Single Post
Old 02-12-2025, 10:09 AM   #41
inbusiness
Junior Member
inbusiness began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2025
Device: Kobo Libra 2
Quote:
Originally Posted by jagaliano View Post
This thread seems to be "dead"...

So I am posting the Nickelmenu's entry to activate Syncthing..

Code:
# Syncthing and certificates
# General instructions: https://anarc.at/hardware/tablet/kobo-clara-hd/
# Certificates: https://www.mobileread.com/forums/showpost.php?p=4369411&postcount=37

menu_item :main :Syncthing Status  :cmd_output :500:quiet: /usr/bin/pgrep -f "^/mnt/onboard/.adds/syncthing serve"
  chain_success :dbg_toast  :Syncthing active on port 8384
  chain_failure :dbg_toast  :Syncthing inactive on port 8384

menu_item :main :Syncthing (toggle) :cmd_output :500:quiet: /usr/bin/pgrep -f "^/mnt/onboard/.adds/syncthing serve"
  chain_success:skip:5
    chain_failure :cmd_spawn :quiet :exec ifconfig lo | grep -q addr:127.0.0.1 || ifconfig lo 127.0.0.1
    chain_success :cmd_spawn :quiet :exec /mnt/onboard/.adds/syncthing serve &
    chain_success :dbg_toast :Started Syncthing server for KOBOeReader partition on port 8384
    chain_failure :dbg_toast :Error starting Syncthing server on port 8384
    chain_always:skip:-1
  chain_success :cmd_spawn :quiet :/usr/bin/pkill -f "/mnt/onboard/.adds/syncthing serve"
  chain_always :dbg_toast :Stopped Syncthing server on port 8384
Hopefully someone find it useful...
Thanks, it's useful indeed.

Just wondering: do you get the newly imported books indexed automatically or are you relying on some solution based on NickelDBus or something?
inbusiness is offline   Reply With Quote