Keyboard Shortcuts
Likes
- Jmriusers
- Messages
Search
Locked
Re: Web Server And Custom GUI
Hi Steve,
Thanks for the reply. But I think the fixes you suggest are beyond my limited novice capabilities. Note that everything works exactly as it should, including click position on the lists, if I use pnl.add(self.cb2) without the scrollpane. The problem then is , because I have to make the font large to make text selection practical on a touchscreen, I cannot display a long enough list. If I could scroll up and down within the frame that would give me what I want. Is that possible ? Thank for your help again. Dave |
|||||
Locked
Re: Decoder Pro 4.16 opens with Roster Screen Instead of with "Menu" Screen
Bob,
The "new" DecoderPro3 is just a different "look" and accesses the same underlying code as the legacy DecoderPro interface. Like you, I much prefer the legacy interface and have created an icon to launch it, using the directions located here:? HTH, Steve "Breezlys" |
|||||
Locked
Re: Running JMRI on networked PC's
I've done something similar, using google drive, but separate spaces, incase of corruption, and to avoid file lock problems. You can add to the startup "add action" -> "Rebuild Roster" to one or both machines, this way each time they're started they'll rebuild from all the individual files. Of course, this doesn't fix when an engine is changed while both machiens are running.? If thats a big enough issue, I suspect a script could run that at intervals forces a roster rebuild, but I've no clue how rto implement that. And I can imagine some downsides, such aas a person trying to aquire an engine at the same time the roster is nuked, so seeing no engines at all. On Tue, Sep 24, 2019 at 11:11 PM barrychinn <bechinn1@...> wrote: Hello everyone, |
|||||
Locked
Re: layout editor continuing route signal help needed
It seems the original problem is that the heads where reversed from how you wished them displayed. In a stupid-but-works solution, rotate the mast 180 degrees on screen (you'll need to wire it apporipriatly in the real world, of course). I'm using dwarf icons everyplace, so you just see the 'base' line at top, in the 1 place I had to do this. On Mon, Sep 23, 2019 at 11:57 PM Robin Becker <rbgroups@...> wrote: Dave, |
|||||
Locked
VSDecoder: questions for gurus
#vsdecoder
|
|||||
¿ªÔÆÌåÓýHi Marc, Charles, Dave H, Andrew & Michael ? Marc, thanks for going to the trouble to test the AVG then itemise the steps to get the latest download into my Windows 7 Laptop. I still needed to ¡°phone a friend¡± as I could not ¡°find¡± the appropriate files/folders etc or to even open up AVG. I told you I am computer illiterate. Using Marc¡¯s suggestions and my friends help, my procedure was: ? Left Click on AVG Icon from the Drop Down Box from the Toolbar R/H side. Select Menu Select the Quarantine Tab 3 Threats listed. Check Ticked the 4.17.4 File that also showed ¡°FileRepMalware¡± message. A ¡°Delete¡± Box was highlighted in Orange. Clicked on the Down Arrow to provide Options. Selected ¡°Restore and Add Exception¡± Waited a minute and there was message to say something close to ¡°Okay ¨C Completed¡± Selected my Downloads. Clicked on the JMRI 4.17.4 file and the my JMRI was upgraded. ? I didn¡¯t do anything with the? 2 other Quarantined file - JMRI works. I¡¯ll have to remember this above process to keep my JMRI up to date ¨C one version less than the latest beta version as Marc suggests. ? Michael, maybe your AVG/Avast is similar to mine and following my Steps above, might give you JMRI in the computers you¡¯re having trouble with. ? ? Once again Marc thanks for your help. ? Regards Marcus Layout Video Web Site ? ? ? ?
From: [email protected] [mailto:[email protected]] On Behalf Of forfoum@... ? Win 7 Home Prem N, Sp1.? ?
? |
|||||
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
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 |
|||||
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:
??? To many.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¡±. ??? 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 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.
??? 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.On the old computer, start JMRI and do ¡°Export Complete Roster¡± (Note ¡°complete¡±) ??? Only worked for single entry as above.That will ask for a location and then store a file there. ??? 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.Move that file to the new computer. 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, 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 |
|||||
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 |