I have a Christmas tree that has 5 locomotives running on it. My girlfriend though has no interest in learning how o use an NCE throttle so I decided to setup JMRI on a raspberry PI headless so maybe she can turn the trains on a different way. this turned into a huge project trying to get java installed trying to get JMRI to auto launch etc. After finally getting it all setup I figured I would write up a step by step tutorial on doing this.the easiest way to install the OS is to use the Raspberry PI Imager which you can find herehttps://www.raspberrypi.com/software/once that is finished and you have the pi started the first step is to install Java. Open terminal and type in the following codes
sudo apt updatesudo apt upgradesudo apt install openjdk-11-jre
sudo nano /etc/xdg/lxsession/LXDE-pi/ autostart
@lxterminal --command="/home/PI/JMRI/PanelPro"
I sure hope that my girlfriend has an interest in learning how to use an NCE throttle.
Rich
Alton Junction
There is already a pre-formatted image available for doing this. All you have to do is download it, copy it to an SD card, insert it into the Pi, and power it up. It detects which DCC system you're using and automatically configures itself. It also sets up the Pi's WiFi so you don't have to any of that, either.
Go to jmri.org and scroll down the left-hand index. It's linked at the bottom under "JMRI Setup and Installation"...
richhotrainI sure hope that my girlfriend has an interest in learning how to use an NCE throttle. Rich
I read numerous posts about problems installing JMRI, problems with ports and it's all a bridge too far for me. I've got mostly ESU decoders, my lokprogrammer and that's good enough for me.
Henry
COB Potomac & Northern
Shenandoah Valley
BigDaddyI read numerous posts about problems installing JMRI, problems with ports and it's all a bridge too far for me. I've got mostly ESU decoders, my lokprogrammer and that's good enough for me.
What you probably read, Henry, are folks who didn't follow the installation instructions on the JMRI website. The installation is generally unique for each DCC system but straightforward. The JMRI website is very good about spelling out what you need for each one of them - e.g. driver's, compatible Java versions, and/or hardware.
I use JMRI Decoder Pro primarily for reading & storing the decoder CV values for my locomotive roster. Should I need to reset a locomotive's decoder to factory settings, I can reinstall ("write") the stored values into any locomotive again very easily and quickly. Pretty handy - especially if I've spent time adjusting CVs to remap a button on my throttle, or setting up Rule 17 lighting or gyralighting.
I use Decoder Pro less so for programming but the layout of the function tabs does make locating any CV easier. After setting up the long address with my Power Cab throttle, I generally only adjust a few CVs for each locomotive - e.g. 29, 49/50, and 61 . I've done enough of them now that I know what CVs to enter and just do that in Programming Mode using my Power Cab.
Tom
https://tstage9.wixsite.com/nyc-modeling
Time...It marches on...without ever turning around to see if anyone is even keeping in step.
BigDaddy I read numerous posts about problems installing JMRI, problems with ports and it's all a bridge too far for me. I've got mostly ESU decoders, my lokprogrammer and that's good enough for me.
I find this incredibly interesting, now after researching all that you have described and learning the Raspberry Pi headless is simply no monitor, which raspberry pi should I be looking to acquire to do this project?
thanks
Lynn
wolf10851 I have a Christmas tree that has 5 locomotives running on it. My girlfriend though has no interest in learning how o use an NCE throttle so I decided to setup JMRI on a raspberry PI headless so maybe she can turn the trains on a different way. this turned into a huge project trying to get java installed trying to get JMRI to auto launch etc. After finally getting it all setup I figured I would write up a step by step tutorial on doing this.the easiest way to install the OS is to use the Raspberry PI Imager which you can find herehttps://www.raspberrypi.com/software/once that is finished and you have the pi started the first step is to install Java. Open terminal and type in the following codes sudo apt updatesudo apt upgradesudo apt install openjdk-11-jre that will get java installednow you need to install JMRI. Go to https://www.jmri.org/download/index.shtml and download the ver 5.0 linux versionwhen you download that double click on the file you just downloaded. It will open the extractor.. Click on extract. I would suggest changing the folder that it extracts to from /tmp to a location like your home location then click on extractthat will install JMRI on the PInow came the hardest part for me trying to get panelpro to launch automatically so I could use the pi headless and make it easy for my girlfriend to get into itOpen terminal and put in the filling code sudo nano /etc/xdg/lxsession/LXDE-pi/ autostart this will open an editor. go to the bottom of the code already in there and add this @lxterminal --command="/home/PI/JMRI/PanelPro" (make sure you use the quotes) also make sure to use the path where you extracted JMRI to NOW when you reboot the PI Panel Pro will automatically start up.turn on wireless and set country codeconnect to wifi signalright click on wireless and wired network settingsunder configure select wlan0 dropdownEnter a static IP address and all other info then applyOpen panel pro if not already open and select edit>preferenceconnections put in your command station info and again hit savenow if you want wi throttle to start automatically go to edit>preferences>withrottle and about halfway down check the box under "start automatically with application" then saveif you want the web server to start automaticallyselect web server in the left hand column then select web server on the right hand panel and check "start automatically with application" then savethere you go now you have JMRI installed on a pi that starts automatically and starts either withrottle or web server automatically
that will get java installednow you need to install JMRI. Go to https://www.jmri.org/download/index.shtml and download the ver 5.0 linux versionwhen you download that double click on the file you just downloaded. It will open the extractor.. Click on extract. I would suggest changing the folder that it extracts to from /tmp to a location like your home location then click on extractthat will install JMRI on the PInow came the hardest part for me trying to get panelpro to launch automatically so I could use the pi headless and make it easy for my girlfriend to get into itOpen terminal and put in the filling code
sudo nano /etc/xdg/lxsession/LXDE-pi/
this will open an editor. go to the bottom of the code already in there and add this
(make sure you use the quotes) also make sure to use the path where you extracted JMRI to
Present Layout progress
http://cs.trains.com/mrr/f/11/p/290127/3372174.aspx#3372174
wickman I find this incredibly interesting, now after researching all that you have described and learning the Raspberry Pi headless is simply no monitor, which raspberry pi should I be looking to acquire to do this project? thanks Lynn
MrMe thankyou Lynn wickman I find this incredibly interesting, now after researching all that you have described and learning the Raspberry Pi headless is simply no monitor, which raspberry pi should I be looking to acquire to do this project? thanks Lynn Lynn, The instructions on the JMRI web site I linked to above refer to a model 2B, and a quick perusal of jmriusers on groups.io shows folks have used 4B's, so the pre-formatted version (simpler to get up and running) should work on anything in that range.
thankyou
They could do a better job of promoting this, but the "Steve Todd Image" is what most people have been using for the last several years if they are using a Pi. Steve is also part of the DCC-EX team so there are DCC-EX enhancements. All the software you would want is on that image and it automatically creates an Access Point to connect wirelessly to. You can change that to connect to your own network router.https://mstevetodd.com/rpi