Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Locked
Re: Running a python script in JMRI
#scripting
Hi Tim, If you can convert this (one answer below the accepted one in the link? below) into a jython script you'd be home and dry, I think. Otherwise, you might consider creating it as a library 'as is' and calling it from jython. Or maybe someone involved in JMRI development could take it upon them to do this as an exported support routine so the standard scripting could get at it. Wouter On Tue, 24 Dec 2019 at 19:54, <tim_p1964@...> wrote: Hi all |
Locked
Re: Cannot operate turnouts from Layout
#layouteditor
I omitted the fact that the Tam Valley accessory booster is used to power a number of DCC Specialties Jack Wabbits? that power the Tortoise machines.? The Tam Valley booster has its own power supply.? The Tam Valley booster is connected to the booster bus and output from the Tam Valley booster is connected to a bus that is connected to all of the Jack Wabbits.
Bill R |
Locked
Re: Running a python script in JMRI
#scripting
Randall Wood
There is a club in Virginia that has Jython scripts send text to an external speech synthesizer. I¡¯ll see if I can find a version of the script they use. |
Locked
Re: JMRI and CMRI
¿ªÔÆÌåÓýJay:CMRINet IS Dr Chubb¡¯s protocol, you use it when use your SMINIs, SUSICs etc. ?Bruce and the late Chuck Catania took the spec Bruce published and extended it and then we, as the CMRI SIG, submitted it as NMRA Layout Control Spec S ?9-10. So the classic nodes, cpNode, the Arduino CMRI Library and a bunch of home brew systems all ¡±Speak¡± CMRINet. ?You can mix and match all of these nodes any way you like. (Of course each node needs a unique address).? JMRI uses the CMRINet protocol and it knows about SUSIC, SMINI and cpNodes. Check out Chuck¡¯s excellent configuration and management tools for CMRINet on JMRI under ¡°CMRI¡± on the panel pro control panel.? Seth Neumann On Dec 24, 2019, at 8:13 PM, Jay Beckham <james@...> wrote:
|
Locked
JMRI and CMRI
What does the CMRInet Protocol have to do with using JMRI with traditional CMRI hardware e.g. SMINI, SUSIC, and other CMRI hardware?? Is that only applical to CPNode and/or LCS?? The subject came up in JMRI Hardware Support - Chubb C/MRI writeup.
Thanks |
First, make sure that the JMRI connection is configured to ¡°SPROG Command Station¡±.
There might also be people on the SPROG list who can help with this: /g/sprog-dcc Bob On Dec 23, 2019, at 9:52 AM, Torgrim Gjelsvik via Groups.Io <torgrimg@...> wrote:-- Bob Jacobsen rgj1927@... |
¿ªÔÆÌåÓýTo me, it doesn¡¯t make any difference to the order that things throw other than the appearance of them falling into place one after another. ?If you are running at trains that close to the turnouts before you throw them, you need to slow things down. ? :-)Thomas Cain Indianapolis, IN atsf93@... See my?NEW website?and layout?at: ? Modeling the Eastern Illinois?Santa Fe from the Prototype
|
Ok Clay, ???. Congrats you did it, lol.
i haven¡¯t done routes in either Digitrax or JMRI so it¡¯s a learning curve. I looking to do them in JMRI that¡¯s why I¡¯m asking here. So far I¡¯ve got the East end of my staging yard hooked up and made my turnout tables. Is the a separate table for routes? Or does it matter the order of turnout entry? Wayne |
Locked
Re: Cannot operate turnouts from Layout
#layouteditor
Premis: I do not have a Tam Valley booster. Leo P On Tue, Dec 24, 2019, 4:25 PM WHurry <Wttr@...> wrote:
|
Locked
Cannot operate turnouts from Layout
#layouteditor
System consists of Power House Pro-R, PB5, and a stand-alone Loconet. The PB5 booster load was reduced as expected. ?I can operate the turnouts via the throttle as well as the local push buttons. ?The changes made to the turnouts via these two methods (throttle and local push buttons) were properly indicated the layout panel.? As a loco travelled on the layout, the block occupancy was being properly indicated. However, I can no longer operate the turnouts by clicking on the turnout icons. |
Locked
Re: Running a python script in JMRI
#scripting
Tim,
I see where you are now.....? This is a good undertaking..... Inobu |
Locked
Re: Running a python script in JMRI
#scripting
Hi all
this is what Iv'e ended up at: # Simple script to setup audio objects import time import jmri from javax.vecmath import Vector3f fileorder=[5, 4, 1, 3, 7, 6, 0, 0, 0, 0] filetime = {5: 2.6, 4: 0.5, 1: 0.6, 3: 0.8, 2: 1.4, 6: 1.5, 7:1.5} for plloop in range(0, len(fileorder)): ??? filechk = fileorder[plloop] ??? if filechk != 0: ??????? # Create the first Audio Source object ??????? filepointer = "IAS" + str(fileorder[plloop]) ??????? source1 = audio.provideAudio(filepointer) ? ??????? # Assign Audio Buffer to this Audio Source ??????? filepointer = "IAB" + str(fileorder[plloop]) ??????? source1.setAssignedBuffer(filepointer) ??????? ??????? # Start playing the first Audio Source ??????? source1.play() ??????? delay = filetime[fileorder[plloop]] ??? print(delay) ??????? time.sleep(delay) it requires the manual loading of audio files into the JMRI audio buffers, when the script is then run it reads the file order list which is easily set with software sets up the audio source and buffers and then starts playing the files. the delay between one file and the next is set in the dictionary entry. Again these values have been manually arrived at. So in theory once all the sound files are loaded in the buffers and timings determined for the dictionary it will work. comments appreciated as to any methods of loading the files from the sound directory automatically and determining their lengths would be helpful? Tim |
Locked
Need help with script update
#scripting
Hi all,
There appears to be a script change to the "ReporterFormatter.py" script that I a wondering if it affects the "ReporterOperations.py" script. I have a custom script based on the ReporterOperations one and it is now throwing an error: 2019-12-24 11:08:13,549 jython.RunJythonScript??????????????? INFO? - No file selected [AWT-EventQueue-0] 2019-12-24 11:08:36,646 jmrix.AbstractMRTrafficController???? WARN? - notify: During reply dispatch to jmri.jmrix.rfid.merg.concentrator.ConcentratorReporterManager@54c62d71 [AWT-EventQueue-0] Traceback (most recent call last): ? File "<script>", line 34, in propertyChange ? File "<script>", line 83, in format AttributeError: 'unicode' object has no attribute 'toString' ??? at org.python.core.Py.AttributeError(Py.java:207) ??? at org.python.core.PyObject.noAttributeError(PyObject.java:1032) ??? at org.python.core.PyObject.__getattr__(PyObject.java:1027) ??? at org.python.pycode._pyx4.format$5(<script>:109) ??? at org.python.pycode._pyx4.call_function(<script>) ??? at org.python.core.PyTableCode.call(PyTableCode.java:171) ??? at org.python.core.PyBaseCode.call(PyBaseCode.java:154) ??? at org.python.core.PyFunction.__call__(PyFunction.java:423) ??? at org.python.core.PyMethod.__call__(PyMethod.java:141) ??? at org.python.pycode._pyx4.propertyChange$2(<script>:44) ??? at org.python.pycode._pyx4.call_function(<script>) ??? at org.python.core.PyTableCode.call(PyTableCode.java:171) ??? at org.python.core.PyBaseCode.call(PyBaseCode.java:308) ??? at org.python.core.PyBaseCode.call(PyBaseCode.java:199) ??? at org.python.core.PyFunction.__call__(PyFunction.java:482) ??? at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237) ??? at org.python.core.PyMethod.__call__(PyMethod.java:228) ??? at org.python.core.PyMethod.__call__(PyMethod.java:218) ??? at org.python.core.PyMethod.__call__(PyMethod.java:213) ??? at org.python.core.PyObject._jcallexc(PyObject.java:3644) ??? at org.python.core.PyObject._jcall(PyObject.java:3676) ??? at org.python.proxies.__builtin__$ReporterOperations$2.propertyChange(Unknown Source) ??? at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341) ??? at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333) ??? at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266) ??? at jmri.implementation.AbstractNamedBean.firePropertyChange(AbstractNamedBean.java:289) ??? at jmri.implementation.AbstractReporter.setReport(AbstractReporter.java:61) ??? at jmri.implementation.AbstractIdTagReporter.notify(AbstractIdTagReporter.java:54) ??? at jmri.jmrix.rfid.TimeoutRfidReporter.notify(TimeoutRfidReporter.java:59) ??? at jmri.jmrix.rfid.merg.concentrator.ConcentratorReporterManager.processReply(ConcentratorReporterManager.java:79) ??? at jmri.jmrix.rfid.merg.concentrator.ConcentratorReporterManager.reply(ConcentratorReporterManager.java:64) ??? at jmri.jmrix.rfid.RfidTrafficController.forwardReply(RfidTrafficController.java:93) ??? at jmri.jmrix.AbstractMRTrafficController.notifyReply(AbstractMRTrafficController.java:284) ??? at jmri.jmrix.AbstractMRTrafficController$RcvNotifier.run(AbstractMRTrafficController.java:1226) ??? at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303) ??? at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770) ??? at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) ??? at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) ??? at java.base/java.security.AccessController.doPrivileged(Native Method) ??? at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) ??? at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740) ??? at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ??? at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) ??? at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) ??? at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) ??? at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) ??? at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) I tried copying over the different code in the ReporterFormatter but I still get the same error. Regards, Allen |
Locked
Re: Running a python script in JMRI
#scripting
Hi Bob
the idea is that the sound changes for each different type of train, option one is to get the software to do it on the fly so to speak. Option 2 is to have several audio files for each engine train. as there are loads of combinations you can appreciate the storage involved. hence the reason for trying to get software to do it on the fly. Tim |
Locked
Re: Running a python script in JMRI
#scripting
Hi Matt
this is what I have so far. ?Simple script to setup audio objects import time import jmri from javax.vecmath import Vector3f fileorder = [5, 4, 1, 3, 2, 6, 0, 0, 0, 0] for plloop in range(0, len(fileorder)): ??? filechk = fileorder[plloop] ??? if filechk != 0: ??????? # Create the first Audio Source object ??????? filepointer = "IAS" + str(fileorder[plloop]) ??????? source1 = audio.provideAudio(filepointer) ? ??????? # Assign Audio Buffer to this Audio Source ??????? filepointer = "IAB" + str(fileorder[plloop]) ??????? source1.setAssignedBuffer(filepointer) ??????? ??????? # Start playing the first Audio Source ??????? source1.play() ??????? #state = source1.getState() ??? #while state == True : ?????????? # print("state") ??????? time.sleep(1.5) What I now need is a way to find out when i file stops so I can play the next ? Tim |
Locked
Re: id tags not found error though they seem to be there
¿ªÔÆÌåÓýOn Dec 23, 2019, at 5:33 AM, Randall Wood via Groups.Io <rhwood@...> wrote:
Hmmm... I had to go back and look... the first Route implementation was introduced on June 11,2004. ?The first reporter was July 18, 2004, so yes, routes predate reporters, but only by 5 weeks.... which really means that they came about at the same time, in the grand scheme of things. ?( our release schedule wasn¡¯t the same as it is now, it would take some more digging to verify if they were introduced in the same release version or in two different, but successive, ones... ) Paul |
Locked
Re: id tags not found error though they seem to be there
On Dec 23, 2019, at 10:52 AM, ahouse3761 <trainmail1@...> wrote:Ok, I will look at this when I get a chance. Pau |
Locked
Re: Running a python script in JMRI
#scripting
Inobu,
It helped me, thanks. -- Mike Heintzman Modeling the P&PU since 1953 |
Wayne,
I can't tell from your post if you use JMRI or not. If you use JMRI, setting up routes is much much easier than if you have to use the Digitrax throttle to do it. The DS64 manual has a copy of a worksheet in it that is helpful is mapping the routes out. The DS64 will allow 8 routes, but there is?something you need to be aware of if you aren't already. Route number 1, also know as the top route, can cause issues if you don't know how it works. The 1st route turnout number becomes the route number of each route. If turnout 50 is the first turnout in the route 1 position?in the DS64, then the route number is?50. This is where a problem can occur. IF EACH TURNOUT NUMBER IN?THE ROUTE 1 POSITION? OF ALL THE DS64'S IS DIFFERENT, THEN YOU SHOULD NOT HAVE A PROBLEM. BUT, IF THE TURNOUT NUMBER OF THE TURNOUT IN THE TOP, OR 1ST ROUTE POSITION IS THE SAME ON MORE THAN ONE DS64, THIS WILL CAUSE A PROBLEM. If turnout 50 is the top or 1st turnout on more than one route, then each time a route is selected that 50 is the top turnout, then EVERY route that has 50 in the top position will try and throw. From my experience one of two things will happen, multiple routes will throw or the Loconet will be flooded with commands. The simplest way to keep this from happening is to use a DIFFERENT virtual turnout number in the top position of every route. The downside to this is that now you only have 7 routes that you can use rather than 8. I hope I haven't confused you with this, but it cost me a lot of time before I figured it out. Clay Smith |
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 recommend that you first update to JMRI 4.12 and make sure that's running OK before updating to this release. There have been a number of changes in serial port support, panel file format and configuration options since those earlier releases, and moving to the stable JMRI 4.12 release is a good way to work through any possible problems. <> (In the future, we¡¯ll probably saying that about this one too) If you use JMRI on Linux or Mac and are updating from JMRI 4.7.3 or earlier, there¡¯s a necessary migration step. (Not needed on Windows) Please see the JMRI 4.12 release note for details: <> For more information on the issues, new features and bug fixes in 4.18 please see the release note: <> Note that JMRI is made available under the GNU General Public License. For more information, please see our copyright and licensing page. <> The download links, along with lots of other information which we hope you'll read, can be found on the release note page: <> Bob -- Bob Jacobsen rgj1927@... |