¿ªÔÆÌåÓý

Date

Locked Re: Web Server And Custom GUI

 

David,
The /frame server does not handle embedded windows properly. The click positions do not take the "offsets" of parent widgets into account, so the clicks are off by the header depth, etc.

I see a couple of options for you:
1) Fix the /frame server. I tried to fix this quite a while back and failed. Perhaps you'll have better luck.
1a) Rig the /frame server client for your specific use. Copy the javascript to your user area and then hard-code the missing offsets as needed.?
2) Build your desired window as a JMRI panel and use the /panel server. It is supported and does a good job of mirroring elements into a live web page. Maybe handle the "scrolling" with a fixed array and "next" "prev" buttons to change the context.....?
3) Build your desired window client-side using javascript and jquery. Using the json websocket server to communicate with JMRI as needed. This would be the most flexible option, but without knowing more about what data you'd need to pass back and forth, this may or not be possible.
?
HTH,
? SteveT


Locked Running JMRI on networked PC's

 

Hello everyone,

We () have been running PanelPro / DecoderPro on networked computers.? One of the computers (SLHRS-Cab) runs PanelPro and is interfaced with the NCE system to run routes and control turnouts.? One of the other computers is attached to a SPROG and is used for programming decoders (SLHRS-Pgm) and?runs DecoderPro.? SLHRS-Pgm accesses (reads & writes)?the data files associated with the Roster from SLHRS-Cab.?In theory, updating roster files from either computer should be?available to be read correctly from either location.? In practice, updates from either location (sometimes?) necessitates rebuilding the roster at?the other computer.? I am speculating that because personal computers were?designed as 'single user',?most of the programs written for them don't have file / record sharing data integrity?algorithms built in.? As an example, what if more than 1 user accesses and tries to update the same?record at the same time?? As all of the?decoder files reside on the SLHRS-Cab computer, you wouldn't expect there to be any record deviations.

I don't know how the read / write?protocols are built into the DecoderPro program(s).??In a multi user environment, it was typical that for example, an inventory item would be read to find information relating to quantity on hand.?? While the?inquiry is being processed, it?can frequently happen that another user will inquire?or order that same part number - what is referred to as a data collision.??When the item is actually ordered, the?order entry program will read and lock the part number record preventing any other user om updating / writing that same part number.? The?order program would then update?/ write on the part number, then unlock the record, thus preventing simultaneous?read /?writes on the same record.? Does anyone have any information on this?? TIA /s/ Barry Chinn


Locked Re: Decoder Pro 4.16 opens with Roster Screen Instead of with "Menu" Screen

 

That changed a long time ago.
If you are really intent on having the old look use the PanelPro startup.
You could add buttons to the screen by changing your preference or just access DP features from the top menu.

--
Peter Ulvestad

JMRI Users Group Moderator - ( )
Tam Valley Group Moderator - ( )
Sprog-DCC Group Moderator - ( )
Edmonton Model Railroad Association -


Locked Re: Operations: saving Operations manual to my reader

 

Thanks Graeme,
That worked

Mike


Locked Decoder Pro 4.16 opens with Roster Screen Instead of with "Menu" Screen

 

All,

I am new to this group, but have been using JMRI for quite a few years. To get right to it, when I started with JMRI I was using ver 1.xx. I would open Decoder Pro and get a screen which said "Decoder Pro" and had various selections across the top - File,Edit, Tools, Roster etc. I upgraded the version several times and everything was fine. Recently, I purchased a new computer (Dell Inspiron 3670 running Win 10) and loaded JMRI Ver 4.16. Now when I start DecoderPro it opens with the Roster screen. I setup all my preferences along with the Withrottle. I can't seem to get that opening screen back.? Is this a new starting point which is now being used or am I missing something?

Thanks in advance for any help you can give me.

Bob Grimm


Locked Re: Possible roster problem #zimo

 

I have taken this problem as far as I can. I have duplicated Gerry's results.

I can control all my locos with the JMRI monitor "vthrottle" if I change it to 28 speed step mode from 128. But, I can't save that. Each time the loco is released and then selected again, it's back to 128 speed steps and can't control my loco until changed again to 28 speed steps.

Like Marc, I could find no way to change the WiThrottles to 28 speed steps, and they can't control my locos.

I would like JMRI throttles, including WiThrottles, to have the option to set and save each loco as 28 speed steps (and probably even 14 steps) instead of 128. I'm very reluctant to change out about 10 good decoders, and throw away about that many perfectly good, unused ones. I can't believe I'm the only JMRI user or would be user with this problem

