This is my first Pythonista script but it is quite possible that I will do some more [Day One] automation in the future.
Of course, there are [slogger] and [sifttter], which are great but it's much more convenient for me to do these logging tasks from my iPhone.
This script takes your [letterboxd.com] RSS feed which contains personal reviews/ logs from the site, asks which item (→ movie) to use, parses that item and sends it to Day One.
Before using it, you have to fill in your username.
The script also allows for customisation of the text that is added to the end of the entry.
I also tried to do a version of the script that automatically uses items from the last 24 hours but I couldn't figure out the datetime stuff. Please let me know if you'd like to help with that!
Edit: thanks for the tips; I'll try to implement auto-selection for letterboxd in the near future.
In the meantime, I've created five other scripts that use data from
Notes for people in the iOS contacts: [contacts-script],
reporter-app.com (via Dropbox sync): [reporter-script]
and pinboard.in: [pinboard-script]
format it the way I want the entry to look and send it to Day One.
I could reuse much of the code but the reporter script took me relatively long because of the Dropbox authentication and JSON parsing. Thanks to omz and wrenoud for making this as painless as possible!
Let me know if you have any questions or comments!
I have used Reporter for about a month and really liked it but it doesn't work with my student life where I have to turn off the device as long as I'm in school. For some time, I then turned off reminders and only used the end of day questions but I eventually deleted the app and put those questions in a LCP action. (I also start the scripts from LCP.)
I'm looking forward to using Reporter in a few years when I finished school as it's a very good tool! I highly recommend it if you're OK with being pinged multiple times a day and answering the questions.
Twitter doesn't provide RSS, I tried a 3rd party service but it doesn't seem to be very reliable. The only clean solution I could come up with is having IFTTT save my tweets to Pinboard.in which also makes sense because I don't tweet very often. I abandoned the Twitter script for now but I might try to use another service and update it if there's demand. My current routine involves last.fm and Pinboard.in at the end of the day and letterboxd on demand. Those three obviously have the highest priority for me.
I rewrote the time-extraction code to do timezone conversion. The scripts should now automatically convert the times to your local timezone. Another advantage is that I now use entries of the last 24 hours instead of only the past day. Please test and report back if it works correctly!
I'm glad to hear that my scripts help you! Actually, I couldn't figure out time maths myself. I already tried figuring it out early on in the process of writing the scripts but eventually gave up. Maybe I'll be able to wrap my head around the timezone conversion later this week. Timezones I may be able to implement but please don't ask me to do DST conversion...
Yes, I only use articles from the past day. the problem is though that Instapaper only provides RSS for articles that are currently in the reading list which means that the ones you already read and archived or deleted will not appear. I worked around this by using an IFTTT script that takes all articles from the Instapaper RSS and adds them to Pinboard. (I don't recommend Pinboard's built in option; it's too slow.) that way, by the time I remove them from the Instapaper reading list, they are all saved in Pinboard. I now just run the Pinboard script at the end of the day and it gives my a summary of all pins and reads.
I think that the Instapaper script is rather useless with their RSS implementation so I probably won't work on that anymore.