Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Re: How do I import openpyxl?
¿ªÔÆÌåÓýNick, ? I gave that file a try. It stopped on the first record due to the road name didn¡¯t match existing road names. Or rather reporting marks. You have full name Pennsylvania while the reporting mark would be PRR. I don¡¯t recall which fields would trigger it auto-creating and which you have to create first. ? Looking at the default ops, a few comments:
? Hopefully this helps. ? -Ken Cameron, Member JMRI Dev Team
? ? |
Re: DCC-EX Voltage/current meter
#dcc-ex
?
When sending <c>, I get: ?
TX: Read Track Current Cmd RX: DIAG: Opcode=c params=0 RX: No Sensor/Turnout/Output Reply ? When sending <JI>, I get:
?
TX: Unknown Message: 'JI' RX: Unknown Message: 'jI 0 0 ' |
Re: How do I import openpyxl?
¿ªÔÆÌåÓýNick, ? It might be simpler to upload your file to the ¡®Problems being worked on¡¯ part of the group site. Then others can review the values and see if they can spot the issue. ? -Ken Cameron, Member JMRI Dev Team
? ? |
Re: How do I import openpyxl?
Ken,
?
When try to import my car file in the format described in the OperationsPro help section, PanelPro hangs up. When OperationsPro>Tools>car roster>Import from files is selected, nothing happens: no new window opens to select the file and I just get the circling wait symbol. After 15 minutes, ?I have to force quit PanelPro. I can't close the cars window until after I've executed the command, but I close it then. Nothing shows on the sys console.
?
Help,
Nick |
Re: DCC-EX Voltage/current meter
#dcc-ex
If the <c> isn't working, I doubt the <JI> will either.
But easy to check, just use the Send DCC++Command tool and send each of those messages, and paste the response(s) here.
--SteveT? |
Re: DCC-EX Voltage/current meter
#dcc-ex
> Is the use of the <JI> command between JMRI and DCC-EX (running on an uno) therefore dependant on a JMRI update before it can work? >Yes ¡an update yet to be released, or will updating to v5.10 do the trick? I haven¡¯t seen anything in the latest release notes regarding the current monitor and DCC-EX, though¡ |
JMRI and the decoder Panels
Hi,
A very long time ago (6yr or so) I was able to use JMRI and the panels to read the MACROs of? the Clubs layout to allow me to change if needed, one at a time, not having to REDO the MACRO, best thing since sliced bread.
?
WAY back then, it was just a matter of plugging in the USB Cable to the CONTROL PANEL on the layout, the other end to the computer, starting JMRI and get the PANELs and the macros to show SOMEHOW :)
?
For one reason of another the above method was FORGOTTEN about, sad to say wanting to do something again, the MEMORY is not so good.
?
More later perhaps
Graeme
? |
Re: How do I import openpyxl?
¿ªÔÆÌåÓýNick, ? Why not use the built in Operations to hold the car inventory? That would be a onetime export to CSV and import to JMRI. Then your script could query that database. ? -Ken Cameron, Member JMRI Dev Team
? ? |
Re: I think I have JMRI 5 and JAVA 11 loaded on my Win 11 computer
Hi Steve,
THANKS for your reply,
My computer details are showing me that the USB cable is connection to my COM 3, I go through all the DECODER PANEL settings an wait for a few section, only to have shown in RED.
I will have to wait till I get back to the CLUB and some ELECTRONIC EXPERTS there may be able to help me
?
Thanks Graeme |
Re: Roster Missing
Dan, It appears that when DecoderPro stops unexpectedly under certain conditions, the roster index file (roster.xml) is lost. ?The roster entries in the "roster directory" are not affected. The unknown at this point is whether this is a general JMRI issue or an OS specific issue. Dave Sand ----- Original message ----- From: "Dan Foltz via groups.io" <DannyDont=[email protected]> Subject: Re: [jmriusers] Roster Missing Date: Thursday, May 22, 2025 8:02 PM PERFECT! Thanks Dave! |
Re: How do I import openpyxl?
My car spreadsheet (600+ records) has the following fields: carID, type sub-type, road, number, length, color, built, manufacturer, ?weight, wheels, resistance wheel (Y/N), couplers, coupler screw (Y/N), weathered )(Y/N), date last checked, load (if any), comment; and new fields I added for the barcode reader code: destination pointer, destination 1, destination 2, ....destination n (typically 4 to 8 destinations). I primarily use this spreadsheet to keep track of my cars and what I need to do to them.
-
My layout centers on the Enola freight yard in Harrisburg, Pa. Trains arrive from various cities (staging), cars pass over one of two humps, eastbound or westbound, and are routed to new trains which depart to destination cities (staging).
-
I read the carID as the car passes over one of the two humps with a bar code reader. The program gets the car length and next destination from the car spreadsheet. I find the next destination by incrementing the pointer each time the car returns to the hump for classification. That way the car will cycle between 4 to 8 destinations, eastbound and westbound.
-
In a second spreadsheet, given the destination, the program finds the next train (of about 20 scheduled trains) bound for the destination and its assigned track. The assigned track is updated in the trains spreadsheet by the departure yard master during the operating session. The available track length is decremented by the car length and then the new available track length is written back to the spreadsheet. When no room on the track is left, the program routes the car to an overflow track.?
-
In jmri, when the track is entered the program adds the commands for the turnouts involved to a turnout.list. Since more than one car is rolling down the hump at a time, turnouts can't be thrown until previous cars have passed over it. When a car passes over a turnout, photocells activate a sensor and Logix runs a script which clears the top command in the turnout.list and throws the turnout to the next position in the list.
-
I haven't had a chance to study the csv examples yet. But, if I run the program outside of jmri to find the track number, I really only need to pass that track number into jmri which may not be that hard using a csv file as an intermediary. Then I can run the rest of the script in jmri to enter the new turnout commands into turnout.list and eventually throw the turnouts and control panel lights.?
-
Hope this wasn't to much information. If you are interested, I've uploaded the program into files as Nick Brownsberger's hump control program.
Nick |
Re: Roster Missing
Dan, Try rebuilding the roster. ?Actions -> Recreate Roster Index. Dave Sand ----- Original message ----- From: "Dan Foltz via groups.io" <DannyDont=[email protected]> Subject: Re: [jmriusers] Roster Missing Date: Thursday, May 22, 2025 5:43 PM If I can add on this this topic. I believe the same thing happened to me just a couple of hours ago. I could not close the JMRI screen so rather than use Task Manger to kill it, I restarted the computer. It indicated that Decoder Pro was stopping the Restart but I went ahead anyway. ? I then started Decoder Pro after the computer restart and could not find any of my locos in the roster. Not being all that familiar with Decoder Pro I went ahead and programed the engine that was on the Programming track. Now I have only that engine in my Roster.? ? Is there anything that I can do to find the lost roster? I did look at the .BAK file but it too had only the one engine. Is there any place where JMRI might have done a backup of this file? I would think that the .BAK is about it. But hopefully someone can shed some light on my darkened day. ? ? Thanks for any help anyone might provide, ? Dan Foltz ? ? ? THanks for any ideas or help.? |
Re: Roster Missing
If I can add on this this topic.
I believe the same thing happened to me just a couple of hours ago. I could not close the JMRI screen so rather than use Task Manger to kill it, I restarted the computer. It indicated that Decoder Pro was stopping the Restart but I went ahead anyway.
?
I then started Decoder Pro after the computer restart and could not find any of my locos in the roster. Not being all that familiar with Decoder Pro I went ahead and programed the engine that was on the Programming track. Now I have only that engine in my Roster.?
?
Is there anything that I can do to find the lost roster? I did look at the .BAK file but it too had only the one engine. Is there any place where JMRI might have done a backup of this file? I would think that the .BAK is about it. But hopefully someone can shed some light on my darkened day.
?
?
Thanks for any help anyone might provide,
?
Dan Foltz
?
?
?
THanks for any ideas or help.? |
Re: LogixNG POM
#logixng
¿ªÔÆÌåÓýVinny, It seems that you want to have a memory with the current volume. And then a ConditionalNG that copies the value of the memory to a local variable. You then does the addition/subtraction and store the new value in the memory. And then you do the POM. Note that memories usually uses strings, not numbers, so you
might need to convert the string to a number. Daniel
On 2025-05-23 00:12, Vinny DeRobertis
via groups.io wrote:
|