If JMRI's throttles don't get 28 speed steps added as an option, then I'm going to make an inline filter to convert RS-232 128 step speed commands to 28.

My thanks to everyone who helped find what's happening. It sure had me confused! It's a relief to understand what's wrong.

Don Weigt
Connecticut


Locked Re: Web Server And Custom GUI

 

After a long absence I am once more having a stab at getting my custom GUI to work on an Android tablet using the JMRI webserver.

I have some success but am now stuck.

I am using something like the code below?to display a list using JList and add a scrollbar to each list with JScrollPane.

There are three issues:
?- The size of the list box displays 8 elements and I cannot seem to change that
?- The scroll bar width is too narrow on the tablet and is unusable - can I make the scroll bar width wider
?- Selecting an element from a list is?difficult?on the tablet???- the item selected from the list is not at the location?where you touch.

It all works ok if I use

pnl.add(javax.swing.JScrollPane(self.cb2))

without using JScrollPane but?I cannot access?all elements of the list?because?the list is too long to fit in the window.
If I could add a scrollbar to the panel rather than each list this may work - but I cannot see how.

Looking for help and options.

All the help in other online forums and documentation seems to?be for Python not Jython and examples do not work because syntax is different.

? def init(self):
??? frame = jmri.util.JmriJFrame("DispatcherB")
??? frame.setSize(2000, 1050)
??? frame.setLayout(java.awt.BorderLayout())
??? self.cb2 = javax.swing.JList(my_List)
??? self.cb2.setFont(java.awt.Font("Arial",java.awt.Font.PLAIN,32))
??? self.cb2.setSelectedIndex(0)
??? pnl = javax.swing.JPanel()
??? pnl.add(javax.swing.JScrollPane(self.cb2))
??? frame.add(pnl,java.awt.BorderLayout.NORTH)
??? btn = javax.swing.JButton('Apply',actionPerformed=self.cbSelect_web)
??? frame.add(btn,java.awt.BorderLayout.SOUTH)
??? frame.setVisible(True)


Locked Re: Subject: Downloading current roster to new computer

Jon Miller
 

¿ªÔÆÌåÓý

On 9/24/2019 9:36 AM, forfoum@... wrote:
Must give it a file name . no name, no save.

Marc,

??? See I suggested it was a cockpit error.? Tested and it works just fine.? Thanks guys!

-- 
Jon Miller
For me time stopped in 1941
Digitrax  Chief/Zephyr systems, 
SPROG, JMRI User
NMRA Life member #2623
Member SFRH&MS


Locked Re: Subject: Downloading current roster to new computer

Jon Miller
 

¿ªÔÆÌåÓý

On 9/24/2019 9:03 AM, Bob Jacobsen wrote:
You can export the individual roster entries and them import them, if there aren¡¯t too many.
??? To many.
Altenrately, you can do Help -> Locations, click the button to open the roster location and copy the contents of the ¡°roster¡± directory from one machine to the the roster directory on the other, then do a ¡°rebuild roster¡±.

??? This worked OK.? Curious why the other doesn't.

-- 
Jon Miller
For me time stopped in 1941
Digitrax  Chief/Zephyr systems, 
SPROG, JMRI User
NMRA Life member #2623
Member SFRH&MS


Locked Re: Subject: Downloading current roster to new computer

 

Not sure why that doesn¡¯t work. I just tried it and it seems OK, but of course that doesn¡¯t help you.

You can export the individual roster entries and them import them, if there aren¡¯t too many.

Altenrately, you can do Help -> Locations, click the button to open the roster location and copy the contents of the ¡°roster¡± directory from one machine to the the roster directory on the other, then do a ¡°rebuild roster¡±.

Bob

On Sep 24, 2019, at 8:35 AM, Jon Miller <atsfus@...> wrote:

Bob,
I tried to do this just to see but didn't seem to work.
On the old computer, start JMRI and do ¡°Export Complete Roster¡± (Note ¡°complete¡±)
Opened a window save and save in ("Export Complete Roster"). Selected "removable disk (E:)" and clicked save. Nothing happened. If I tried doing it with a single entry ("export roster entry") it would save that entry.

