« Lifeblog post | Main | Negative Decisions in games »

Lifeblogging to Movable Type (Updated)

Posted by Martin on Mar 8, 2005 in Lifeblog

As a user of Movable Type I always found it frustrating that Nokia's Lifeblog posted to Typepad but not Movable Type.

I now have a modified AtomServer.pm script that lets me do this. I'm happy for people to download and use this (at their own risk). To install:
  1. Download this file and replace the standard Moveable Type version found in lib/MT.
  2. Create a directory lifeblog with the normal 755 permissions in the root directory of your blog.
  3. Add the following entries (to be customised as you wish) to your style sheet template and rebuild it.
    .lifeblogsms {
    font-family:'Monaco',courier,monospace;
    font-size:small;
    color:#000;
    background-color: AliceBlue;
    border:#EEE 1px solid;
    padding:0 5px 0 5px;
    width:50%
    }
    
    .lifeblognote {
    font-family:'Verdana', arial,sans-serif;
    font-size:small;
    background-color:LightYellow;
    border:#EEE 1px solid;
    padding:0 5px 0 5px;
    width:50%
    }
    
    .lifeblogimage {
    border:#000 2px solid;
    width:480px;
    padding:5px 5px 5px 5px;
    }
    
    .lifeblogimage img{
    width:100%
    }
    
    .lifeblogvideo{
    }
    
  4. Configure the Lifeblog client with your username and Atom Authentication Token (not password). This can be found on your Author Details page. The server address to use is http://yourwebaddress/cgi-bin/mt-atom.cgi/weblog/
  5. Post an entry from your phone. I'd recommend enabling the Lifeblog Optimise images setting.

Note: If you use any other Atom client that needs to authenticate itself, it may no longer work due to changes I had to make to allow the Lifeblog client to do so. If you need this other client DO NOT use this version of the script.

Updated: 08-Mar-05

I have fixed a problem with the script that prevent the correct display of uploaded 3gp video. The video clip has its own Stylesheet entry too.

TrackBack

Listed below are links to weblogs that reference Lifeblogging to Movable Type (Updated):

» Lifeblogging with Movable Type from ProNet
If you've seen Nokia's LifeBlog application and have wanted to play with it on your own weblog to try out the media blogging features, you'll want to take a look at the new Lifeblog API implementation for Movable Type. (And... [Read More]

» Betting on the right horse at Six Apart? from padawan.info
Russ is launching a bet on how much Six Apart will sell out, taking About.com as an example to figure... [Read More]

» Net routes around Lifeblog TypePad lockin from Roland Tanglao's Weblog
Thank-you. Lazy web, please convert this to a Drupal module. James?From Ocasta - Lifeblogging to Movable Type (Updated).: QUOTEAs a user of Movable Type I always found it frustrating that Nokia's Lifeblog posted to Typepad but not Movable Type. I... [Read More]

» Lifeblog posting to Moveable Type from Lifeblog
Martin over at Ocasta has created a script for Moveable Type that works with Lifeblog. Read about it here. Way to go, Martin! [Read More]

» Use Nokia's Lifeblog Atom Protocol With Movable Type from franklinmint.fm
Ocasta: "As a user of Movable Type I always found it frustrating that Nokia's Lifeblog posted to Typepad but not... [Read More]

» 1st Lifeblog post from Black Phoebe :: Ms. Jen
Sun 03.27.05 - If this works... Then hip-hip-hooray for Martin! Update: 03.27.05 8:50 pm (PST) - And it did. Yeah for Martin! Ever since I got my lovely little Nokia 7610 phone with the LifeBlog software, I have wanted... [Read More]

Comments

Hmm, I can't get it to work. Lifeblog keeps giving me the unhelpful 'there was a problem registering your account' message...

The client error reporting is worse than useless. Things to check
1. You are using Lifeblog 1.5 & MT 3
2. The AtomServer.pm file has the correct permissions (700)
3. The Lifeblog client server address ends with /weblog/
4. The client username is the correct username and the password is set to the Atom Authentication Token (making sure the case is correct)
5. Check the Apache error log

Does it fail before or after it retrieves the blog list?

I have discovered an error in posting Videos that I hope to fix later this week.

I've done all that you said, it retrieved the list of blogs fine... but when trying to post it gives me an error on the phone "Posting failed, please try again."

I have checked my Apache logs and this is what I found.

quack.planetquack.net: [12/Mar/2005:11:57:05 +0000] 212.183.128.185 - - "POST /cgi-bin/mt-atom.cgi/weblog/blog_id=1 HTTP/1.0" - 666 "-" "-"

[Sat Mar 12 11:57:05 2005] [error] [client 212.183.128.185] malformed header from script. Bad header=image: [snipped]/cgi-bin/mt-atom.cgi

Sorry, I forgot to encode part of the error.

It should say "Bad header=<title>image</title>:"

Ok, you're really going to hate me... but I tried posting the same message again... and it worked that time.

I guess it's not a permanent error then.

Don't you just hate when that happens. Let me know if it comes back.

