¿ªÔÆÌåÓý

Date

Locked Re: JMRI Locking up

 

Thanks Dave. One of these days I'll get it right.
Chris


Locked Re: Jython Script output problem #timetable-tool

 

Well, I'm having a lot of fun - so if it isn't driving you nuts I'll Keep going which is bound to throw up more issues, but may help with other of your ideas..

The changes I will be setting about now are:
1) add third entry numberofstops (len(trainStops)) to trainMap
2) if a through train (arrive and depart at same time) only put an entry on the arrive line
3) if the first stop??(stops == 0)??and an "Up" train only put an entry of the up depart line else put an entry only in the down depart line (as I understand it, a train coming onto this branch should have its dwell time in its arrival at the junction.
4) if the last stop (stops == numberofstops) and the departure time is the same as arrival time, only put entry on the arrive line, put the departure in the appropriate up or down departure line


Locked Re: Jython Script output problem #timetable-tool

 

Iain,

I did not look at the compare issue.

Comparing arrive and depart time does not define direction. You would need to compare the arrive time for two different stops to determine direction. The logic that I provided compares the station distance for the first and second stop. This assumes that a train does not change direction. This approach would not work for an out and back turn.

I spent a lot of time getting the graph process correct because it deals with the exact same issues: direction, turns, arrive and depart times, etc. It also has to support a train transitioning between segments.

This python exercise is providing a lot of insights into the issues of exporting the data as a CSV file. This will be very helpful when I do the Java based export. Thank you.


Dave Sand

On Dec 19, 2018, at 12:13 PM, Iain <iain@...> wrote:

Oh thank you so much. As I am retired I don't have anything better to do - so I do appreciate your time and help when you do. I shall move it on again now.

I had thought of something like you have done - but I was not sure how to manipulate Maps. I don't know if you do this, but old habits mean I keep a "Lab Book" and all these hints and tips do get analysed and written up so I ask less questions in future!

I like your way much better than mine - but why did mine not work? What WAS the problem with the comparison? I tried umpteen ways of coercing the values of getArriveTime and getDepartTime to be the same but nothing worked. Where there was equality it "worked" but not difference in any way.

I will sort out my files problem for next time.


Locked Session Logs

 

Hello,

Access to:
Win10(64bit)/JMRI 4.12+Rb6a9bb1/Java1.8.0_181
Win7(32bit)/JMRI 4.12+Rb6a9bb1/Java1.8.0_181
RaspPi - per Steve Todd's latest link.

Control: Lenz Compact (I know it's old, but seems to work) & LI-USB interface.

Things have been wortking for a while. I decided to look at Session Log and found some "Errors".
(Copy/Paste):(Redacted):

2018-12-12 17:20:45,675 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main]
2018-12-12 17:20:45,690 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: C:\Users\Tom Busza\JMRI\log\messages.log [main]
2018-12-12 17:20:45,691 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: C:\Users\Tom Busza\JMRI\log\session.log [main]
2018-12-12 17:20:45,698 apps.Apps???????????????????????????? INFO? - PanelPro version 4.12+Rb6a9bb1 starts under Java 1.8.0_181 on Windows 10 x86 v10.0 at Wed Dec 12 17:20:45 GMT 2018 [main]
2018-12-12 17:20:45,949 apps.Apps???????????????????????????? INFO? - Starting with profile My_JMRI_Railroad.3f5f7e97 [main]
2018-12-12 17:20:46,350 node.NodeIdentity???????????????????? INFO? - Using jmri-iC12HdZKWhNiaafmVFiIV6-3f5f7e97 as the JMRI Node identity [AWT-EventQueue-0]
2018-12-12 17:20:46,524 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "XpressNet" [main]
2018-12-12 17:20:47,108 liusb.LIUSBAdapter??????????????????? INFO? - COM5 port opened at 57600 baud with DTR: true RTS: true DSR: true CTS: true? CD: false [main]
2018-12-12 17:20:47,267 jmri.InstanceManager????????????????? ERROR - Should not set default of type jmri.CommandStation to null value [main]
2018-12-12 17:20:47,268 managers.ManagerDefaultSelector?????? WARN? - SystemConnectionMemo for XpressNet (class jmri.jmrix.lenz.XNetSystemConnectionMemo) provides a null interface jmri.CommandStation instance [main]
2018-12-12 17:20:47,273 plementation.JmriConfigurationManager ERROR - Exception initializing jmri.managers.ManagerDefaultSelector: System connection XpressNet provides a null manager for interface jmri.CommandStation [main]
2018-12-12 17:20:47,550 plementation.JmriConfigurationManager ERROR - Exception initializing apps.StartupActionsManager: jmri.util.prefs.InitializationException: Unable to run startup actions due to earlier failures. [main]
2018-12-12 17:20:49,354 util.FileUtilSupport????????????????? INFO? - File path program: is C:\Program Files (x86)\JMRI\ [main]
2018-12-12 17:20:49,355 util.FileUtilSupport????????????????? INFO? - File path preference: is C:\Users\__X__\JMRI\My_JMRI_Railroad\ [main]
2018-12-12 17:20:49,355 util.FileUtilSupport????????????????? INFO? - File path profile: is C:\Users\__X__\JMRI\My_JMRI_Railroad\ [main]
2018-12-12 17:20:49,356 util.FileUtilSupport????????????????? INFO? - File path settings: is C:\Users\__X__\JMRI\ [main]
2018-12-12 17:20:49,356 util.FileUtilSupport????????????????? INFO? - File path home: is C:\Users\__X__\ [main]
2018-12-12 17:20:49,357 util.FileUtilSupport????????????????? INFO? - File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main]
2018-12-12 17:20:49,670 gui3.TabbedPreferencesAction????????? INFO? - We are already waiting for the preferences to be displayed [main]
2018-12-12 17:20:50,260 PanelPro.PanelPro???????????????????? INFO? - Main initialization done [main]

There is nothing on JMRI Help pages which actually helps.

Can somone please clarify what the ERRORS shown above actually mean, paerticularly what does "Should not set default of type jmri.CommandStation to null value" mean.

Many thanks in advance. It may answer some other questions.

Meantime, may I comment on JMRI Help? If I enter a search term in Help, I get a a list of references, mostly empty pages. Why?

Thanks and regards

Tom


Locked Re: Jython Script output problem #timetable-tool

 

Oh thank you so much.? As I am retired I don't have anything better to do - so I do appreciate your time and help when you do.? I shall move it on again now.

I had thought of something like you have done - but I was not sure how to manipulate Maps.? I don't know if you do this, but old habits mean I keep a "Lab Book" and all these hints and tips do get analysed and written up so I ask less questions in future!

I like your way much better than mine - but why did mine not work?? What WAS the problem with the comparison?? I tried umpteen ways of coercing the values of getArriveTime and getDepartTime to be the same but nothing worked.? Where there was equality it "worked" but not difference in any way.

I will sort out my files problem for next time.


Locked Re: Jython Script output problem #timetable-tool

 

Iain,

The sorted issue also got me at first, then I remember "read up" and "read down¡±.

Setting train direction is a challenge. It is especially tough for turns. I have added direction detection to your script.

/g/jmriusers/files/ProblemsBeingWorkedOn/dsand/IMTTimeTableExportOrdered.py

This is done while building the train list and adding a direction value to the trainMap. A small change to the stops section gets the output in the proper locations.

Recommendation: In the group¡¯s ProblemsBeingWorkedOn, create a folder for yourself and put your items in there. This makes it easier to share files.


Dave Sand

On Dec 19, 2018, at 8:34 AM, Iain <iain@...> wrote:

The result of the "sorted" caught me out! I thought it must be wrong - before I remembered that stops are listed in time order hence it was quite right for a train leaving Lochinver earlier but arriving in Ullapool later than a train leaving Ullapool to precede the Ullapool train in the sorted list. It looked odd but was right.

