¿ªÔÆÌåÓý

Date

Locked Re: Trying to get on top of jython

 

1) There are ways to do this. They start off looking complicated, but you have to remember that asking the program to sleep _actually_ _works_: If you do that in the main program, the main program sleeps so that you can¡¯t click, etc. Instead, you have to hive your turnout activity into a little separate item (called a ¡°thread¡±) which can run and sleep independently.



2) How are you running your scripts? When I run something (i.e. while debugging) from a Script Entry window, the syntax error and runtime error messages show up nicely on JMRI System console window. Perhaps you¡¯re running them a different way or there¡¯s something else wrong?

Another clue that something is wrong is not seeing ¡°turnouts¡± and ¡°sensors¡± predefined. They _definitely_ should be.

Bob

On Jan 2, 2019, at 7:42 AM, whmvd <vandoornw@...> wrote:

Hello scripting-gurus,

For quite a while now, I've been fighting python/jython rather than using it, and frustration is building up. I want to like it, I want to work with it - but it's not making it easy. For now, I'd like to focus on two things that make life very hard:

1) A small test script that looks up a turnout (successfully) checks its status (thrown or closed), logs it and sleeps for 0.2 seconds before checking again until it is what I want it to be does not allow me to operate any of my four panels (3x Panel Editor, 1x Layout Editor). The only things that can be operated are the resize buttons on the window and the positioning. So I can't throw the turnout to let the test program complete (the log line appears every 0.2 seconds, so it sort of seems to work). I would have thought that the time.sleep(200/1000.0) would allow me to do things instead of the whole interface being locked up? (BTW: specifically not looking for different ways to do this; I know I should add a listener and make that react, and I will end up doing that anyway - I am trying to understand why the simple thing I'd like to do cannot work)

2) When I make one of my frequent coding errors, the result is the same as described above - interface locked up except for the sizing/positioning of windows). I get no error logged. Nothing on standard output or standard error, and nothing in the console. Zilch. This leaves me having to guess where I could have gone wrong, instead of being able to look at a stack dump. For instance: I thought in my optimism that the variables 'turnouts' and 'sensors' where predefined when importing jmri, so I was happily using them. That caused the lock-up with no message at all. Finding the cause of that took me several frustrating days. I hope to turn this back into a hobby!

Any help will be greatly appreciated.

Wouter

PS: using JMRI 4.14 on Linux Mint 18.3.
--
Bob Jacobsen
rgj1927@...


Locked Re: MQTT Connection in JMRI

 

Thank you Bob!

We should start with something simple, like using the Topic in the System Name (as Bob suggested) and then use, at first, the same Message or Payload as JMRI already does it, may that be Turnouts with "Closed/Thrown", Sensors with "Active/Inactive", Signals with "Red/Yellow/Flashing Green" and Masts with "Stop/Clear/Approach/Dark", for the publishing part.

And for the subscribing part, do the same, change a sensor when an "Active" or "Inactive" is published and JMRI receives it.?

The "subscription" to an MQTT broker is the harder part, since we would either need to subscribe to every topic in use individually?or?subscribe to all (which they discourage here: ) and then distribute it to the topics that exists in the table(s). Would all this need to be done in a separate thread, the JMRI gurus would need to help here?!?

I do not completely understand the use?of JSON, but most libraries for embedded systems have limits to the message size, the library I am using for example () has a 128 byte limit: "MQTT_MAX_PACKET_SIZE".? Sure, we could change that number, but where does that leave the 8-bit controllers with limited memory space?? I imagine JMRI would publish to a Broker, and the Broker would then send it directly to the described small devices. When we publish an 'ACTIVE' to a topic that contains 'sensor', is it worth unpacking the JSON string to find out that it is a sensor and the state is now active? Not saying there is no need for JSON, I just don't see the need in the end device receiving the MQTT message.

But, I am quite sure that once we have subscription up and running, we could expand it to publish JSON, why else would we have the next release?

Retention could be "active" at first, until we see the need to turn it off...not sure how much work it is to add columns in the tables.

