3 ms·
Okay, that's an impressive hack! One that should be totally unnecessary, but wow, nice job working around limitations! By the way, seems like you could use ino
by herewulf 3y ago
Okay, that's an impressive hack! One that should be totally unnecessary, but wow, nice job working around limitations!
By the way, seems like you could use inotify to detect new screenshots rather than polling the Syncthing API. Probably not enough of a functional difference to change something that is already working though.
- xrd 3y agoThanks for reading through that long convoluted post! I appreciate the comment. Syncthing was necessary to get the files onto my desktop machine, and I don't know how I could have automatically pushed from my android phone otherwise. Syncthing was so ridiculously easy to use, I basically just started a docker container, and then added the backend on my Android device. Zero firewall configuration. So simple. I suppose I could have easily used inotify, but either way I needed a script to launch the OCR, and I don't really see a big value in using a filesystem watch over an API when the syncthing api is very simple. Cheers!
- herewulf 3y agoAbsolutely. I very much enjoyed the write up. You make a good point about Syncthing. It's just that polling kind of offends my sensibilities if there's something better. But.. I'm one of those hackers running multiple bash processes per second just to update my status bar... For about ten years now! So, don't mind me. ;) Syncthing is great software and I'm using it on all my devices. I'm glad it provided an easy solution to your use case.