Skip to content

selwynsimsek/lisp-o-motive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lisp-o-motive

A locomotive

A library for accessing the British Network Rail data feeds.

Find out about them here: Open Rail Data

This is a work in progress. At the moment the Train Describer and Train Movements feeds are supported.

Usage

  1. (ql:quickload :lisp-o-motive)

  2. Ensure you have a Network Rail data feeds account, you can sign up here.

  3. Add your data feeds account credentials:

(setf lisp-o-motive:*username* "selwyn@example.com" lisp-o-motive:*passcode* "xxx")

You can avoid the hassle of doing this every time by storing your username and passcode in <project-root>/config:

selwyn@example.com
xxx

and lisp-o-motive will read the credentials upon being loaded.

  1. Establish a connection using (lisp-o-motive:setup-connection).

Installation

Clone to ~/quicklisp/local-projects.

There is an issue with the version of cl-stomp in Quicklisp at the time of writing that can prevent connections from being established; you may like to install a recent version of cl-stomp to ~/quicklisp/local-projects.

Author

Copyright

Cover picture:
By DiverScout at English Wikipedia, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=6802712
Copyright (c) 2019 Selwyn Simsek (sgs16@ic.ac.uk)

About

Common Lisp interface to Network Rail data feeds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published