For the Preferences->Connections, we should add Username and Password, and eventual the QOS (quality of service) settings, and maybe we could use the "MQTT channel" to enter the first part of the Topic, so we don't need to type "TxNamib/UpperLevel/BackCorner/" in front of every sensor in the sensor table's System Name. (note that they discourage use the leading '/' at the very front)

Then, when we have working subscription MQTT in JMRI, we could add options on what to publish on the different states, so that "Closed/Thrown" could maybe be "0/1" or "Normal/Reverse"?

Speed


Locked Trying to get on top of jython

 

Hello scripting-gurus,

For quite a while now, I've been fighting python/jython rather than using it, and frustration is building up. I want to like it, I want to work with it - but it's not making it easy. For now, I'd like to focus on two things that make life very hard:

1) A small test script that looks up a turnout (successfully) checks its status (thrown or closed), logs it and sleeps for 0.2 seconds before checking again until it is what I want it to be does not allow me to operate any of my four panels (3x Panel Editor, 1x Layout Editor). The only things that can be operated are the resize buttons on the window and the positioning. So I can't throw the turnout to let the test program complete (the log line appears every 0.2 seconds, so it sort of seems to work). I would have thought that the time.sleep(200/1000.0) would allow me to do things instead of the whole interface being locked up? (BTW: specifically not looking for different ways to do this; I know I should add a listener and make that react, and I will end up doing that anyway - I am trying to understand why the simple thing I'd like to do cannot work)

2) When I make one of my frequent coding errors, the result is the same as described above - interface locked up except for the sizing/positioning of windows). I get no error logged. Nothing on standard output or standard error,? and nothing in the console. Zilch. This leaves me having to guess where I could have gone wrong, instead of being able to look at a stack dump. For instance: I thought in my optimism that the variables 'turnouts' and 'sensors' where predefined when importing jmri, so I was happily using them. That caused the lock-up with no message at all. Finding the cause of that took me several frustrating days. I hope to turn this back into a hobby!

Any help will be greatly appreciated.

Wouter

PS: using JMRI 4.14 on Linux Mint 18.3.


Locked Re: 4.11 to 4.14

 

Running 4.11.3+ is fine. But when I switch the install to either 4.12 or 4.14 I get the same error. So something has been changed and I'm missing an upgrade step?


Locked Re: Decoder Pro problems

 

¿ªÔÆÌåÓý

I look forward to you coming back and eating crow after Dave helps you see your mistakes.?

David Klemm
Xs Max
?


From: [email protected] on behalf of mvdeschane@...
Sent: Wednesday, January 2, 2019 07:56
To: [email protected]
Subject: Re: [jmriusers] Decoder Pro problems
?
Steve "Breezlys" I do not know as much as you do about this stuff.? I also don't care that the PR-4 and PR-3 aren't exactly the same.? From a users stand-point, they work the same and that all I care about!

I'm unsure what your response has to do with fixing my problem.? However, I am glad I was able to allow you to show-off your superior knowledge about esoteric model railroad equipment!? ?


Locked Re: 4.11 to 4.14

 

Hi, thanks.
?It was on startup. The validate XML passes with 'OK' I've placed the file the error referenced in this folder?Route XML Issue, call BranchPoints.xml
Cheers,
Scott


Locked Re: Decoder Pro problems

 

¿ªÔÆÌåÓý

Dear?mvdeschane@...

We try to keep this a friendly group. To enhance that feeling, we consider a signature on eMails a good starting point. For those in the witness protection program, an alias is ok!

When one is asking for volunteer help is not necessarily the best time to denigrate those who are providing information.

For example, Steve¡¯s post explained to me why there is no ¡°PR4¡± entry In JMRI. I haven¡¯t followed closely Digitrax¡¯ recent evolution in that arena. As such, I could have exposed my lack by asking as to when such might be available. But Steve saved me. Oops, did I just let that cat out of the bag?

Now, perhaps someone else may be motivated to enlighten you on your ¡°esoteric model railroad equipment.¡± Or perhaps not.
--
Bruce Petrarca, Mr. DCC; MMR #574

On Jan 2, 2019, at 6:56 AM, mvdeschane@... wrote:

Steve "Breezlys" I do not know as much as you do about this stuff.? I also don't care that the PR-4 and PR-3 aren't exactly the same.? From a users stand-point, they work the same and that all I care about!

I'm unsure what your response has to do with fixing my problem.? However, I am glad I was able to allow you to show-off your superior knowledge about esoteric model railroad equipment!? ?


Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

¿ªÔÆÌåÓý

Ron, A Happy New Year to you. Did you get copy of the Script?

We have been very active over the holiday and produced a better working version of the Script that may help you but the secret of any success is having a Naming System that is logical and very easy to Add or Amend Names. I can give you details off line if you wish? Please reply directly to my email.

Dave

On 30 Dec 2018, at 19:57, Ron Atherton <akskron@...> wrote:

Dave,

I could use the Excel script also. I have become the Computer Guy for a Group that did not understand JMRI (not that I fully understand it myself) or how software of any type works.

The JMRI tables have MANY unused or incorrect turnouts, blocks, etc. that so far I have been unable to delete. If I could list stuff in Excel it might help me "clean up" the mess.

They tired to get it right but their lack of programming knowledge and how to write software was a major problem.?

We have over 30 of 60 signals in and working on a layout with 35 blocks and over 40 turnouts controlled by either wireless throttles and/or JMRI.

I have programmed in Fortran for many years but had worked with Excel mostly for last 15 years for Sales and Marketing data until I retired.

Writing script in Jython is a new challenge for me but so far I am winning, most of the time. Fortran used a compiler that usually let you know that you made an error on how you wrote a command. Jython just will not run with "bad" script and then the guessing starts. LOL

Thanks

Ron Atherton?



Sent from my U.S.Cellular? Smartphone

-------- Original message --------
From: Dave Roberts <dccdaveroberts@...>?
Date: 12/30/18 12:37 PM (GMT-06:00)
Subject: Re: [jmriusers] UNWANTED BLOCKS & TURNOUTS IN LISTING

Dave,

Thanks for the confirmation. I am pleased to report that the ¡°CHECK¡± tool is reporting no errors on any panel - Master and Sub-Panels (Lovations).

I am waiting for John Wragg to get back to me with a copy of his Jython Script to permit the Table Printouts to be converted into Excel format so that they can be printed out.

Apparently, his script will identify those entries that are not used within the active xml files to make things a little easier. At least my Naming scheme has come into its own. It will be a great help in this case.

Dave


On 30 Dec 2018, at 17:59, Dave Sand <ds@...> wrote:

Dave,

I believe the two connection rule applies to other table types, including turnouts. ?Whenever making changes like this, save often and stop/start JMRI and look for errors in the system console.

Dave Sand


On Dec 30, 2018, at 11:40 AM, Dave Roberts <dccdaveroberts@...> wrote:

Dave,
Thanks for the confirmation regarding the Blocks. What about the Turnouts?
Dave

- Dave

On 30 Dec 2018, at 16:59, Dave Sand <ds@...> wrote:

Dave,

Blocks with only 2 connections are not active and can be deleted.

Dave Sand



On Dec 30, 2018, at 1:56 AM, Dave Roberts <dccdaveroberts@...> wrote:

Cliff,

So kind of you to reply and thank you. Like you, my layout developed over some ten years and grew alongside JMRI. As part of the learning curve that we all go through I created several Turnouts and Blocks using the INTERNAL Name. Many had mistakes in the name, usually me adding in an extra space here and there. These are very difficult to distinguish between too!

Sometimes it was when I renamed an existing block I would add number after it and then create a new second, sequentially numbered Block. The original block was still there in the listing. This was before the time when I could have just renamed it and saved it.

I was developing my Naming System and Turnouts proved a bit of a problem until I settled on my current Naming scheme which now sorts all items for a particular Location into one contiguous block of names.

However, I am left with several entries that are not used within the xml file as part of any part of the layout. I was hoping that as part of the Rename the Layout idea that JMRI could be made to just include those names that are actively used on the layout and leave the rest behind.

At present, by using my Naming Scheme, I can break all the Table records into Named Blocks of records and attempt a deletion there. It is easier than having to plough through every entry on the various Tables Listings.

