Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Jmriusers
- Messages
Search
Locked
Re: Virtual Sound Decoder - Clicks on looped sound files
Am 06.09.2019 um 00:35 schrieb conrad:
Of course, once i stumbled on Zimo I dropped my work on clicks, pops, and funny volumes and went right into trying to create a vsd file from their NW2 zip file. Conrad, Right, that's obviously a new topic and I recommend to start a new one. There you can reference to the your last posting with /g/jmriusers/message/163579 (if you like). I will then answer there. Thanks in advance. Regards, Klaus |
Locked
Re: SSL heads fail to set properly after start .... JMRI 4.17.3
Roger,
Easiest is to keep the file in your 'user' section and reference it there. No need to do anything else with it, -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.org www.syracusemodelrr.org |
Locked
Re: Determine Digitrax UR92 firmware with JMRI and Locobuffer USB
Ken, The DigiIPLII software is a windows exe file that runs independent of JMRI. Basically plug your locobuffer-usb into your command station, plug the UR92 into the command station, run the software on your computer and you're off and running. It would be better to read the documentation I gave you the link to so you understand the finer points of the upgrade. Otherwise, it may cause problems. On Thu, Sep 5, 2019 at 3:36 PM jackvaradi via Groups.Io <jackvaradi=[email protected]> wrote:
--
John Griffin? ? ? ? ? ? ? ? ? _______________________________ If today was your last day... |
Locked
Re: Determine Digitrax UR92 firmware with JMRI and Locobuffer USB
Yes, I have always used my Locobuffer with the Digitrax software
Tom in Texas |
Locked
Re: Scripting question - how to check if sensor or turnout name is valid
Michael,
toggle quoted message
Show quoted text
Instead of provideSensor() use getSensor() and check for None chkSensor = sensors.getSensor(¡®BadName¡¯) If chkSensor is None: ? ? print ¡®it does not exist¡¯ The provideXXX() methods return the item if the name matches a user name or a system name. ?If neither exists, it tries to create a new item using the name as a system name and returns it. ?If the name is not a valid system name or cannot be made to look like one, the name exception occurs. Dave Sand On Sep 5, 2019, at 6:55 PM, Michael Piazza via Groups.Io <mpiazza2007@...> wrote: |
Locked
Re: JMRI Decoder Pro
Al,
On 6 Sep 2019, at 8:49 AM, Al <babinskya@...> wrote:The SPROG hardware design is such that it has two possible modes of operation: 1) A power-limited Programmer Mode that does Service Mode and also allows 1 loco to be test-run. 2) A full-power Command Station Mode that allows many locos to run and also Ops Mode programming. The two are selected between at startup time (as configured in Prefernces->Connections) and both can't be active at the same time. Older JMRI versions incorrectly showed both active at the same time. In order to use both modes, you need to create two Config Profiles in JMRI (set up to share the same User Files), one for each mode, and enable the checkbox to show the choice at startup. (Note that this is not the same as defining multiple connections in one single JMRI profile - you can't have two connections to the same device simultaneously, nor the same device running in two different modes simultaneously.) You may need to ask for help on setting up multiple profiles. Dave in Australia |
Locked
Re: Scripting question - how to check if sensor or turnout name is valid
By chance is there an "ifExist" function available and a table of existing sensor/turnout names that it could test? On Thu, Sep 5, 2019, 14:19 Pete Brownlow <merg@...> wrote: I've put together a script that takes a sensor or turnout name in from an external program and operates the given sensor or turnout. |
Locked
Re: SSL heads fail to set properly after start .... JMRI 4.17.3
Peter,
? ?The reason I changed scripts was for the RPI-JMRI box.? It choked on my first script I was using to initialize my layout.? Did not work right with Raspbian. Roger |
Locked
Re: SSL heads fail to set properly after start .... JMRI 4.17.3
Roger,
The scripts included with JMRI are "sample scripts" not official scripts. There is nothing wrong with using scripts from elsewhere or you write yourself. -- Peter Ulvestad JMRI Users Group Moderator - ( ) Tam Valley Group Moderator - ( ) Sprog-DCC Group Moderator - ( ) Edmonton Model Railroad Association - |
Locked
Re: OpenLCB Fast Clock
Ken,
Thanks for you reply.? I upgraded to 4.17.3 but I still do not see any CAN activity or any activity in the OLCB Monitor?from JMRI when stopping or starting the clock or on a minute change. Regards Nom |
Locked
Re: SSL heads fail to set properly after start .... JMRI 4.17.3
Bob,
? ? Found the problem. ? ? Since I had moved from a bootleg script that clears all UNKNOWN states of sensors and turnouts to the official scripts that is when the problem came up.? Seems the the script "SetAllTurnoutsToClosed.py" closes all the turnouts, even the signalheads for the SE8Cs.? ?After changing the 'IF (turnout) is not closed'?to 'IF (turnout) is UNKNOWN' To set the turnout to closed cured the problem.? ? ? ?Now I have to remember to keep this altered script in my USER file section each time I do a update to new version. Roger |
Locked
JMRI Decoder Pro
Is there a way to have the service and ops programmer active in Decoder Pro??
I'm using a SPROG II version 3 with a Windows 10 laptop for programming and the JMRI version 14.7.3 which is the test version I believe. On the programming screen the service mode is green and the ops mode is red. At the club the Windows 10 tablet with the SPROG shows both programming modes in green. I can't recall what the JMRI version is but it is older then mine. I have a speedometer set to run locomotives which I can use to do ops mode programming. Any help is appreciated and if more info is needed I will try to get the information. To let you know that I'm not familiar which programming but will follow instructions. Thanks for any help, Al Babinsky |
Locked
Re: Virtual Sound Decoder - Clicks on looped sound files
On Thu, Sep 5, 2019 at 10:03 AM, Klaus Killinger wrote:
That is indeed a very good source. I look at the ZIMO operation instructions and the Sound Database frequently.Klaus, Yes, I did read the Zimo page you referenced but I did not see a explicit? copyright disclaimer, something akin to the open source licence with JMRI, etc.? All of my work is for my own private use.? I just don't know if I can share it (for free).? It's my hobby, not a business (too old anyway). Of course, once i stumbled on Zimo I dropped my work on clicks, pops, and funny volumes and went right into trying to create a vsd file from their NW2 zip file.? So far no success.? I used an original NW2 vsd config file as a template and moved Zimo's wav files from their zip file to the vsd "sounds" sub-folder.? I also tested each wav file for format and identity as they are in german - kompressor vs. compressor:).? ?The result so far is failure.? In the "configure new VSDecoder" window I can "load VSD file" but nothing appears in the "select a profile" drop-down window.? This is where I'm at. I am not sure what you mean by the zip files being easy to adapt to config.xml format.? I only see the wav files and a zpr folder which, unlike vsd, I cannot rename as zip and extract.? In addition, what do you mean by the wav files being bound to Zimo?? Is that why I am stuck on the NW2 project? Conrad PS I'm up to sharing a config file.? ? |
Locked
Re: Scripting question - how to check if sensor or turnout name is valid
You can catch and handle exceptions in Jython scripts:
Bob On Sep 5, 2019, at 2:18 PM, Pete Brownlow <merg@...> wrote:-- Bob Jacobsen rgj1927@... |
Locked
Re: Determine Digitrax UR92 firmware with JMRI and Locobuffer USB
Hi John, Thanks for the link. I gather that by selecting the right COM port and baud rate for the Locobuffer I can use the Digitrax S/W to determine rev. levels in the UR-92 without the need of a PR3. Also gather I cannot do this with JMRI.? Thanks, Jack Varadi |
Locked
Re: Scripting question - how to check if sensor or turnout name is valid
Pete,
toggle quoted message
Show quoted text
This should catch the error: try: ? ? sensors.provideSensor('somename') except jmri.NamedBean.BadSystemNameException: ? ? print 'invalid name' If you don¡¯t care about the exception type, you can use except: Dave Sand On Sep 5, 2019, at 4:18 PM, Pete Brownlow <merg@...> wrote: |
Locked
Scripting question - how to check if sensor or turnout name is valid
I've put together a script that takes a sensor or turnout name in from an external program and operates the given sensor or turnout.
This works fine when the sensor or turnout name is valid - I use provideSensor or ProvideTurnout on the passed name, then set the active state. However, if the external program passes in an invalid sensor or turnout name, then my script crashes out with an invalid name exception when trying to do: mysensor = sensors.provideSensor( passedSensorName ) or myturnout = turnotus.provideSensor( passedTurnoutName ) Does anyone have a code snippet to show me how to check if passedSensorName or passedTurnoutName is a valid user name in the sensor or turnout table respectively, before I try the call to provide? (I'm assuming that Jython still has no way of error trapping and handling in the script) Thanks, Pete |
Locked
Re: Determine Digitrax UR92 firmware with JMRI and Locobuffer USB
If you use the DigiIPL v2.2 software provided by Digitrax it will tell you the firmware version and the RF version of your UR92 (remember there are two updates you may have to do). Go to the Digitrax website and look under the downloads link. I have provided a detailed explanation of how to do this at?
. This is the Hostlers web site of Ogden Utah. It discusses both the DT402 series and the UR92 firmware and RF upgrades with the LocoBuffer-USB which is what I use. On Thu, Sep 5, 2019 at 3:02 PM jackvaradi via Groups.Io <jackvaradi=[email protected]> wrote: Can I determine the UR-92 firmware level in the device with JMRI and a Locobuffer USB interface. I see where I can upgrade the firmware but not read the current level. --
John Griffin? ? ? ? ? ? ? ? ? _______________________________ If today was your last day... |
Locked
Re: A bit stuck on inverting sensor states/values
Chapeau, gentlemen!
Works. And in the best possible, user controlled way. Invert the sensor you want to be inverted, leave the rest as is. Code snippet, as simple as Ken wrote: s = sensors.getByUserName( mesg )
? ? ? ? if s is None :
? ? ? ? ? ? ? ? print mesg, " Not Available"
? ? ? ? ? ? ? ? return 1
? ? ? ? if sensor_state == 0x80 :
? ? ? ? ? ? ? ? if s.getInverted() :
? ? ? ? ? ? ? ? ? ? s.setKnownState(INACTIVE)
? ? ? ? ? ? ? ? else :
? ? ? ? ? ? ? ? ? ? s.setKnownState(ACTIVE)
? ? ? ? if sensor_state == 0 :
? ? ? ? ? ? ? ? if s.getInverted() :
? ? ? ? ? ? ? ? ? ? s.setKnownState(ACTIVE)
? ? ? ? ? ? ? ? else :
? ? ? ? ? ? ? ? ? ? s.setKnownState(INACTIVE) Great support, by the way. Groet! Bart |
Locked
Determine Digitrax UR92 firmware with JMRI and Locobuffer USB
Can I determine the UR-92 firmware level in the device with JMRI and a Locobuffer USB interface. I see where I can upgrade the firmware but not read the current level.
Thanks in advance for any input. Jack Varadi |
to navigate to use esc to dismiss