I have moved on and I am trying to output 3 lines per station depart up, arrive and depart down. Obviously one of the depart lines should be "_". Eventually any train that does not stop will only have an arrive time (not in the code yet). HOWEVER I have a problem with comparisons - I think that the time data is stored as minutes in a day, but it is probably a string. I have tried coercing the value in the hope of getting decimal - but my comparison resolutely fails.

If you have time, please could you tell me what is wrong at line 104 or around there. My mashed up code is in the problems file.


Locked Re: JMRI software on a laptop remote from layout room

 

Jan -Yes my home network wifi signal is accessible in both locations.


Locked Re: JMRI software on a laptop remote from layout room

 

Stan: Is your home network wifi signal accessible in both locations?

Jan


Locked Re: EDGE CONNECTORS BETWEEN PANELS

 

Dave,

The problem from a year ago was fixed. It is possible that your configuration either introduces a new error situation or highlights that the original fix was incomplete.

In either case, we will need a copy of your panel xml file as a test case.


Dave Sand

On Dec 19, 2018, at 4:06 AM, Dave Roberts <dccdaveroberts@...> wrote:

JMRI 4.12 on an iMac under Parallels and Windows 10

I have successfully broken down my whole layout into eight location panels, each of which is a separate Power District.
I have run into the problem highlighted in github issues 4729 and 4730 back in January. The required Blocks that connect Panel to Panel/Board to Board appear to be all there but I cannot access some of them. I am aware of the "One Direction" criteria and have tried the 'Workaround' suggested in 4730 but this does not work for me.

Has there been any resolution to correct the problem? Has anyone managed to get them to work with multiple connectors on each board?. The first EC works perfectly but the subsequent connections do not. I will re-check for any Name differences between the 'Whole Layout' plan and the individual Power District Panels because that is all that comes to mind right now.
I am keeping it such that connectors on the LHS of a panel connect to the RHS of another panel and vice versa but I do have multiple panels with multiple EC's on many sides with bi-directional single line working and multiple main lines crossing the boards.

Dave


Locked Re: JMRI Locking up

 

There were a significant number of errors reported in the system console.

The actual errors were double spaces in some of the names. The modified file has been uploaded:

/g/jmriusers/files/ProblemsBeingWorkedOn/JMRI%20locking%20up/Bondale%205A%20DS.xml

The panel now loads without any errors.


Dave Sand

On Dec 19, 2018, at 2:50 AM, SwissChris <chris@...> wrote:

Thanks for everybody's help. I gave up on that iteration, started again from scratch. All blocks now seem to be contiguous, BUT I am still having problems with signals failing to load and the SML along with it. I enclose 2 images, one of the panel as saved, the other from this morning as loaded. the 7 missing heads account for 30 pieces of logic
/g/jmriusers/photo/80492/1?p=Name,,,20,1,0,0


Locked Changing Decoder Selection

Bob Potter
 

Hi,
The only way I have found to make a decoder selection in DP (4.12 is what I am using with Power Cab and a Sprog 3) is with the initial selection when creating a new loco roster entry. I realize that DP probably chooses its tabs and check lists based on the decoder selection. However, is there a way to change the selected decoder without having to create a new roster entry?
Thanks,
Bob


Locked New file uploaded to [email protected]

[email protected] Notification
 

Hello,

This email message is a notification to let you know that a file has been uploaded to the Files area of the [email protected] group.

File: IMTTimeTableExportOrdered.py

Uploaded By: Iain

Description:
Fore Dave Sand

You can access this file at the URL:
/g/jmriusers/files/ProblemsBeingWorkedOn/IMTTimeTableExportOrdered.py

Cheers,
The Groups.io Team


Locked Re: Jython Script output problem #timetable-tool

 

The result of the "sorted" caught me out!? I thought it must be wrong - before I remembered that stops are listed in time order hence it was quite right for a train leaving Lochinver earlier but arriving in Ullapool later than a train leaving Ullapool to precede the Ullapool train in the sorted list.? It looked odd but was right.