That will ask for a location and then store a file there.
Only worked for single entry as above.
Move that file to the new computer.
Did that but as above only worked for single entry. And when I tried to save that single entry it wanted a new name or to enter the old name manually again.
On the new computer, start JMRI and do a ¡°Import Complete Roster¡±. When ask, select that file.
See above. Would not work for a complete roster and if a single entry wanted a name. Used a USB flash drive. Flash drive is USB 3.0, Win7 computer is USB 2.0 However for moving JMRI around it doesn't seem to matter.

Win7 machine (SPROG) running JMRI 4.17.3 to Win10 machine (LocoNet simulator) running 4.17.4. That might be the problem but don't think so. It seems so easy but might be cockpit error.






--
Jon Miller
For me time stopped in 1941
Digitrax Chief/Zephyr systems,
SPROG, JMRI User
NMRA Life member #2623
Member SFRH&MS

--
Bob Jacobsen
rgj1927@...


Locked Re: Subject: Downloading current roster to new computer

Jon Miller
 

¿ªÔÆÌåÓý

Bob,
??? I tried to do this just to see but didn't seem to work.
On the old computer, start JMRI and do ¡°Export Complete Roster¡±  (Note ¡°complete¡±)
??? Opened a window save and save in ("Export Complete Roster").? Selected "removable disk (E:)" and clicked save.? Nothing happened.? If I tried doing it with a single entry ("export roster entry") it would save that entry.

That will ask for a location and then store a file there.
??? Only worked for single entry as above.
Move that file to the new computer.
??? Did that but as above only worked for single entry.? And when I tried to save that single entry it wanted a new name or to enter the old name manually again.
On the new computer, start JMRI and do a ¡°Import Complete Roster¡±. When ask, select that file.

??? See above.? Would not work for a complete roster and if a single entry wanted a name.? Used a USB flash drive.? Flash drive is USB 3.0, Win7 computer is USB 2.0 However for moving JMRI around it doesn't seem to matter.

??? Win7 machine (SPROG) running JMRI 4.17.3 to Win10 machine (LocoNet simulator) running 4.17.4.? That might be the problem but don't think so.? It seems so easy but might be cockpit error.




-- 
Jon Miller
For me time stopped in 1941
Digitrax  Chief/Zephyr systems, 
SPROG, JMRI User
NMRA Life member #2623
Member SFRH&MS


Locked Re: Possible roster problem #zimo

 

Bob, I'm confused. Sleeping on it didn't help.....

Your analysis is clear, except for one thing. You seem to be saying when Gerry set the screen throttle to 28 speed steps the message was in 128 step format, and when set for 128 speed steps the message was in 28 step format. Is that right? And that the LE103s work when the message is in 128 step format, when they can't do 128 steps, but don't work when the message is in 28 step format? This is where my brain goes "tilt" and my eyes cross!

I hope somehow I'm parsing this wrong, but I've read it over and over, and it still seems reversed to me..... Please explain again.

Don Weigt
Confused in Connecticut


Locked Re: FileRepMalware message when I try to execute the latest downloads. #malware

 

Hi Marc,
Thanks for the info, however I'm still having problems. When I try to install 401704(and 4.17.3 for that matter) I get the following Windows notice: Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item". This is then followed by Avast putting the file in the Security chest. I have tried the Avast add exception? as you recommended without success. I have tried loading? with Windows firewall and virus protection turned off; still the same result. I have been able to upgrade to? 4.17.2.
Many thanks for your help, Mike.

On Tuesday, 24 September 2019, 03:35:59 BST, <forfoum@...> wrote:


On Sat, Sep 21, 2019 at 06:34 PM, MICHAEL PAYNE wrote:
I've been having the same problem, I cannot install on either of my Win 10 machines. I am using Avast anti virus.
Michael,? You should pick up the phone and call Avast. this will give you a good idea of how great they are at supporting you or not.?

The problem is AVAST and nothing else.? In fact it is not a problem, just the Anti-Virus doing it's intended job, protecting your data.

If you paid for the software they should support you and show you how to add the NEW JMRI Version? to the exclusion file or add it to the Whitelist.



Other option, dedicate one computer to JMRI and keep it off the NET. KIll the anti-virus. You will not be bothered with false positives any more.

Marc


Locked Re: Load and save creating errors in layout editor

 

I recently had the same problem. Just two wrong user clicks and user has problems. This is an application error and should be fixed.

--
Petr ?¨ªdlo
Czech Republic


Locked Re: Load and save creating errors in layout editor

 

Thanks Dave

that would be it I was drawing a shape but then changed my mind and deleted it. must not have deleted properly.

Thanks
Tim


Locked Re: Operations: saving Operations manual to my reader

 

