You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I use calibre-web as my api_endpoint, but that's hosted locally and on vacation I rather use the bol/kobo store. Would it be possible to have a switch in NickelMenu to change the api_endpoint (and reboot), so I can choose where to download books from?
The text was updated successfully, but these errors were encountered:
Edit your configuration file Kobo eReader.conf to include an additional key api_endpoint_backup=....
Next to this file, create a file switch.sh with the content below:
#/bin/bashset -e
SCRIPT_DIR=$(dirname -- "$( readlink -f -- "$0";)")cd"${SCRIPT_DIR}"
INPUT="Kobo eReader.conf"# Extract the values into variables
api_endpoint_value=$(sed -n 's/^api_endpoint=//p'"$INPUT")
api_endpoint_backup_value=$(sed -n 's/^api_endpoint_backup=//p'"$INPUT")# Replace values
sed -i.bak \
-e "s|^api_endpoint=.*|api_endpoint=$api_endpoint_backup_value|" \
-e "s|^api_endpoint_backup=.*|api_endpoint_backup=$api_endpoint_value|""$INPUT"# Output result
cat "${INPUT}"| grep "api_endpoint\="
Make sure to chmod +x switch.sh
Edit your config file /mnt/onboard/.adds/nm/config and add the line below: menu_item :main :SwitchEndpoint :cmd_output :500:/mnt/onboard/.kobo/Kobo/switch.sh
You can then run this action from the NickelMenu and reboot your Kobo to apply it.
Currently I use calibre-web as my api_endpoint, but that's hosted locally and on vacation I rather use the bol/kobo store. Would it be possible to have a switch in NickelMenu to change the api_endpoint (and reboot), so I can choose where to download books from?
The text was updated successfully, but these errors were encountered: