¿ªÔÆÌåÓý

Date

Locked Re: NMRA/JMRI/Arduino

 

The DCC++ interface is supported by JMRI, details . ?This was designed to be used in conjunction with an Arduino base station, and the Arduino software that implements a DCC base station is readily available if you search for it. ?I've used the interface for an Arduino based project and have more in mind, but for various reasons I've implemented my own Arduino application, primarily because I've used the Arduino to interface with the hardware directly rather than via DCC.

Regards

Paul


Locked Re: Signals

 

Hi Gary,

Here's tutorial how to use the indicator of signal masts . But it is unnecessarily complicated for your needs.

If your signal mast use only two states/aspects signals, then you can make a simple two-status indication, for example from the red/green lamps from the icons. The indicator light is then added to the panel as well as the switch and will be controlled in the same way.

Good luck

--
Petr ?¨ªdlo
Czech Republic


Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

Dave

That should be the only line that needs changing.?
As far as signalling goes at the time I was mostly interested in just a list as I didn't have all that many signals.? However, finding which ones are in use is a different issue because you can have virtual signals which are not on a panel but are used. Signal logic I THINK is deleted when you delete a mast and cannot be created in isolation of signals.
When I looked at this I do remember my head spinning trying to track down all the dependencies - they are many and varied!! Hats off to the developers who keep track of it all
However it is something I will be looking at because I am in the process of designing a layout that will use a lot of virtual signal to aid automatic running in a motive power depot (a lot of turnouts!) and am already aware of redundant items?
I'll keep you posted if I get anywhere

John


Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

¿ªÔÆÌåÓý

John,

I have read through the program listing for ¡°Tables print.py¡± and as far as I can remember from my programming days, many, many years ago now, it would appear that the only line I need to change is:

self.path = ¡°C:/Users/teamw_000/Documents/Great Central/Electronics/spreadsheets/"

To suit my requirements this should read:

self.path = ¡°C:/Users/SDR/Documents/spreadsheets/¡°

Since you are well into signalling, I imagine that during the process of signalling set up, several mistakes were made that ended up with Names no longer required or misspelt etc that were never used in the Master xml file. Is there any way to identify these records so that they can be deleted safely?

Dave

On 31 Dec 2018, at 08:59, Dave Roberts via Groups.Io <dccdaveroberts@...> wrote:

Good Morning John,

Thanks for the update. Dave Sand has confirmed that with regard to both the Turnout and Block Tables, that any entry with just two connection showing is the default set when the record was created. I am hoping that others with a detailed knowledge of the other Tables will jump in and confirm the default settings for the other Tables so that unused records can be deleted as not being used by the Master xml file.

Dave


On 31 Dec 2018, at 01:32, john Wragg <teamwragg@...> wrote:

Hi Dave
I thought I had better check out the script as I hadn't used it for about a year and wrote it for my own use (You don't have to worry about such niceties as testing:) ). I found a bug with blocks with no named sensor (all mine had named sensors) I have uploaded a fixed version. You should use that.

If you find any more then give me a shout

John



Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

¿ªÔÆÌåÓý

Good Morning John,

Thanks for the update. Dave Sand has confirmed that with regard to both the Turnout and Block Tables, that any entry with just two connection showing is the default set when the record was created. I am hoping that others with a detailed knowledge of the other Tables will jump in and confirm the default settings for the other Tables so that unused records can be deleted as not being used by the Master xml file.

Dave


On 31 Dec 2018, at 01:32, john Wragg <teamwragg@...> wrote:

Hi Dave
I thought I had better check out the script as I hadn't used it for about a year and wrote it for my own use (You don't have to worry about such niceties as testing:) ). I found a bug with blocks with no named sensor (all mine had named sensors) I have uploaded a fixed version. You should use that.

If you find any more then give me a shout

John


Locked Re: Buffer Signal Mast

 

I have this working now.
First off? I had completely forgotten the procedure to add a buffer mast.
Once I did it as per the instructions - it still did not work.
I found that if I added an anchor , added a segment, then changed the end anchor to a buffer and added the mast it did not work.
But if added a buffer, then the segment, then added the mast to the buffer it worked.
So it did not work if I changed the anchor to a buffer but it did if I added the buffer directly.
Anyway - it has worked now ...


Locked Printing out a JMRI LE and CPE panel?

 

I know how to print out a panel (multi pages) using a print screen method but I would like to see a feature in PanelPro that avoids that hassle. I would like to see a menu option that will print the panel even if it is in multiple pages...I have a lot of tape. Does one already exist and I missed it?
Paul D


Locked Re: Panel displayed on Computer screen is missing some of the tracks?

 

one thing I noticed today is that if I went to the panel and zoom in / out to get all my tracks to show on the screen. then open up Options and select "save location and Size" then restart. when it restarts the panel is fine. Not sure what causes this?


Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

Hi Dave
I thought I had better check out the script as I hadn't used it for about a year and wrote it for my own use (You don't have to worry about such niceties as testing:) ). I found a bug with blocks with no named sensor (all mine had named sensors) I have uploaded a fixed version. You should use that.

If you find any more then give me a shout

John


Locked Re: Parse Error

 

Still geting the message
Steve


Locked Re: NMRA/JMRI/Arduino

SettleDown
 

Thanks Gerry.? Look forward to hearing if its available and may also look for the NMRA mag but not sure if I've ever seen it in Aus.

Have a Happy New Year.

Graham - @SettleDown


Locked Re: NMRA/JMRI/Arduino

 

I¡¯ve asked the NMRA editor whether I am allowed to post it or otherwise distribute. ?NMRA takes the publishing rights but there is still the ¡°fair use¡± doctrine so hopefully I can send or link to the JMRI web site and/or group. ?Will let you know as soon as I do.

in the meantime, there are many, many articles and videos on the web, including some that specifically discuss use of Arduinos with JMRI. ?I wrote my article because I wanted to spur interest among people just getting started with these very useful technologies and thought NMRA Magazine would be a good place for that.

Jerry G
___________________________________
jerryg2003@...


Locked Re: Update JMRI Being Treated as First Time User?

 

Tom,

Had you been launching DecoderPro or PanelPro before? While each has a
separate launcher, either could access your profiles. I suspect this is
where you crossed up.

The other is that the system now will see that a connection failed and
prompt to see what you want to do right then. One of the options it leads
you to is editing your connection. It also gives an easy way out to do
things like 'connect stuff'. Might this new part be what you saw?

-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

 

¿ªÔÆÌåÓý

John,

Thank you for the download. I will look at it in the morning and edit it to suit my requirements, I hope!

Dave


On 30 Dec 2018, at 22:22, john Wragg <teamwragg@...> wrote:

Hi Dave

I have just uploaded the script to the files/script examples folder. It is called Table print.py
It does have the save path hard coded in at the start so you will need to edit that for your own set up.
If you haven't got a python editor then use something like notepad++. Some text editors mess up the indentations which python does not like
To run python scripts open the main screen (I use panelpro) In the pull down menu called panels there is an option to run scripts. You will need to browse to where you have stored the script and then just run it. In theory it should produce a number of csv files for blocks, turnouts, sections, sensors, signal masts and signal mast logic. (those were the ones I was interested in) Only the blocks and turnouts indicate if they are on a panel. I am still working out how to check for sensors etc

Let me know if you have any issues with it or if you need anything further in that direction

John


Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

Hi Dave

I have just uploaded the script to the files/script examples folder. It is called Table print.py
It does have the save path hard coded in at the start so you will need to edit that for your own set up.
If you haven't got a python editor then use something like notepad++. Some text editors mess up the indentations which python does not like
To run python scripts open the main screen (I use panelpro) In the pull down menu called panels there is an option to run scripts. You will need to browse to where you have stored the script and then just run it. In theory it should produce a number of csv files for blocks, turnouts, sections, sensors, signal masts and signal mast logic. (those were the ones I was interested in) Only the blocks and turnouts indicate if they are on a panel. I am still working out how to check for sensors etc

Let me know if you have any issues with it or if you need anything further in that direction

John


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: Table print .py

Uploaded By: john Wragg

Description:
Script to print out tables. Also indicates if blocks and turnouts exist on layout panels. Writes results to csv files. One for each table

You can access this file at the URL:
/g/jmriusers/files/Script%20examples/Table%20print%20.py

Cheers,
The Groups.io Team


Locked Update JMRI Being Treated as First Time User?

 

I just downloaded and installed production release 4.14 (replacing test version 4.11.7).? I installed and started up while not connected to my Loconet.? It started as if I was a new user to DecoderPro, with a Set Up Wizard screen welcoming me as a first time user.? I stopped at that point and restarted connected to my DCC system Loconet system but still started up as a new user with the Set Up Wizard.? I stopped again at that point.

I find my previous roster and other files in Documents and Settings under both a JMRI folder and JMRI backup folder.? I am still using Windows XL and Java 1.1.8_161
Thanks,
Tom Peterman


Locked Re: MQTT Connection in JMRI

 

Oh, thanks Dave, my misunderstanding.

Dave, Brisbane Australia


Locked Re: NMRA/JMRI/Arduino

SettleDown
 

Thanks for the tip John - got it and will take a look through the various sites/docs asap.? I was particularly interested in @JerryG 's recent article though as I need a starter for 10 !

Any clues where this can be found ?

Cheers

Graham - @SettleDown


Locked Re: UNWANTED BLOCKS & TURNOUTS IN LISTING

 

¿ªÔÆÌåÓý

Dave,

Thanks, I still learning Jython and JMRI.

Lot to learn with new stuff being added all the time.

I like it very much!

Ron Atherton?



Sent from my U.S.Cellular? Smartphone

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

Ron,

Jython compilation errors are displayed on the JMRI system console.

Dave Sand



> On Dec 30, 2018, at 1:57 PM, 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)
> To: [email protected]
> 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
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>