Formerly locoThrottle.js
ZephyrCab is a web app that simulates prototypically accurate controls for model trains, built on the JMRI model train control software.
ZephyrCab is ready for you to test drive! It is fairly early in development, so if you run into issues please hop in the Gitter chat and I will help you out.
No seriously. That's it.
The screenshots below are from a machine running Linux, so they may look a little different, but the procedure will be essentially the same for Windows, Mac, and Linux.
Find your JMRI profile directory. You can do this by opening JMRI and clicking Help > Locations, as shown below.
Open your JMRI profile directory. You can just click "Open profile location" from inside the JMRI Locations dialog. In my case, my profile directory was /home/hampton/.jmri/My_JMRI_Railroad
, but yours may be a little different.
Create a folder called web
inside the profile location. Your system may already have this folder, but if it doesn't, just make a new folder called web
.
Extract the ZephyrCab download into the web
folder. When you downloaded ZephyrCab, you should have gotten a ZIP file, so just extract its contents into /wherever/your/JMRI/profile/is/web
.
Rename the folder to zephyrcab
. This step is technically optional, but makes things easier, so I recommend it.
If you haven't used it before, start your JMRI web server. You can do this in Edit > Preferences > Web Server. Check the box for "Start automatically with application".
Open your ZephyrCab in a web browser. Google Chrome is officially supported, though Firefox will probably work. No promises otherwise.
http://localhost:12080/web/zephyrcab
http://your-jmri-ip-address:12080/web/zephyrcab
if you've followed this guide correctly.192.168.1.something
or 172.16.something.something
, but could be different.Create bundles for your locomotives. Bundles are the small data files that tell ZephyrCab all the physics information about your locomotive. They also bind it to an actual model on your JMRI roster. You'll need to create a new bundle for your first locomotive, which will probably require a data sheet for information like weight, tractive effort, and horsepower. The "Setup" page within ZephyrCab has an easy tool for creating bundles.
Install your bundles. Once you've created and downloaded the bundle files, you'll need to place them in the /cfg/bundles
folder within ZephyrCab. You also need to add the file names to the /cfg/bundles.list.json
file, otherwise ZephyrCab won't know to load them. So for example, if I created a bundles file called BN1379.zephyrcab
, I would first place it in the /cfg/bundles
folder. Then I would edit the list at the bottom of bundles.list.json
to look like this.
bundles.files = [
"BN1379.zephyrcab",
]
Once you get your bundles set up, ZephyrCab should be ready to go. Simply go to the "Train Settings" tab and add your locomotive/cars. Note that some locomotives have more advanced sound support than others (for example, ZephyrCab knows how to use the prime mover manual notching feature on certain ESU decoders). All decoders will work, but you may only get speed/direction/lighting control on decoders that I haven't had a chance to properly code for yet. If you run into problems, post an issue on the project's GitHub page, or join the support chat on Gitter.
Please see the ZephyrCab documentation for more detailed information on configuration tasks such as setting up automatic connection, adding locomotives, tweaking brake system defaults, and other options. You can also ask questions by creating an issue on GitHub, or joining the Gitter chat.
Any and all contributions are welcome. I am working on better documentation for contributors, but in the meantime feel free to make an issue if you have questions about contributing.
Hats off to: