Re: How do I import openpyxl?
For reading a CSV file, try jython/CsvToTurnouts.py From it¡¯s header: # Read a CSV (comma-separated variable) file containing # # System Name # User Name (optional) # Comment (optional) # # and
By
Bob Jacobsen
·
#242353
·
|
Re: How do I import openpyxl?
Thanks all. Is nothing simple anymore? - I'm looking at Apache POI but the download process confusing. - Dave, Can you suggest some cvs examples? I looked in the Jython folder but none were obvious.
By
Nick Brownsberger
·
#242352
·
|
Re: How do I import openpyxl?
Nick and Nick, The following comments are not authoritative. ? openpyxl needs to be "installed" in the Jython install location using pip or equivalent. ? JMRI includes the standalone version of
By
Dave Sand
·
#242351
·
|
Re: Trying to replicate 3-way LogixNG code
#logixng
Thanks Dave, I still may not be sure what I am doing with LogixNG, though now being up to my ankles, can edit the existing code to fit my purposes. I¡¯ll assume since you didn¡¯t address the
By
John Bauchiero
·
#242350
·
|
Re: How do I import openpyxl?
Hi, This is what Copilot said about running openpyxl in Jython: 'Using *openpyxl* with *Jython* can be challenging. Openpyxl relies on certain Python features that may not be fully compatible with
By
nicholas murphy
·
#242349
·
|
I think I have JMRI 5 and JAVA 11 loaded on my Win 11 computer
I am trying to get to look at the MACROs from my Clubs Layout, but I thought I needed the internet to my Computer so I got the Clubs computer win11 with Java and Jmri on and I got the some results
By
Graeme Wilson
·
#242348
·
|
DCC-EX Voltage/current meter
#dcc-ex
I have my windows 10 laptop running JMRI v5.6 with DCC-EX running on an Arduino uno, connected to my laptop via USB, paired with the DCC-EX MotorShield8874. When I open the ¡®voltage / current
By
Daniel Mcmillan
·
#242347
·
|
Re: How do I import openpyxl?
Nick, I'm not sure it's even possible to include openpyxl. JMRI uses Jython, not Python. Jython is similar to Python but written in Java. It allows Java programs like JMRI to run Python scripts. But
By
danielb987
·
#242346
·
|
Re: How do I import openpyxl?
Dave, Thanks. I'd like to avoid using a cvs file because I use the spreadsheet to maintain my car fleet as well as in the Jython script. Robert, I tried the path.append statement but it didn't work.
By
Nick Brownsberger
·
#242345
·
|
Re: VSD dont work
#vsdecoder
Angel, I recommend to look at an existing and working VSD file, like EMD_645_Turbo.vsd. To the initial part of the config.xml file: The value "diesel" is not a good choice for a profile name. Profile
By
Klaus Killinger
·
#242344
·
|
Re: Trying to replicate 3-way LogixNG code
#logixng
John, If you have any LogixNG already created, loading an additional file with LogixNG does not work. I have created an export file which only has the LogixNG with modified system names to prevent
By
Dave Sand
·
#242343
·
|
Re: VSD dont work
#vsdecoder
Hello again. I did it, but the result is the same. I still get that prompt. That's the initial part of the code. I wonder if you see anything wrong that you could tell me about? Thank you very much.
By
Angel Mora
·
#242342
·
|
Re: Edit dialog boxes do not open with full width
Ken, Attached are a couple of traces. They are really traces of the same activity but I noticed something interesting. Process was: * Start JMRI * Select profile "foo" * Open the Display/Edit Log
By
Vince Guarna
·
#242341
·
|
Re: Looking for ideas to mirror SE8C signals between two panels
Yes, you will just need to manually load the script.
By
billybob experimenter
·
#242340
·
|
Re: VSD dont work
#vsdecoder
De acuerdo Klaus, thank so much. I will do it.
By
Angel Mora
·
#242339
·
|
Trying to replicate 3-way LogixNG code
#logixng
Dave Sand, I saw a copy of your 3way LogixNG.xml code (May 6th) which looked interesting (anyway, I assume it¡¯s yours). It operates much smoother than the Sensor/Route/Turnout conglomeration I
By
John Bauchiero
·
#242338
·
|
Re: Looking for ideas to mirror SE8C signals between two panels
This script worked in my manual testing so now I need to test it on the real layout. However I'm pretty sure I know the answer to this stupid question but I'm going to ask it anyway. We typically load
By
cengel_74
·
#242337
·
|
Re: Edit dialog boxes do not open with full width
Vince, Here is a clue. jmri.util.JmriJFrame If you set that to TRACE level, it will show more of how it is figuring out size stuff. Might not get you an answer but worth a shot. Debug->Display/Edit
By
Ken Cameron
·
#242336
·
|
Re: Starting with JMRI sensor reading and signal output: help request
Hi Eric, I have just started going down the rabbit hole of JMRI. I created a track plan in Anyrail and created all my Sections, making sure everything was connected. i followed the instructions given
By
John S.
·
#242335
·
|
Re: Edit dialog boxes do not open with full width
Thanks, Ken. It sure does appear to act as you suggested. Here's a potentially interesting data point. Since I'm lucky enough to have two Macs both running 5.10 but on different platforms, I tried a
By
Vince Guarna
·
#242334
·
|