• luk

    This is my first Pythonista script but it is quite possible that I will do some more [Day One][1] automation in the future.
    Of course, there are [slogger][2] and [sifttter][3], which are great but it's much more convenient for me to do these logging tasks from my iPhone.

    [letterboxd script][4]

    This script takes your [letterboxd.com][5] 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

    Twitter.com: [twitter-script][6],
    last.fm: [last.fm-script][7],
    Instapaper.com: [Instapaper-script][8],
    Notes for people in the iOS contacts: [contacts-script][9],
    reporter-app.com (via Dropbox sync): [reporter-script][10]
    and pinboard.in: [pinboard-script][11]

    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!
    [1]: http://dayoneapp.com
    [2]: http://ttscoff.github.io/Slogger/
    [3]: http://craigeley.com/post/72565974459/sifttter-an-ifttt-to-day-one-logger
    [4]: https://gist.github.com/lukf/8978002
    [5]: http://letterboxd.com
    [6]: https://gist.github.com/lukf/8982812
    [7]: https://gist.github.com/lukf/10540780
    [8]: https://gist.github.com/lukf/8982684
    [9]: https://gist.github.com/lukf/8982669
    [10]: https://gist.github.com/lukf/8982799
    [11]: https://gist.github.com/lukf/9785293

    posted in Pythonista read more
  • luk

    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.

    posted in Pythonista read more
  • luk

    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.

    posted in Pythonista read more
  • luk

    Forgot to update the last.fm link, it's all correct in the original post, now.

    posted in Pythonista read more
  • luk

    Timezone support for last.fm and pinboard.in scripts

    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!

    posted in Pythonista read more
  • luk

    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...

    posted in Pythonista read more
  • luk

    Are you referring to Pinboard when stating that you can only access public bookmarks via RSS? That's not the case; you can get a private RSS link from your Pinboard account page and it shows all of the recent pins.

    posted in Pythonista read more
  • luk

    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.

    posted in Pythonista read more
  • luk

    I implemented sys.argv options for URL-scheme use. You can now run the scripts silently which will create the entries without user confirmation and also pass the entry comments via the URL.

    posted in Pythonista read more
  • luk

    I updated the pinboard and letterboxd scripts to use Markdown formatted tables instead of the raw entries and made some improvements to the last.fm script. (special characters in the data cannot break the formatting anymore)

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!