¿ªÔÆÌåÓý

Mike,

Once Operations Pro is showing

Select (top right hand 3 vertical dots) "Share" or "Print"
Select your printer from the available share list.
Click on the printer and select "Save as PDF"

Hopefully yours is similar to mine.

Regards
Graeme

Get


From: [email protected] <[email protected]> on behalf of gnguyincalifornia <gnrrguy@...>
Sent: Tuesday, September 24, 2019 3:04:54 PM
To: [email protected] <[email protected]>
Subject: [jmriusers] Operations: saving Operations manual to my reader
?
I want to save the Ops manual to my reader (samsung android) so I can read it while on a long cruise.??
I cannot find it in PDF format and each time I try to save it from within the manual I end up only saving the link to the web page.? I will not have internet while on the cruise and want to just read it.? Figure that is a better use of my time than reading another Kindle detective novel :-)
Thanks
Mike Stewart
Oakley, CA


Locked Re: Signal Mast Appearance definition file

 

FYI -- Czechoslovak State Railways -- mechanical signals


--
Petr ?¨ªdlo
Czech Republic


Locked Operations: saving Operations manual to my reader

 

I want to save the Ops manual to my reader (samsung android) so I can read it while on a long cruise.??
I cannot find it in PDF format and each time I try to save it from within the manual I end up only saving the link to the web page.? I will not have internet while on the cruise and want to just read it.? Figure that is a better use of my time than reading another Kindle detective novel :-)
Thanks
Mike Stewart
Oakley, CA


Locked Re: Load and save creating errors in layout editor

 

Tim,

I have been doing some more research on the problem. ?It appears that you have an incomplete shape on your panel. ?The shape section probably looks like the following:

? ? <layoutShape ident="S2" type="Open" level="3" linewidth="3" lineColor="#000000" fillColor="#404040"?class="jmri.jmrit.display.layoutEditor.configurexml.LayoutShapeXml">
? ? ? <points />
? ? </layoutShape>

This occurs when you start creating a shape but never finish it. ?If this matches what you see, you also need to delete the <layoutShape¡­ and </layoutShape> lines.

Dave Sand

?

On Sep 23, 2019, at 9:05 PM, Dave Sand <ds@...> wrote:

Tim,

If you are running Windows, use the file manager and navigate to C:\Program Files (x86)\JMRI\xml\schema\types and get the file size for editors.xsd.

Also, let us know the version of Windows, the previous JMRI version and the current JMRI version.

Dave Sand



On Sep 23, 2019, at 4:23 PM, tim_p1964@... wrote:

Hi all


I am getting an error when I have saved a panel in JMRI after adding things.

it appears to add into the layout shape section of the config file the words "Points/" before the end of the section.

when you try to reload the panel it refuses quoting the error as that particular line.

i have routinely being going into the file with word pad and deleting the word "Points/" before reloading it is then OK.

I cant seen to figure out why it is doing it??

help required please

Tim
Top







Locked Re: Possible roster problem #zimo

 

It will take me at least until tomorrow to wrap my mind around all this, but there's a lot of good info in these messages. I think you're saying I can't control my LE103s because JMRI is using 128 speed step messages for my 28 speed step decoders. If that's what's wrong, is there no way to change it?

At the moment, I'm confirming my decoders are all programmed for 28/128 speed steps, and since the LE103s don't support 128, that means they're running on Vstart, Vmid, and Vmax in 28 step mode.

I have yet to control the motor in a loco with an LE103, although I never tried 14 speed steps.

If I replaced those ten or so decoders, I'd probably use the ten Zimo MX-61s or 63s I have. But, would you believe I have the same problem with the one Zimo equipped loco I tested? I can control functions, but not the motors. These are nice decoders, quite small, good ratings, about six functions, silent drive and with back EMF. Now you are telling me I should scrap not only my LE103s, but also my MX-61s and 63s! I would hate to trash 20 perfectly good decoders because JMRI can't send properly formatted commands.... See money circling the drain! Uggh!

Maybe I need to build an RS-232 box to translate 128 speed step commands to equivalent 28 step commands. Shouldn't be too hard with a PIC processor in a project case!

Marc, Yes, I'm using WiThrottle on a tablet, mostly. But, I've had the same results using a JMRI throttle on the RPi's monitor. I don't understand your question about how Gerry is changing speeds. The monitor throttle I use has a slide for speed, the WiThrottle has a slide and buttons to increment and decrement speed.

Don Weigt
Connecticut