One other thing to look for it it does: Is the file in the lifblog directory.

man, you make it look easy. and I like how you format your stuff. have you managed to do a multi-part post? what phone do you have?

tchau,

charlie

ps what's with the authentication that seems to trip everyone up? is it not 'standard' Atom?

pps also, it's nice to see everyone beating on it (in more ways than one). i hope all the folks involved in the process from our side (both the lifeblog team and six apart) are paying attention and can make any necessary tweaks to the posting method.

ppps what do you think of the video posting?

I've not tried a multi-part post. I don't see a reason it shouldn't work excepting nothing else did first time.

I'm using a Nokia 6670 (the 7610 with a boring keyboard and no games). I have no idea why Nokia thought that business customer don't want games on their phones.

I'm not happy with video posting. I don't like embedding the video in the page to be loaded on every page impression. I think that Typepad post processes the video to create a still and displays that, only displaying the video on request. This is clearly the right thing to do but I stalled when I got to looking at ffmpeg. If that happened on the phone then it would be much better. It's too much effort to configure and install it on a hosted server.

I'm glad to be able to post with Lifeblog and MT. Thank you!
I have a question. I made 2 blogs in one MT. There is one AtomServer.pm in my main blog and photoes are posted to the main one. Is it possible to post photoes to another blog in another directory ? There is no AtomServer in the directory.
(Sorry for my poor English.)

When there is more than one blog being served from one installation Lifeblog should give you a choice of blogs to post to.

Martin

Oh, just I didn't understand how to change a blog to post to. Now I can make a choice. Thank you!

Does this work with the new version (1.60.6.0) ? AtomServer.pm tells me 'X-WSSE PasswordDigest is incorrect'

Is that the version for the 6630? I don't have one of those phones at the moment. Are you absolutely sure that you entered that Atom authentication token correctly?

I don't have a phone to test with yet. I have downloaded LifeBlog for PC v1.60.6.0 from Nokia's website. I DID manage to get authentication to succeed by uncommenting line 177 of your AtomServer.pm (Nonce needed to be base64_decoded prior to PasswordDigest creation). But the posting of entries is not working properly.

The changes I made were to enable direct posting from the phone. You might want to take a look a Lifeblogger - http://www.thauvin.net/erik/lifeblogger for posting to MT from a PC.

Hi,

What a great sample for me ! I ended porting the bit of your code to java that does the parsing of the W3CDTF and it seems to me that the line:

return unless $ts =~ /^(\d{4})(?:-?(\d{2})(?:-?(\d\d?)(?:T(\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(?:(Z)|([+-]\d{2}:\d{2}))?)?)?)?/;

should include parentheses around the 'Z' as I did here because if not you will never get a group matching on that 'Z' and the test that comes up immediately after:

if ($zone && $zone ne 'Z') {

is misleading becase $zone will never be equal to 'Z'. But I think it works because you test $zone before, you could probably just remove the $zone ne Z' part right ? Or am I missing something here ?

That part of the code is a straight lift from the original MT source. I wouldn't be suprised if there was a bug since posting quite often failed when I included the time check code which is why I don't call it. I may try your suggstion and see if it is more reliable.

thanks for putting this together martin! i was excited to see an MT implementation for lifeblog...just got a Nokia 7610 and installed lifeblog 1.51.

so...i tried posting a photo, and almost everything seems to work fine. the photo is uploaded to my lifeblog directory, the phone indicates success, no errors are registered in my apache log. so what's the problem?

no entry got created in my blog!!

very weird. i'm assuming that AtomServer.pm should just create a new entry that shows up on my index page?

any ideas? is there something stupid i'm doing? does this sound related to an Atom authentication token issue? i checked that twice.

Thank you for very usefull information.

Can anyone who got this working confirm that it is working and provide a link to their blog?

works just fine

Thanks for writing this guide, though I can't for the life of me get it to work.

Is there any reason for Lifeblog version 1.60 not to work with the updated AtomServer?

Ignore my last comment - I missed a few from above, most importantly the one about uncommenting line 177 when using Lifeblog version 1.60.

I did that and it worked a treat - thanks!

How do I make a template similar to those lifeblog posts in TypePad (especifically the thumbnails).

Thats something I keep wanting to find time for. I'd suggest investigating the articles on creating image galleries with MT. I think the best way will be to create a side blog for your image posts and then incorporate a view into that from your main blog

Is there any way you could make this work with MovableType 3.2?

Now 3.2 is official I will be looking into this. Maybe its built in?

Any progress? I don´t seem to get it working with 3.2 at all.

I too would like to see an updated version for MT 3.2. I took a look at the source code and compared it to the 3.1x version that was working before I upgraded and I couldn't see what exactly I would have to do to make the 3.2 version work. Perl is most definitely beyond me.

I have found two interesting sources and would like to give the benefit of my experience to you.
I am tuning my pc by the best software for free, with the file search engine http://fileshunt.com and http://filesfinds.com May be you have your own experience and could give some useful sites too. Because this two social sites help me much.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)