The problem is identifying those not currently used. At the moment it would appear that the unused entries only have two connections but I am not sure if this is the default when they are created? Is so, then deleting all those with only the original two connections would appear to be the way to go but having spent many hours removing all errors between the Master, (Whole Layout) file Panel and the various Location Sub-Panels using the CHECK Tool option for all four of the areas specified, I need to be sure that I can get rid of all of the unwanted entries and so slim down the file to prevent any further errors arising in the future.

That is why I put out my request for further information to check if there has been any further developments over the past five years before I embark on what could be a potential nightmare scenario for me.

May I wish you a Happy and Peaceful New Year.

Dave


On 30 Dec 2018, at 00:19, Cliff Anderson <cliffaa@...> wrote:

Dave,

On Sat, Dec 29, 2018 at 01:03 PM, Dave Roberts wrote:

I have read ?the last conversation from Cliff in 2014 but has there been any progress in finding a way to remove unwanted/unused list items from the tables?

Perhaps you are referring to messages #103133 & #103134 from February 2014?

If so, it took me some time to recover them and even so I have only a dim memory of that thread after almost five years. Certainly, I have no recollection of further information and normal use of search mechanisms within the JMRI and this Groups sites have not been productive. My practice with the use of adding Blocks has become more careful to define a new block, but that does not help others much.

If these are not what you are alluding too, perhaps further clarification would be in order.

In either case, someone who uses the Layout Editor a lot more than I do would be better prepared to follow up on your request.

Cliff in Baja SoCal














Locked Re: Decoder Pro problems

 

Steve "Breezlys" I do not know as much as you do about this stuff.? I also don't care that the PR-4 and PR-3 aren't exactly the same.? From a users stand-point, they work the same and that all I care about!

I'm unsure what your response has to do with fixing my problem.? However, I am glad I was able to allow you to show-off your superior knowledge about esoteric model railroad equipment!? ?


Locked Re: Decoder Pro problems

 

Dave in Australia, will attempt to comply: Answers to your Paragraph 8, Color Green: Service mode programmer LocoNet is? Online.? Color Green: Operations mode programmer LocoNet is Online.?
Program Status: Idle.? ?Active Profile: My Northern Pacific.??I do not see xxx is yyy" or zzz or vvvvv any where in the status information.? My Northern Pacific is what I called my Decoder Pro File.

When? Create a new loco is pressed, The word Idle? appears at the bottom of the window.

When Read Type of Decoder is pressed, the following happens: Where it stated "Idle" before it now states "multiple possible decoders detected - manually select from highlighted decoders or family".

The DH166D is not highlighted, what is highlighted is: DH123, DH121, DH120 and DZ120.? In fact, to find the DH166D, I must go into the "Series 6 with FX3, Silent, Improved BEMF" to find the DH166D shown.? ?

I hope the following information is what you wanted me to copy and paste here:?

2019-01-02 06:47:42,262 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - * JMRI log ** [main]
2019-01-02 06:47:42,288 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is appended to file: C:\Users\User\JMRI\log\messages.log [main]
2019-01-02 06:47:42,289 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is stored in file: C:\Users\User\JMRI\log\session.log [main]
2019-01-02 06:47:42,299 apps.AppsBase? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - DecoderPro version 4.14+Rd060e0b starts under Java 1.8.0_191 on Windows 10 amd64 v10.0 at Wed Jan 02 06:47:42 CST 2019 [main]
2019-01-02 06:47:53,583 profile.ProfileManagerDialog? ? ? ? ? INFO? - Automatically starting with profile My_Northern_Pacific.3f781984 after timeout. [AWT-EventQueue-0]
2019-01-02 06:47:53,587 gui3.Apps3? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO? - Starting with profile My_Northern_Pacific.3f781984 [main]
2019-01-02 06:47:53,782 node.NodeIdentity? ? ? ? ? ? ? ? ? ? ?INFO? - Using jmri-cFO2QdWQrhNiaaLo5lxqdh-3f781984 as the JMRI Node identity [AWT-EventQueue-0]
2019-01-02 06:47:53,878 xml.AbstractSerialConnectionConfigXml INFO? - Starting to connect for "LocoNet" [main]
2019-01-02 06:47:54,094 pr3.PR3Adapter? ? ? ? ? ? ? ? ? ? ? ? INFO? - PR3 adapter set hardware flow control, mode=2 RTSCTS_OUT=2 RTSCTS_IN=1 [main]
2019-01-02 06:47:54,095 locobuffer.LocoBufferAdapter? ? ? ? ? INFO? - COM3 port opened at 57600 baud with DTR: true RTS: true DSR: false CTS: false? CD: false [main]
2019-01-02 06:47:54,103 loconet.LnPacketizer? ? ? ? ? ? ? ? ? INFO? - lnPacketizer Started [main]
2019-01-02 06:47:54,127 managers.ManagerDefaultSelector? ? ? ?WARN? - The configured Internal for interface jmri.PowerManager can not be found so will use the default LocoNet [main]
2019-01-02 06:47:54,128 managers.ManagerDefaultSelector? ? ? ?WARN? - The configured Internal for interface jmri.ThrottleManager can not be found so will use the default LocoNet [main]
2019-01-02 06:47:54,369 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path program: is C:\Program Files (x86)\JMRI\ [main]
2019-01-02 06:47:54,369 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path preference: is C:\Users\User\JMRI\My_Northern_Pacific\ [main]
2019-01-02 06:47:54,369 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path profile: is C:\Users\User\JMRI\My_Northern_Pacific\ [main]
2019-01-02 06:47:54,370 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path settings: is C:\Users\User\JMRI\ [main]
2019-01-02 06:47:54,370 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path home: is C:\Users\User\ [main]
2019-01-02 06:47:54,370 util.FileUtilSupport? ? ? ? ? ? ? ? ? INFO? - File path scripts: is C:\Program Files (x86)\JMRI\jython\ [main]
2019-01-02 07:05:19,759 jmrit.AbstractIdentify? ? ? ? ? ? ? ? WARN? - Stopping due to error: No acknowledge from locomotive (308) [AWT-EventQueue-0]

Nothing you told me to do caused a fail; so, the ball is in your court.

I would like to deal with you exclusively, if you are amenable to this.? Here is my email: mvdeschane@...
?


Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

¿ªÔÆÌåÓý

Alan, James & Ken,

I have just recreated the error message following the same steps I went through originally. The Script puts the .csv files into the same location as the xml files for the panels as the standard location to use, initially.?

I then moved the files to a different folder to tidy up the folder before I commenced the conversion from the new location. I think that it was the move away from the original folder location where they were originally created into a new folder that may have created the problem.

Excel may have got lost!

All is well now though. The Script is well worth using to help clear the Tables of erroneous entries because we have identified those records that are not used within the .xml file and can be regarded as redundant.

I will be looking at the files this afternoon but a couple of exceptions have already shown themselves. I thought that I had named a Diamond Crossing's Block as "AJ Diamond¡± but apparently not!?

The same applies to the Slips and Crossovers that require two separate names. I called a Slip Block ¡°KW Forwoods Sidings Slip¡± but this required two sets of turnouts to make it work correctly so I needed to add in two more for every Slip by adding North & South or East & West to the name as appropriate.

I am hoping that this is correct based upon the use of the Slips and Crossover icons Setup/Edit screens used within LE.

I suspect the same will be found to be the case with the Blocks. The actual Layout may use separate Turnouts with Track Segments between them when creating Crossovers. These will not be required for the LE Panels because the Icons do not require them so these, too, can be safely removed.

Dave




On 2 Jan 2019, at 12:40, Dave Roberts via Groups.Io <dccdaveroberts@...> wrote:

Hi Alan & James and a Happy New Year to you both.

Ken is correct in what he said that sometimes the .csv format when opened up by Excel will not save to any other format.

Whenever I open any .csv file my mac gives me a warning on the screen that the csv format is not stable and needs to be saved in a different format. Normally, these work very well and I get no problem with downloads from my bank etc.

However, in this particular case, the system did not like the created output of the script and would not let me save it in any format. I can try and recreate the error window and send it to you, if you wish. It wasn¡¯t until I loaded up ¡°ExcelMate¡± and called that up that the conversion was permitted or if I used Zamzar.?

It must be remembered that I am running Windows 10 through Parallels on an iMac. The "Office for Mac" software is the always the latest because it is paid for monthly. However, the Windows 10 version that I use on the Windows partition comes as an upgrade from Windows 7/8.

It is no big! The problem is resolvable and has been resolved.

Dave?

On 2 Jan 2019, at 11:50, Alan B. Pearce <alan.b.pearce@...> wrote:

The Script creates a .csv file that can be opened by Excel but not saved in another format other than .csv.

Huh? I have no problems saving a CSV file as a native excel file, after opening it in Excel. What is so magic about the files that the script generates that Excel cannot save it as XLS or XLSX?









Locked Re: 4.11 to 4.14

 

Scott,

Was the error just something in the console log or did it pop up a message
during the read of the file? If the file didn't 'pass validation' that would
prevent the loading of the file. You could confirm this step by using
Debug->Validate XML file, it will read the file and report if it thinks the
format is ok. There could be two issues: some change in the program that
means it needs to translate the old format when initially reading it. Or the
validation could be at fault. Meaning the file is really ok, but the
validator has something mistaken.

Please upload the file to the 'problems being worked on' part of the user
group. Then we can check it out and see if it is something about the file or
JMRI that is causing your problem

Real quick would be telling if the validate says 'Ok' or not.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

This thread about problems importing a csv file interest me. Could somebody
post the files to the user group files so others could see? From reviewing
MS notes, there are some possible issues, more often poorly constructed csv
formatting. Since these are created from a script, it may be a few very
simple changes to make to the script create a file that doesn't cause issues
or needs for other tools. Over the decades I've seen a number of different
forms of 'almost right' csv files. All had very easy fixes.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org


Locked 4.11 to 4.14

 

Hi,

Just upgraded (extracted the files) on a Linux install to swap between 4.11 and 4.14. I'm getting an error on?jmri.managers.configurexml.DefaultRouteManagerXml string index is out of range. Any ideas what I've missed?

