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: Developing Jython Scripts
Although the 'any editor' is true, there is a caveat: python/jython is very picky indeed withMakes life a lot easier if you use an editor that changes tabs to the correct number of spaces when you save the file. One such editor is Ultraedit, but I'm sure many others have an option to do the same. |
Locked
Re: Developing Jython Scripts
Oh yes - Makefile indentation is a doddle compared to Python :-)
-- Mark Thornber MERG Member |
Locked
Re: Developing Jython Scripts
Mark, Dave, Although the 'any editor' is true, there is a caveat: python/jython is very picky indeed with regard to the differnce between tabs and spaces. Attempting to neatly lay out a function with an interesting mix of tabs and spaces is a fun way to hours of debugging. Whatever editor you choose will need to be able to clearly show you the difference between tabs and spaces. Wouter On Tue, 22 Oct 2019 at 21:05, Dave Sand <ds@...> wrote:
|
Thank you Dave. I did a quick extraction and it worked. I saw a MACOSX folder in amongst it - Guess this is for the MAC operating system .I left that out of the extraction.
I have to get ready for a 350 mile journey now but will try everything out when I return tomorrow night. Your support is greatly appreciated. Best wishes Peter |
Locked
Re: Developing Jython Scripts
Thank you for your replies.
I guess sensors and turnouts are run-time artefacts and, as such, are not visible when developing. I'd got as far as using 'Run Script...' and, eventually, bringing up the Thread Monitor. I use an IDE for development, especially with scripting languages, as they provide 'as you type' feedback (and Git support/reminders). I'd cloned JMRI because one of the advantages of FOSS is the ability to look at the source code behind the APIs one is using.? I've not used Java threading before and was interested in the techniques used. -- Mark Thornber MERG Member |
Locked
Re: MRC N Scale 1961 Sound Decoder Model Power Pacific Mikado Question
Success--FINALLY! Not being familiar with the MRC decoder--as I'm a Digitrax and TCS guy---I was unaware of having to Status Edit the decoder to 28 step to get the Speed Table to work. The ONLY way I was able to program the Speed Table, was to Status Edit the decoder to 28 Step. However, the manual that Ross was so good to find and send me, does say the decoder has "Programmable 14, 28, 128 speed steps. I was never able to accomplish the 128 speed step changes, but I'll have to settle for the 28 speed step. But I guess that's better than nothing!
Thank you to Ross and Wouter for the help! Doug Wagner Bakersfield, California |
Locked
Re: Future feature or update Request for ESU DCC 5 Decoders
Thanks Dave No worries . Won't know what to do if NEM's go out to F65
that seems a little overkill with a lot of button pushing. Bryce |
Locked
Re: Windows XP
John,
On 23 Oct 2019, at 11:02 AM, John Moniak <moniak@...> wrote:JMRI and DecoderPro are one and the same thing. You can run the latest JMRI 4.x.x version with Windows XP, but you need to manually install an earlier version of Java 1.8 on your PC (you can't use 1.7.0). The procedure is explained at: <> (JMRI V2.14.1 is very old and is pretty much useless for most modern DCC decoders.) Dave in Australia |
Locked
Re: Windows XP
Windows XP? we can install JAVA 1.8.0_152 as the last JAVA version that will install.?
With this you can run just about any version of JMRI.? JMRI 2.14.1 is very dated and will not have many of the newer decoders in it.? It is not worth your time and effort..? You can get? JAVA SE Runtime 1.8.0_152 (offline installer) from this link which is the older versions of JAVA. Disregard the "doom and gloom"? messages you get during install. https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html I used this setup for quite some time before upgrading to Win10 on this 32 bit IBM Thinkpad R60 laptop and a T60 running 2gb of ram and 2Ghz processor. I still use it with Win7. Here is a thread on similar subject : /g/jmriusers/message/155999 Other option is get newer, cheap laptop that might be 64 bit.? But the XP box will run JAVA/JMRI just fine. The good point is high memory count. The T60 even ran Win10 for a while without major issue.? With XP it was just faster. The DB150 can not read decoders, only write.? The PR4, when used in Standalone mode, can read/write to decoders. You had better target the current TEST (4.17.4) version of JMRI with the PR4 as previous versions had issues with the PR4 and PAGE mode programming that could cause decoder corruption.? Marc |
Locked
Re: Future feature or update Request for ESU DCC 5 Decoders
¿ªÔÆÌåÓýBryce, On 22 Oct 2019, at 7:31 PM, Bryce Healey <bheales@...> wrote: This is probably aimed at Dave Heap but others may be able to help. First off thanks for all the work you and others have done for these new decoders, very much appreciated. I was wondering if on the Function labels Tab we could get some more functions added. Auscision are currently using up to 31.Even though NCE can't go past 28 functions. One day will need to learn how to do it so I can contribute to this wonderful group. Thanks in advance and good modelling to all Bryce in Qld Aust I'm well aware of this as the LokSound 5 series goes out to F31 and there is a document indicating that the NEM is going out to F65! I've already made a few JMRI code changes to remove the fixed maxFnNum of 28 in at least some of the code. What is missing is the code to allow some definitions to include a new "maxFnNum" attribute to override the default of 28. <> <> Unfortunately we can't use the existing "numFns" attribute because it is designed to limit the number of rows displayed in the Function Map, which doesn't have a fixed relationship to "maxFnNum". <> But I don't have time at present to do any more with this. It involves further code and schema changes... Non-LokSound users may ask why Function Labels > 28 are needed in Roster Entries, given that most DCC systems can't activate them. The answer lies in the "Random Functions" pane in LokSound 5. This is a configurable pseudorandom "F key pusher" to activate sounds/effects. New ESU and OEM ?projects are using Fxx-F31 for sounds/effects that a user is unlikely to want to activate from a throttle. But these still need to be documented in the Function Labels pane. Dave in Australia |
Locked
Re: Mac Catalina and error connecting to WiThrottle
Fran, I am not able to re-create your problem. ?The security changes in Catalina are impacting certain functions within JMRI. Did you see any other messages before the fatal one? Dave Sand ----- Original message ----- From: Fran Giacoma <frangiacoma@...> Subject: Re: [jmriusers] Mac Catalina and error connecting to WiThrottle Date: Tuesday, October 22, 2019 6:51 PM Screen shot of error message posted to "Fran Giacoma" file in Photos section. Thanks. Fran G. |
Locked
Windows XP
John Moniak
Hello Moderator:
?
I am a new kid in the JMRI neighborhood. I've downloaded the manual(s) but have not yet downloaded any of the software pending the answers to the following questions.
?
First, about my computer setup: I have an old (slow) Dell laptop running Windows XP with lots of available memory. Your info says that Java 1.6 should be used with XP. I have Java 1.7.0. Your info also says that I should use JMRI version 2.14.1 and DecoderPro 3. I'm assuming that these last two are available on your website.
?
Now the questions: (1) Is Java 1.7.0 alright to use with your software? I hear that all Javas are backwards compatible.
(2) Can I use any updated versions of your software and the (latest) DecoderPro 4.x?
(3) If I must use JMRI 2.14.1, can I use it with DecoderPro 4.x?
(4) Given my old hardware, do you suggest that I just chuck it and buy a newer,cheap laptop computer?
?
I use a Digitrax outfit with the DB150. I have not yet bought the Digitrax PR4 Interface. I plan on using a DPDT toggle switch to temporarily isolate the layout from the "PR4 Programming" track. The bit rate is 16.3 KBits per second. Anything wrong with this scheme?
?
Thank you for your valuable time.
?
Warmest Regards,
?
John Moniak
Panama City Beach, FL |
Locked
Re: Mac Catalina and error connecting to WiThrottle
Screen shot of error message posted to "Fran Giacoma" file in Photos section. Thanks.
Fran G. |
Locked
Mac Catalina and error connecting to WiThrottle
Running DecoderPro V4.16 on a MacBook Pro (mid 2016 model) using Catalina 10.15 and Java 8 231. I can program locomotives with no problems. I tried the WiThrottle Lite V3.0.4 (using an iPhone 8 (running 13.1.3) and it would not connect. When I went to File and clicked on Preferences I got this message shown. Then DecoderPro quit. Any ideas how to fix so I can use the WiThrottle feature? Thanks. Fran Giacoma
|
Peter, That is a strange message. ?Maybe it was trying to do an automatic unzip. I would move the zip file to the Desktop and use Windows File Manager to unzip it. Dave Sand ----- Original message ----- From: "peter.s.drury via Groups.Io" <peter.s.drury@...> Subject: Re: [jmriusers] Setting up signals in JMRI to MERG CBUS Date: Tuesday, October 22, 2019 5:44 PM Hi Dave Just got home and tred to unzip your folder. Received this dialog /g/jmriusers/photo/106117/0?p=Created,,,20,2,0,0 as I tried to navigate to the folder I wanted to download the contents. Any suggestions please? Best wishes Peter |
Hi Dave
Just got home and tred to unzip your folder. Received this dialog /g/jmriusers/photo/106117/0?p=Created,,,20,2,0,0 as I tried to navigate to the folder I wanted to download the contents. Any suggestions please? Best wishes Peter |
Adam,
I'm not real fluent in BR signals, but this is my understanding: 1. The aspect tells everything about the speed and expected conditions (like what's next to expect). So warning the next signal is stop or next is clear, that would all be part of the aspect. In absence of any feathers, it may also indicate some details of the route. 2. The feathers give specifics about the route that the aspect is talking about. So which track at a station or exit route through an interlock. So does this match with your idea? Over here the idea is that the track points were set by others and therefore where the train will go did not directly concern the engineer. Yes to things like it is diverging or that that route is faster or slower would be part of what that aspect told. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.org www.syracusemodelrr.org |
Locked
Re: Dispatcher Problems
I have found workarounds for the above problems, and got dispatcher working with some trouble. Apologies to anyone who has tried to make sense of the above. I will try to summarise my successes and failures in due course when I am sure about them
Problem: I have been running a script which runs Dispatcher. (modified from a script passed to me indirectly from Jay Jansen) successfully. When I upgraded to JMRI 4.17.4 Test Releaseit broke, and I have reverted back to 4.16. There is a call to produce a dispatcher frame ? ? ?def getDispatcherFrame(self): ? ? ? return jmri.jmrit.dispatcher.DispatcherFrame.instance() in 4.17 there is no instance method. Is there a workaround? I tried calling jmri.jmrit.dispatcher.DispatcherFrame() but this produced peculiar results. |
Locked
Re: Operations = train to off layout storage and back
Or perhaps run two trains, one to storage, terminate, then generate a new train from storage to the C/I track??
Stefan -- Stefan Bartelski Home layout: The Blue Ridge Line, an HO representation of the L&N Etowah Old Line from Etowah to Elizabeth and the Marble Hill branch (Georgia Marble Railroad), set in 1986 (under construction)? Modular Layout: Shoofly module of the Country RRoads Modular group |
to navigate to use esc to dismiss