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: Adding new "info" field to the Cars and Loco tab in Oospore
¿ªÔÆÌåÓýThat level of modification to the script is trivial. Go to Help->Locations->Open Scripts Location.Make a copy of the file called??and put it somewhere you can easily find it (Maybe your User Files Location). Open your copy of??in a text editor. You'll find a section like: # Write the header # Make sure that the headers match the detail!! def writeHeader(csvFile): ? ? # Write the header line ? ? # Entries from the Basic roster entry ? ? csvFile.write("RosterID") ? ? csvFile.write("RoadName") ? ? csvFile.write("RoadNumber") ? ? csvFile.write("Manufacturer") ? ? csvFile.write("Owner") ? ? csvFile.write("Model") ? ? csvFile.write("Address") ? ? csvFile.write("Is Long?") ? ? csvFile.write("Speed Limit") ? ? csvFile.write("Comment") ? ? csvFile.write("Decoder Family") ? ? csvFile.write("Decoder Model") ? ? csvFile.write("Decoder Comment") (Then a bit further down) ? ? ? ? csvFile.write(entry.getComment()) ? ? ? ? csvFile.write(entry.getDecoderFamily()) ? ? ? ? csvFile.write(entry.getDecoderModel()) ? ? ? ? csvFile.write(entry.getDecoderComment()) All you need to do is add extra line(s) to each of those two spots, modified with your custom field name(s). A simple copy and paste of the last line in the list is best because Jython/Python is very fussy about spaces and indentation. It should look something like this: ? ?csvFile.write("Decoder Model") ? ? csvFile.write("Decoder Comment") ? ? csvFile.write("MyField") (Then a bit further down) ? ? ? ? csvFile.write(entry.getDecoderModel()) ? ? ? ? csvFile.write(entry.getDecoderComment()) ? ? ? ? csvFile.write(entry.getAttribute("MyField")) - Save the modified file. - In DecoderPro Actions->Run Script... Pick your modified file. - Wait a while (depending how big your roster is) and it should eventually ask where to store the "roster.csv" file it has created. - If it doesn't work, upload your modified script to the "Problems Being Worked On" folder in the Files area of this list and someone will debug it for you. Dave --? Dave in Australia On 8 Nov 2018, at 12:15 PM, Paul Davidson <pdavidson@...> wrote:
Thanks but that is getting in too deep for me. I am not familiar with scripts nor how to implement your suggestion. Perhaps some future JMRI upgrade will address my request to expand the cars file. |
Locked
Re: Dispatcher - SML - auto-allocation problem
Hi Mitchell
toggle quoted message
Show quoted text
As far as I can tell the only thing that I can see is that there is a stopping sensor that never gets fired for 50037 so it rolls on into the crossover. Try removing the stopping sensors from the sections. I tried emailing you last week but it was returned as undeliverable. Steve G. On November 5, 2018 8:28:00 AM EST, "Mitchell via Groups.Io" <mitchell.scott93@...> wrote: Hi Steve, --
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
Locked
Re: Adding new "info" field to the Cars and Loco tab in Oospore
Dave,
Thanks but that is getting in too deep for me. I am not familiar with scripts nor how to implement your suggestion. Perhaps some future JMRI upgrade will address my request to expand the cars file. Paul D |
Locked
Re: System Console not showing block "triggers"?
Bob Jacobsen
SensorLog.py - does EXACTLY what I was looking for! Thank you very much!! Wain |
Locked
Re: System Console not showing block "triggers"?
Dave -?
That is the exact message I was referring to.? I understand what Steve Young is saying about the massive amount of text being dumped into the system console should I turn that feature on, so I am going to look into the suggestion by?Bob Jacobsen ( Thanks all who replied!? It's been a while since I've put in new track with sensors, especially when no one documented which sensor went with which section of track :P Regards,' Wain |
Locked
Re: Adding new "info" field to the Cars and Loco tab in Oospore
¿ªÔÆÌåÓýMake a custom version of??(distributed in the Scripts Location), adding your own custom fields. It will create a CSV file for import into Excel. --? Dave in Australia I could not get it to export to a Excel sheet. |
Locked
Re: Adding new "info" field to the Cars and Loco tab in Oospore
Dave,
I got that to work and could use a space in the data field but not in the column heading. Once a new column was created, I could insert new data for any roster entry directly in the new column. Overall, it is a bit clunky and has very limited flexibility. I could not get it to export to a Excel sheet. The theory is great....any user could add any columns they wanted without messing up any JMRI activity. However, it would need to be a bit more user friendly and have a way to export and/or print out the file. Would need some menu options that were more straight forward about adding columns. Paul D |
Locked
Re: Adding new "info" field to the Cars and Loco tab in Oospore
Select any roster entry. Using the "Labels & Media" button* you will find a Roster Media pane.
toggle quoted message
Show quoted text
In the Custom Roster Attributes text window, select the "..." Name in the last line. Type in your new attribute name and a Value. "Save to Roster" and quit JMRI. Next time you open JMRI, there will be a new Column you can choose to display or not (right-click on the headings row). * Preferences->Roster->Programmer->Format: Advanced will make the Roster Media pane visible every time you open a roster entry. I can't find a way to embed a space in the Name field (two word heading). -- Dave in Australia On 8 Nov 2018, at 8:33 AM, Paul Davidson <pdavidson@...> wrote: |
Locked
Re: Adding new "info" field to the Cars and Loco tab in Oospore
Bob,
Sounds like it might work. I am running version 4.13.4 but I do not find any menu option to add columns under DecoderPro.? How is it done? I would like to try that out and experiment with it. Paul D |
Locked
Re: Injecting a delay between turnout operations
I have had this problem with some Digikeijs decoders that cannot handle having several commands sent at full speed.
In the turnout table you can set how many times a command is given and the interval between them with the Edit Auto setting at the far right.? Click on edit auto set a time and number of tries, give it a name and click ok. For each different time you need a different name. Once set this name can be selected for other decoders in the drop down to the left of Edit Auto. Note that must NOT be set to OFF when setting a time in Auto Edit, there are some default times already set that can be used. For each decoder output I've set a different delay, with 50ms between them, i.e 100ms for the 1st, 150ms for the 2nd, 200ms for the 3rd and two tries. This works 99% of the time for me, but experiment if it doesn't for you. Although thinking about it now, times which do not overlap would be better as the second 100ms will be at the same time as the first 200ms etc. and might explain the odd missed command. Note each decoder can have the same delays as the problem is in the decoder. If the turnouts are controlled through Logix you can set a delay before an output signal is set, but that has to be done for every Logix for each output command, where as the turnout table needs doing once per output. Signals changing before the route being set need interlocking between turnouts and signals. If you have feedback from the turnouts I use Logix to wait until the turnout is in position before changing signals.? With no feedback I delay the signals until the route selection has happened and then put a delay in the Logix output commands for the signals. This works well on our modular layout where both methods are used. Mike Ruby |
Locked
Re: System Console not showing block "triggers"?
Wain,
toggle quoted message
Show quoted text
Are you referring to the "Sensor ACTIVE came out of nowhere, no neighbors active for block" message? If so, that appears to have been changed to a ¡°debug¡± message with PR #4928. The method that Steve Young posted will make it visible. Dave Sand On Nov 7, 2018, at 2:05 PM, Wain Schroeder <niaw1@...> wrote: |
Locked
Re: System Console not showing block "triggers"?
Wain,
It only would show when a block went active and no other block connecting to it were already active. This would point to errors when there were gaps in the blocks. Last I looked, it was still doing this. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: BD20 block detection
On Wed, Nov 7, 2018 at 12:12 PM, Dave Heap wrote:
That was it, thanks! |
Locked
Re: System Console not showing block "triggers"?
Hi Wain,
In your main JMRI program folder find default.lcf Open this file with a text editor and at the bottom add? log4j.category.jmri.Block=DEBUG Your log files will grow at a massive rate so comment out when you're done, if this was active by default it'd be difficult to see the wood from the trees in the logs, Steve. |
Locked
Re: Injecting a delay between turnout operations
If you are using Logix, the actions have an option for delays. I think
routes also have a delay option, but I've not use those for a while. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: BD20 block detection
Dave,
Ah...... I never caught that the jumpers themselves may not be there any longer. I've grown up with them around and always parking them on the pins (out of position) so they can always be changed later. -Ken Cameron, Member JMRI Dev Team www.jmri.org www.fingerlakeslivesteamers.org www.cnymod.com www.syracusemodelrr.org |
Locked
Re: System Console not showing block "triggers"?
I don¡¯t think JMRI ever did this automatically. There¡¯s a script that does it:
Perhaps you used to have that starting as part of your preferences? Bob On Nov 7, 2018, at 12:05 PM, Wain Schroeder <niaw1@...> wrote:-- Bob Jacobsen rgj1927@... |
Locked
Re: BD20 block detection
¿ªÔÆÌåÓýYou wrote: So to the OP, I can see why you're having trouble. Following instructions for correct config appears to break things! Go to Preferences->Defaults. It's almost certain one or more items will have "Infernal" selected instead of NCE! This will be the cause of your woes. As far as your report goes, you have done everything right! Fix "Infernal" and all will be well (for a while). No guarantees it won't happen again. --? Dave in?Australia Noob here but I thought I'd chime in because I have the same hardware (powercab, nce usb, excluding sensors) and goals. So I figured I could learn something going through this thread. Withrottle was working before although it appeared something was misconfigured because I was unable to select "show cabs." I have the 1.65B version of the powercab and (I think) the v7 nce usb. Initially all I had to do was change from v6 in the connection preferences and then I should show cabs and withrottle still worked. Jumpers and rate were default at off/9600. |
Locked
System Console not showing block "triggers"?
JMRI (Panel Pro) used to log an entry as a block detected activity, or the deactivation of a block.? This was very useful when attempting to trouble should a block detection problem arise, of block identification was being done on a new section of track.? I just noticed that these messages are no longer being registered in the system console log.? Has this "feature" been removed from JMRI or just moved to anther log file somewhere? Wain Schroeder Clinton Central Model Railroad |
Locked
Re: BD20 block detection
I hadn't checked before but the withrottle turnout controls actually work too so it is just throttle that has stopped working in withrottle and jmri.
|
to navigate to use esc to dismiss