Author Topic: JMRI Script Language  (Read 1830 times)

0 Members and 1 Guest are viewing this topic.

dclyde

  • Crew
  • *
  • Posts: 122
  • Respect: +2
JMRI Script Language
« on: January 22, 2008, 08:40:53 AM »
0
I would like to start writing some scripts to handle setting switches for routes, etc.

I do have a programming background but I can't seem to find any documentation on the instruction set.  Does anyone know of any publications that provide information on the available instruction set, instruction syntax and functions?

Thanks,
Dave

John

  • Administrator
  • Crew
  • *****
  • Posts: 10840
  • Gender: Male
  • Respect: +514
Re: JMRI Script Language
« Reply #1 on: January 22, 2008, 08:49:46 AM »
0
I think a lot of it is python ..

Your best bet is to join the yahoo group for JMRI. There is a files section, with lots of examples ..

Also... http://jmri.sourceforge.net/   and   http://jmri.sourceforge.net/doc/scripts/index.html

diezmon

  • Crew
  • *
  • Posts: 1016
  • Gender: Male
  • Do they speak English in "What"?
  • Respect: +150
Re: JMRI Script Language
« Reply #2 on: January 22, 2008, 09:21:39 AM »
0
You should  start here, and get your basic understanding...

http://jmri.sourceforge.net/doc/scripts/

Ed Kapuscinski

  • Global Moderator
  • Crew
  • *
  • Posts: 18018
  • Has a degree in American History & Culture.
  • Respect: +2234
    • Conrail 1285
Re: JMRI Script Language
« Reply #3 on: January 22, 2008, 03:37:33 PM »
0
Ugh. Python...

DKS

  • The Pitt
  • Crew
  • *
  • Posts: 11490
  • Your choice for ANAL...
  • Respect: +1988
    • DKS Home
Re: JMRI Script Language
« Reply #4 on: January 22, 2008, 04:14:59 PM »
0
Ugh. Python...

Funny... the coders here where I work almost universally swoon over Python. (Haven't touched it myself, hope to never.)
"Life's a piece of sh!t when you look at it."
                                       —Monty Python

diezmon

  • Crew
  • *
  • Posts: 1016
  • Gender: Male
  • Do they speak English in "What"?
  • Respect: +150
Re: JMRI Script Language
« Reply #5 on: January 22, 2008, 04:28:59 PM »
0

dclyde

  • Crew
  • *
  • Posts: 122
  • Respect: +2
Re: JMRI Script Language
« Reply #6 on: January 22, 2008, 05:11:28 PM »
0
Thanks to everyone for your contributions.

I guess this is a case of needing to being careful for what you wish for...you just might get it.

The instruction set documentation alone is 1,050 pages.  I guess I better pick up a few reams of paper and another laserjet ink cartridge.

At least I have a place to start.

Dave

John

  • Administrator
  • Crew
  • *****
  • Posts: 10840
  • Gender: Male
  • Respect: +514
Re: JMRI Script Language
« Reply #7 on: January 22, 2008, 05:36:07 PM »
0
David .. don't do that . just go to the yahoo groups site. There are numerous example scripts there that can be modified for your use ..

dclyde

  • Crew
  • *
  • Posts: 122
  • Respect: +2
Re: JMRI Script Language
« Reply #8 on: January 22, 2008, 06:47:57 PM »
0
Yea, I should probably do that...Afterall, I am a member of the group but haven't had much of chance to actually scope things out.

Dave