Locked
JMRI 4.18 is available for download
#4-18
Production version 4.18 of JMRI/DecoderPro is available for download. This is a new production release containing changes since last July. If you are currently using JMRI 4.9.6 or earlier, we strongly
By
Bob Jacobsen
·
#167232
·
|
Locked
Re: Running a python script in JMRI
#scripting
Could you do the combining separately, in an audio editor, to create a new wav file outside JMRI? Then, at the appropriate time, just select that file and play it. Bob -- Bob Jacobsen
By
Bob Jacobsen
·
#167231
·
|
Locked
Re: Running a python script in JMRI
#scripting
Hi Matt was just contemplating that way around the issue, there would i say be around a max of 8 files all very small in size wav files, I can add all the files to the JMRI audio buffers and play them
By
tim_p1964@...
·
#167230
·
|
Locked
Display throttle panel/frame from script
Hi, having issued a self.getThrottle is there a way to cause the throttle to be visible from a script. Thanks Jim.
By
James Anderson
·
#167229
·
|
Locked
Re: Running a python script in JMRI
#scripting
Tim, I'll need to take a closer look, but you might be able to achieve what you're after by using the queueAudioBuffer method available within the Audio framework in JMRI. In essence, you would load
By
Matthew Harris
·
#167228
·
|
Locked
Re: Running a python script in JMRI
#scripting
Some notes about scripting in JMRI: - JMRI *does not* support Python C, the Python variant that ships with most Linux distributions - JMRI supports Jython, a Python variant that runs inside a Java
By
Randall Wood <rhwood@...>
·
#167227
·
|
Locked
Re: Running a python script in JMRI
#scripting
Hi The issue is not the playing of the Wav file from JMRI when a sensor is triggered, this I can do. the issue is that of having several wav files that are selected and combined depending on the value
By
tim_p1964@...
·
#167226
·
|
Locked
Re: Running a python script in JMRI
#scripting
TIm, Create SensndExample_1.py file from the test code below the ** , save it in your directory C:/Users/tim_p/sounds/Peter/ In Panel Pro, Panel, select Run Script - go to the Peter directory and
By
Inobu One
·
#167225
·
|
Locked
Re: Decoder Pro not seeing Power Cab
#nce
#powercab
Andrew, No need to reinstall and it's almost certain that port will stay at cu.SLAB_USBtoUART, so just give it a try. But system console is your friend... If you get the same symptoms, you've ruled
By
Dave Heap
·
#167224
·
|
Locked
Re: Running a python script in JMRI
#scripting
Tim, It's funny I had the same thing in mind. I have been playing around with this today between tasks. JMRI uses jmri.jmrit.Sound to play the wav file. You are trying to pull up the wave module and
By
Inobu One
·
#167223
·
|
Locked
Re: Running a python script in JMRI
#scripting
Hi guys this is the relevant section of the JMRI session window that shows whats wrong i think. javax.script.ScriptException: ImportError: No module named wave in <script> at line number 3 at
By
tim_p1964@...
·
#167222
·
|
Locked
Re: Running a python script in JMRI
#scripting
Hi Guys Thanks for the replies. i have previously tried adding import JMRI and import java, makes no difference. the premise for the script is that i want to be able to combine various short wave
By
tim_p1964@...
·
#167221
·
|
Locked
Re: Decoder Pro not seeing Power Cab
#nce
#powercab
By ¡°go¡±, of course I mean, ¡°run some more tests¡±.
By
andrew.woolman
·
#167220
·
|
Locked
Re: Decoder Pro not seeing Power Cab
#nce
#powercab
Well, new USB interface arrived today. ?Given that everything is already installed and working on the computer, should I just be able to swap it in and go, or do I need to re-install driver? thanks,
By
andrew.woolman
·
#167219
·
|
Locked
Re: Running a python script in JMRI
#scripting
LOL, Maybe I should read the thread completely to understand the objective. At least I got script tested an done. lol. Inobu
By
Inobu One
·
#167218
·
|
Locked
Re: Running a python script in JMRI
#scripting
Tim, Others on this list will have to provide help concerning your wave questions. A few general remarks concerning Jython and JMRI might help. 1 Insert two lines at the head of your script: ```
By
Cliff Anderson
·
#167217
·
|
Locked
Re: Running a python script in JMRI
#scripting
I ran into version problems, for why I used was some import files for version 3, whereas JMRI uses version 2 of python.
By
Kirk Ervin
·
#167216
·
|
Locked
Re: Running a python script in JMRI
#scripting
Tim, Your question prompted me to do something I been meaning to explore so here is what I found real quick. Sensor-sound.py is already in JMRI. The Python scripts are in JMRI/jython The sound files
By
Inobu One
·
#167215
·
|
Locked
Running a python script in JMRI
#scripting
Hi all I am trying to run the following script in JMRI' import wave infiles = ["General01.wav", "General03.wav"] outfile = "sounds.wav" data= [] path = "C:/Users/tim_p/sounds/Peter/" for infile in
By
tim_p1964@...
·
#167214
·
|
Locked
Re: WiThrottle Runaways
#withrottleserver
Thanks James. Very helpful and I appreciate your input. Reg
By
Reg
·
#167213
·
|