My layout is working, but my routes are not. When I click to open routes in the tables, they are not loaded (it's blank)

Cheers,
Scott.


Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

Hi Alan & James and a Happy New Year to you both.

Ken is correct in what he said that sometimes the .csv format when opened up by Excel will not save to any other format.

Whenever I open any .csv file my mac gives me a warning on the screen that the csv format is not stable and needs to be saved in a different format. Normally, these work very well and I get no problem with downloads from my bank etc.

However, in this particular case, the system did not like the created output of the script and would not let me save it in any format. I can try and recreate the error window and send it to you, if you wish. It wasn¡¯t until I loaded up ¡°ExcelMate¡± and called that up that the conversion was permitted or if I used Zamzar.

It must be remembered that I am running Windows 10 through Parallels on an iMac. The "Office for Mac" software is the always the latest because it is paid for monthly. However, the Windows 10 version that I use on the Windows partition comes as an upgrade from Windows 7/8.

It is no big! The problem is resolvable and has been resolved.

Dave

On 2 Jan 2019, at 11:50, Alan B. Pearce <alan.b.pearce@...> wrote:

The Script creates a .csv file that can be opened by Excel but not saved in another format other than .csv.
Huh? I have no problems saving a CSV file as a native excel file, after opening it in Excel. What is so magic about the files that the script generates that Excel cannot save it as XLS or XLSX?





Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

The Script creates a .csv file that can be opened by Excel but not saved in another format other than .csv.
Huh? I have no problems saving a CSV file as a native excel file, after opening it in Excel. What is so magic about the files that the script generates that Excel cannot save it as XLS or XLSX?


Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

I import caviar into Mac Numbers all the time . Never have problems. I have never used Excell or PowerPoint or Word, don¡¯t even own a copy. I just use Pages and Keynote and Numbers.

Jim

On Jan 2, 2019, at 03:02, Dave Roberts <dccdaveroberts@...> wrote:

Hi Ken,
A Happy New Year to you.

I agree with you. My machine warns me about converting the .csv to another format when it first opens the csv file in Excel but when I go to use the "Save As¡± I get an error message that says it cannot convert to xls format. I think this is because of the problem you highlighted in your option 2.

I ended up downloading the "ExcelMate" Tool from 2000 into my Windows 10 partition and that worked just fine.

I know that my "Office for Mac" is the latest version as I pay for it monthly. I think that my Windows version was from Windows 7 or 8.

Dave



On 2 Jan 2019, at 03:48, Ken Cameron <kcameron@...> wrote:

I've converted csv to xls files using Excel for years. It works the same two
ways I've always used. 1st method is open the csv but then use 'Save as...'
to make the xls file. 2nd method is using the text import tool into a native
xls file. I found this is needed for some csv files that have special
encoding due to things like imbedded commas and stuff that muck up MS idea
for csv files.

I've been using 2016 for a while and it still works for conversions.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org








Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

Hi Ken,
A Happy New Year to you.

I agree with you. My machine warns me about converting the .csv to another format when it first opens the csv file in Excel but when I go to use the "Save As¡± I get an error message that says it cannot convert to xls format. I think this is because of the problem you highlighted in your option 2.

I ended up downloading the "ExcelMate" Tool from 2000 into my Windows 10 partition and that worked just fine.

I know that my "Office for Mac" is the latest version as I pay for it monthly. I think that my Windows version was from Windows 7 or 8.

Dave

On 2 Jan 2019, at 03:48, Ken Cameron <kcameron@...> wrote:

I've converted csv to xls files using Excel for years. It works the same two
ways I've always used. 1st method is open the csv but then use 'Save as...'
to make the xls file. 2nd method is using the text import tool into a native
xls file. I found this is needed for some csv files that have special
encoding due to things like imbedded commas and stuff that muck up MS idea
for csv files.

I've been using 2016 for a while and it still works for conversions.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com
www.syracusemodelrr.org






Locked Re: Layout Editor Turnout control definition

 

Thanks, Bob.

The little light bulb is beginning to turn on dimly! My script running in JMRI will need to take the data identified for the JMRI labeled device, and translate that into something I can use to map inputs and outputs into my computer's railroad I/O RAM space. Is that right? The data are identified in JMRI by the JMRI IDs I'm creating when I generate tables for sensors, turnouts, blocks, and so on?

I'm planning to use EasyDCC for only train control, not for controlling turnouts or other devices. I'd rather control turnouts and other things from facia mounted control panels or tablets or smart phone type throttles. I've been using EasyDCC plug in throttles. I have six. EasyDCC wireless costs more than I want to spend. Using tablets or smart phones and JMRI instead, seems very attractive.

Using a C/MRI protocol would reduce the amount of programing I'd need to do. I haven't paid much attention to it, I'd started my computer control project before C/MRI was published. I considered using C/MRI, but didn't because I thought its hardware was inefficient, with separate power and? boards for each block. My hardware has (less) power control and occupancy detection for for blocks on each track board.I'm also multiplexing switch and detector inputs and LED driving outputs, not using static boards with separate hardware for each device. But, that doesn't mean the protocol won't work to transfer my data to and from JMRI and save me some work!

Don Weigt


Locked Re: Roster Images Upside Down

 

Paul,
Your comments are heading in the right direction.

Every Digital imaging device (cameras and scanners included) have a "normal"
orientation of the imaging device.

The majority of digital cameras (iPhone included) have an orientation sensing device to determine which way up you are holding the camera. Almost all cameras do not reprocess the image but simply set a Orientation tag value in the EXIF metadata incorporated in the image.

Many image reading devices/software respect the Orientation tag value and display the image with the correct rotation at display time.

Some email clients and web browsers may not respect the Orientation tag and as a result the image appears incorrectly.

I've never checked whether the image renderer(s) used by JMRI respect the Orientation tag and whether this has changed over JMRI versions. Also whether this is a platform-specific (Windows/Mac/Linux) problem.

I don't have time to do tests at present.
--
Dave in Australia

On 2 Jan 2019, at 3:29 PM, Paul Davidson <pdavidson@...> wrote:

May not be a player here but I have had that happen with pictures I took with my iPhone (turned sideways for landscape view) and then posted to web. I tried to fix it the original photo in a photo editor by rotating it then reposting it and it still was upside down.