Copy screenshot to xochitl
Describe the solution you'd like There should be the ability to copy a screenshot into xochtil so you can draw on it.
@utopiah would you be willing to help with this? My current thought is to add something to https://github.com/Eeems/oxide/tree/master/applications/screenshot-viewer to trigger copying it into xochtil.
I imagine the easiest way would be to convert screenshot.png screenshot.pdf (after an opkg install imagemagick-png) then adding it to listed documents in a directory by adding the right metadata. Unfortunately that last step is a bit problematic since 2.6 so still figuring out that last part for now.
@Utopiah I'm ready to work on this. Any insight on what I should do to add the metadata required?
I wonder if remarkable-fs or something similar could be used on the device to make working with the files easier.
Having something like
echo "{'parent':'','type':'DocumentType','visibleName':'$1'}" | sed s/\'/\"/g > ~/xochitl-data/`echo $1 | sed "s/.pdf//"`.metadata;
echo '{ "fileType": "pdf" }' > ~/xochitl-data/`echo $1 | sed "s/.pdf//"`.content;
with $1 as filename should do. xochtil has to be restarted to make the file visible though.
Hmm, maybe I should try to use the cloud API to avoid requiring a restart? That would require the user to be connected to the cloud though. That or figure out a way to force a refresh without a restart. Likely that will require binary patching which might not play nice with ddvk-hacks.
Another thought would be to try to use the USB interface by enabling it and doing something similar to https://github.com/rM-self-serve/webinterface-wifi to expose it on localhost.
Very interesting idea