Skip to content

Commit

Permalink
wip get notebook name from tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudsftp committed Aug 16, 2024
1 parent 07fd5ca commit 0df396a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions reSnap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,18 @@ else
fi

if [ -d "$output_file" ]; then
output_file="${output_file}/test.png"
# reSnap_$(date +%F_%H-%M-%S).png
output_dir="$output_file"

notebooks_dir="/home/root/.local/share/remarkable/xochitl"
notebook_data_file="$(ssh_cmd "ls -t $notebooks_dir" | head -n 1)"
notebook_uuid="$(basename $notebook_data_file | cut -d '.' -f 1)"

notebook_metadata_file="$notebooks_dir/${notebook_uuid}.metadata"
metadata="$(ssh_cmd "$notebook_metadata_file")"
output_file_name="$(echo $metadata | jq)"
exit 1

output_file="${output_file}/${output_file_name} $(date +%F_%H-%M-%S).png"
fi

# read and compress the data on the reMarkable
Expand Down

0 comments on commit 0df396a

Please sign in to comment.