JMRI Jython Example Files

JMRI Jython Example Scripts and Applications Directory
======================================================

This directory contains user-contributed [scripts][1] written in Jython, a Java-based
variant of Python, available in the JMRI application.  Some scripts are grouped by 
subject name in subdirectories.

Scripting examples and script-based applications are introduced here:
 - [Example scripts][2]
 - [Script-based applications][3]
Additional documentation for some script applications is found here:
 - [Script application help][4]
 

## Copying and License 

See [the COPYING file][5] for the license terms for using these files.  See also the [JMRI Copyright page][6]

# Subdirectory and file list


[1]: https://www.jmri.org/help/en/html/tools/scripting/index.shtml
[2]: https://www.jmri.org/help/en/html/tools/scripting/Examples.shtml
[3]: https://www.jmri.org/help/en/html/tools/scripting/JythonApps.shtml
[4]: https://www.jmri.org/help/en/html/scripthelp/
[5]: https://www.jmri.org/jython/COPYING
[6]: https://www.jmri.org/Copyright.html

Subdirectories

AnyRail

DCC-EX

DispatcherSystem

IoT

Jynstruments

LCC

LogixNG

MQTT

anyrail

ctc

dccspecialties

javaone

loconet

operations

serialinput

test

Sample Scripts

AAR105.py (download)
AC_PowerControl.py (download)
AD4OnOff.py (download)
AddButton.py (download)
AddOccupancyIconsToPanel.py (download)
AddPowerButton.py (download)
AlarmClock.py (download)
AllocateRosterEntryToBlock.py (download)
AppleScript.py (download)
AssignIdTagToRollingStock.py (download)
AudioExample.py (download)
AudioPlayer.py (download)
AutoActiveTrains_Simulator.py (download)
AutoDispatcher2.py (download)
AutoLayoutPowerOff.py (download)
AutomatonExample.py (download)
BackAndForth.py (download)
BackAndForthTimed.py (download)
BackAndForthWithMidStop.py (download)
BlockLister.py (download)
BlockOccupancyAnnouncer.py (download)
CanExample.py (download)
CbusReporterTimeoutControl.py (download)
ChangePanelFont.py (download)
ClearFileHistory.py (download)
ClearTooltips.py (download)
CmdMapper.py (download)
CmriBitsToBytes.py (download)
CmriEditPolling.py (download)
CmriExample.py (download)
CmriNodeMonitor.py (download)
CmriNodeTool.py (download)
CollectingReporterExample.py (download)
ComPortEnumeration.py (download)
CombineSensors.py (download)
CombineTurnouts.py (download)
ConsistExample.py (download)
ControlPanel.py (download)
CreateSectionsFromBlocks.py (download)
CsvToTurnouts.py (download)
DebounceSensor.py (download)
DecoderPro.py (download)
DisableLayoutEditorSensorIcon.py (download)
DisableOpsMode.py (download)
DispatcherSystem.py (download)
DontWarnJavaScript.py (download)
FileLogging.py (download)
FollowSE8c.py (download)
GetClipBoard.py (download)
GradeCrossing.py (download)
GrandReset.py (download)
HeljanCrane.py (download)
HoldSignalForSensor.py (download)
InitAllTurnoutsSensors.py (download)
InitLocoNetSensors.py (download)
InitTurnouts.py (download)
JButtonActionExample.py (download)
JButtonComplexExample.py (download)
JButtonExample.py (download)
JMenuBarExample.py (download)
JynstrumentMainFrame.py (download)
KeyListenerExample.py (download)
LifxLightControlExample.py (download)
ListenerExample.py (download)
LnBushbyForwarder.py (download)
LnFindTransponder.py (download)
LnFindTransponderField.py (download)
LnPowerButton.py (download)
LnSendTool.py (download)
LnSendToolwithNCE.py (download)
LocoNetSensorInit.py (download)
LocoNetSlotsReadCSV.py (download)
LocoSelectorDropBox.py (download)
LocoTest.py (download)
LocoTracker.py (download)
MainWindowToBack.py (download)
MakeAllWindowsVisible.py (download)
MakeOriginalDecoderPro.py (download)
ManageBlocks2.py (download)
MemorySiglet.py (download)
MenuItemDisable.py (download)
MeterToMemory.py (download)
NSelectorExample.py (download)
NumberInput.py (download)
OpsProgExample.py (download)
PM42forCTC.py (download)
PM4Announce.py (download)
PanelControlsContents.py (download)
PanelPro.py (download)
ParallelPortTest.py (download)
ParallelPortTurnouts.py (download)
PauseForInput.py (download)
PocketTesterExample.py (download)
PollGrapevine.py (download)
PowerOff.py (download)
PowerOn.py (download)
PowerSensor.py (download)
PreferencesExamples.py (download)
RailDriver.py (download)
RaspberryPiRestart.py (download)
RaspberryPiShutdown.py (download)
ReporterFontControl.py (download)
ReporterFormatter.py (download)
ReporterOperations.py (download)
Restart.py (download)
RestartOS.py (download)
RobotThrottle.py (download)
RobotThrottle2.py (download)
RobotThrottle3.py (download)
RocoCrane46800.py (download)
RocoCrane46902.py (download)
RosterCreateExample.py (download)
RosterCsvExport.py (download)
RosterLoop.py (download)
RosterMigrate.py (download)
RosterMigrate2.py (download)
RpsRaceTrack.py (download)
RunSystemCommandExample.py (download)
SIGM20receiver.py (download)
SampleLnStats.py (download)
SampleSound.py (download)
SampleWriteRosterAttribute.py (download)
SendAccPacket.py (download)
SendDCCppMessages.py (download)
SendReceiveLocoNetPeerXfrMessage.py (download)
Sensor-sound.py (download)
SensorFromBxp88ShortCircuit.py (download)
SensorFromBxpa1AutoRev.py (download)
SensorFromBxpa1ShortCircuit.py (download)
SensorGroupAutoItem.py (download)
SensorLog.py (download)
SensorToTurnout.py (download)
SerialPortRFID.py (download)
SerialPortTest.py (download)
SetAllTurnoutsClosed.py (download)
SetAllTurnoutsThrown.py (download)
SetAllTurnoutsToDirect.py (download)
SetAllUnknownSensorsToInactive.py (download)
SetBlockValues.py (download)
SetDefaultDelayedTurnoutDelay.py (download)
SetRouteExample.py (download)
SetSignalFlashRate.py (download)
SetTurnouts.py (download)
SetUnknownTurnoutsClosed.py (download)
ShutDownExample.py (download)
Shutdown.py (download)
ShutdownOS.py (download)
SigletExample.py (download)
SignalFollower.py (download)
SignalHeadFromSensors.py (download)
SignalMastFollower.py (download)
SoftConsist.py (download)
SpeedometerInitExample.py (download)
StartLoggingToFile.py (download)
StepperDriver.py (download)
TelnetTrain.py (download)
ThreadingExample.py (download)
ThrottleBridge.py (download)
ThrottleBridgeF0F8.py (download)
ThrottleFunctionForLight.py (download)
ThrottleFunctionForSensor.py (download)
ThrottleFunctionForTurnout.py (download)
ThrottleSound.py (download)
ThrottleSoundMultiAddress.py (download)
TimeTable.py (download)
TurnOffXmlValidation.py (download)
TurnoutReset.py (download)
TurnoutStatePersistence.py (download)
TurnoutsMasterSlave.py (download)
TurntableDCC.py (download)
TwoOutputTurnouts.py (download)
USBThrottle.py (download)
USBThrottleAsJynstrument.py (download)
WiThrottleList.py (download)
XBeeRemoteSerialPortTest.py (download)
XBeeSystemAutoConnectTest.py (download)
XBeeSystemConnectTest.py (download)
XNetListenerExample.py (download)
XlateCurve.py (download)
YetAnotherAutoTrain.py (download)
YetAnotherAutoTrain3.py (download)
Zimo_function_programmer.py (download)
Zimo_pseudo_programmer.py (download)
cabsignaller.py (download)
jmri_bindings.py (download)
jmri_defaults.py (download)
preferences.py (download)
xAPadapter.py (download)
xboxThrottle.py (download)

Other Files

COPYING (download)
Console.js (download)
HEADER.html (download)
README (download)
README.md (download)
jmri_bindings.py3 (download)
reset-web-app.js (download)
zeroconf-preferences.js (download)