Getting Blojsom to generate a RouteBuddy file

RouteBuddy users can use 'Extras' as a place to offer code or advice.

Getting Blojsom to generate a RouteBuddy file

Postby aburt » Fri Aug 31, 2007 10:16 am

You will need to of have completed my first Blojsom mod before starting this one, click here to see the first Blojsom mod.

This is a work in progress Blojsom mod, well the Blojsom side is ok. I'm just looking into how to polish off the last bit, which is pulling down the data and opening it up rather than using the Terminal.

What will you need for this Blojsom mod:
- Text editor
- Blojsom
- RouteBuddy

First off you can download my RouteBubby template for Blojsom by clicking here.


So now let's get started with Blojsom:

1) Log into Blojsom and go to: Weblog Settings --> Templates

2) Under 'Add blog template' type in the name 'routebuddy.vm' then click on 'Add blog template'

3) Now you should see a nice new shiny window called 'Update blog template'. At this point I'd like you to open 'routebuddy.vm' file you downloaded and we'll quickly edit it.

4) With in the routebuddy.vm file if you look out for these two lines of code and edit the numbers to a location the you would like set as your default home location:

Code: Select all
#set ($longitude = "-0.126235993964")
#set ($latitude = "51.500152920606")


5) With your default home location now set from stage 4 above, we can now copy and past the text from that into the 'Update blog template' window Blojsom and click on 'Update blog template'

6) Still logged in, here we will go to: Weblog Settings --> Flavors

7) Scroll down the screen till you see 'Add blog flavor' then in:

- 'Flavor name' add 'rub' in text field
- 'Flavor MIME type ' add 'text/xml' in text field
- 'Flavor character set' leave blank
- 'Blog template for flavor' pick 'routebuddy.vm'

now click 'Add blog flavor'


8 ) Still logged in, here we will go to: Plugin Settings --> Mapping

9) Make shore you add 'meta, limiter' for the Plugin chain map 'rub plugin chain map' Flavor, then at the bottom of the screen click on 'Edit blog pluin chain'.

That's it you should be done here in Blojsom feel free to log out of Blojsom.

The next stage is the bit that is work in progress, if you fire up the Terminal on your Mac you can then use curl and the open commands, to get and view your blog as waypoints in RouteBuddy like so with my blog:

Code: Select all
curl -0 "http://blogs.rave.ac.uk/blojsom/blog/aburt/?flavor=rub" > ~/Desktop/adams_blog.rub ; open ~/Desktop/adams_blog.rub


I'm shore there is a cleaner way of doing this with out the Terminal but it's a start :)

I've got a little video click of it here in action + plus also showing other fun Geo things you can do with Blojsom - click here (14 MB).
aburt
 
Posts: 22
Joined: Thu Aug 23, 2007 11:35 am
Location: London, UK

Return to RouteBuddy Extras

Who is online

Users browsing this forum: No registered users and 0 guests