I have moved on and I am trying to output 3 lines per station depart up, arrive and depart down. Obviously one of the depart lines should be "_". Eventually any train that does not stop will only have an arrive time (not in the code yet).? HOWEVER I have a problem with comparisons - I think that the time data is stored as minutes in a day, but it is probably a string.? I have tried coercing the value in the hope of getting decimal - but my comparison resolutely fails.

If you have time, please could you tell me what is wrong at line 104 or around there.? My mashed up code is in the problems file.


Locked Re: JMRI Operations - Print comments on Manifest

 

Ron,
You should be able create a "virtual" car than can be picked up/set out at the desired location? Car does not really exist but JMRI does not know that and it should cause JMRI to make a stop at the location so you can add your comments
Paul D


Locked JMRI Operations - Print comments on Manifest

 

¿ªÔÆÌåÓý

Good Morning;

I have used the Route "comment" field to give instructions to train crews at?given locations. However if there are no set outs or pick ups, the location is not printed on the manifest. Is there a way to "force" the program to print these comments even if there are no moves?


e.g. Local freight returns to point of origin location with no cars. Manifest printout merely says "Train terminates in ....." after last location where pick ups or set outs were done.


Thanks for your help,

Ron



Sent from


Locked EDGE CONNECTORS BETWEEN PANELS

 

JMRI 4.12 on an iMac under Parallels and Windows 10

I have successfully broken down my whole layout into eight location panels, each of which is a separate Power District.
I have run into the problem highlighted in github issues 4729 and 4730 back in January. The required Blocks that connect Panel to Panel/Board to Board appear to be all there but I cannot access some of them. I am aware of the "One Direction" criteria and have tried the 'Workaround' suggested in 4730 but this does not work for me.

Has there been any resolution to correct the problem? Has anyone managed to get them to work with multiple connectors on each board?. The first EC works perfectly but the subsequent connections do not. I will re-check for any Name differences between the 'Whole Layout' plan and the individual Power District Panels because that is all that comes to mind right now.
I am keeping it such that connectors on the LHS of a panel connect to the RHS of another panel and vice versa but I do have multiple panels with multiple EC's on many sides with bi-directional single line working and multiple main lines crossing the boards.

Dave


Locked Re: JMRI Locking up

 

Thanks for everybody's help. I gave up on that iteration, started again from scratch. All blocks now seem to be contiguous, BUT I am still having problems with signals failing to load and the SML along with it. I enclose 2 images, one of the panel as saved, the other from this morning as loaded. the 7 missing heads account for 30 pieces of logic
/g/jmriusers/photo/80492/1?p=Name,,,20,1,0,0


Locked New file uploaded to [email protected]

[email protected] Notification
 

Hello,

This email message is a notification to let you know that a file has been uploaded to the Files area of the [email protected] group.

File: Bondale 5A.xml

Uploaded By: SwissChris

Description:
Lastest iteration which still loses signal masts and logic, but not the heads

You can access this file at the URL:
/g/jmriusers/files/ProblemsBeingWorkedOn/JMRI%20locking%20up/Bondale%205A.xml

Cheers,
The Groups.io Team


Locked Re: How to make or modify CPE panel icons?

 

I use GIMP It is free. Work with transparency, color modes, file formats, ...

--
Petr ?¨ªdlo
Czech Republic


Locked How to make or modify CPE panel icons?

 

I have attempted to modify some CPE panel icons and they did not turn out well. As far as I can tell, the icons are a GIF. I took an turnout icon (white) and tried to edit it to another color in Paint. It worked but the image was not very good. The colors were not smooth like the other icons I find in the CPE files. The colors were very mottely without uniformity to the colors. Also, I could not recreate the transparent background so that the panel background color would show through.? What is the trick to modifying existing CPE icons or to building new icons to use in CPE? Does it require some special software?
If anyone has the right software, I would like to modify several existing CPE icons for track and turnouts to create the same image but with different colors.
Paul D