¿ªÔÆÌåÓý

Locked Attributes LastOperated and OperatingDuration


 

Happy Holidays, Of my 30 engines in the JMRI roster, half have a date for the LastOperated attribute, and of that half, only half have the date updated when I run the engine.
My question is: What action, or sequence of events,? in the throttle triggers the updating of the LastOperated timestamp. I love having this information, and wish I could get it on all my engines.
A while back Dave from Australia shared how to get the information to display on the roster, now I want it even more.? ? ??

JMRI v 4.13.5
Java 10.0.2
Windows 10
Digitrax Zephyr with PR3
Using WiThrottle? to run the engines.

Thank you.
Peter in North Carolina.


 

There might be a bug here. Could you check something for me?

1) For one of the locomotives that¡¯s working right, select the roster entry in the DecoderPro roster, then click ¡°Labels & Media¡± in the lower right. Then pick the Roster Media pane, and look at the bottom section labeled ¡°Roster custom attributes¡±. What¡¯s there? Are then lines under the Name/Value headings?

2) Now do the same for one that¡¯s not updating. What¡¯s there?

Thanks!

Bob

On Dec 14, 2018, at 7:59 AM, hpj@... wrote:

Happy Holidays, Of my 30 engines in the JMRI roster, half have a date for the LastOperated attribute, and of that half, only half have the date updated when I run the engine.
My question is: What action, or sequence of events, in the throttle triggers the updating of the LastOperated timestamp. I love having this information, and wish I could get it on all my engines.
A while back Dave from Australia shared how to get the information to display on the roster, now I want it even more.

JMRI v 4.13.5
Java 10.0.2
Windows 10
Digitrax Zephyr with PR3
Using WiThrottle to run the engines.

--
Bob Jacobsen
rgj1927@...


 

On the ones that have no LastOperating date, when displaying the Roster -> Labels & Media -> Media the Name\Values are blank. For the ones that have a LastOperating date the same display shows the LastOperating date and duration in the Name\Value part of the display.? I just ran an engine that displayed a date from a month ago and the date did not update. I have tried putting the information into the xml file for one of the engines that showed nothing. even though it would display, the throttle would not update it.?
Just now doing more experiments, it seems that the on-screen throttle will update the LastOperated timestamp where as using WiThrottle does not. Interesting.

Peter in North Carolina ? ? ? ? ?

? ? ?


 

I think the problem is that the OperatingDuration value is missing or invalid, and that¡¯s tripping a bug that preventing the update.

You could try adding an OperatingDuration line with a value of 0. Click on the periods under Name, enter OperatingDuration, then click on the right side and enter 0. Don¡¯t forget to save to roster.

The bug fix will be in the JMRI 4.15.1 test release in a couple weeks, or you can try the most recent development version from

Bob

On Dec 14, 2018, at 10:01 AM, hpj@... wrote:

On the ones that have no LastOperating date, when displaying the Roster -> Labels & Media -> Media the Name\Values are blank. For the ones that have a LastOperating date the same display shows the LastOperating date and duration in the Name\Value part of the display. I just ran an engine that displayed a date from a month ago and the date did not update. I have tried putting the information into the xml file for one of the engines that showed nothing. even though it would display, the throttle would not update it.
Just now doing more experiments, it seems that the on-screen throttle will update the LastOperated timestamp where as using WiThrottle does not. Interesting.

Peter in North Carolina


--
Bob Jacobsen
rgj1927@...


 

When I added the two fields from the Roster-> Labels & Media->Media screen replacing the three dots

In the Roster.XML we have
?? <attributepairs>
??????? <keyvaluepair>
????????? <key>LastOperated</key>
????????? <value>2018-12-14T21:07:44Z</value>??? ( I keyed in the ISO timestamp from another entry )
??????? </keyvaluepair>
??????? <keyvaluepair>
????????? <key>OperatingDuration</key>
????????? <value>0</value>
??????? </keyvaluepair>
????? </attributepairs>

and in the 365.xml ( the locomotive xml )? we find
? <attributepairs>? 365.xml
????? <keyvaluepair>
??????? <key>LastOperated</key>
??????? <value />???????? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ( Note the space after the word value )
????? </keyvaluepair>
????? <keyvaluepair>
??????? <key>OperatingDuration</key>
??????? <value>0</value>
????? </keyvaluepair>
??? </attributepairs>

I have not observed an update when going through WiThrottle, and only sometimes with the on-screen throttle. Could be as you suggest an invalid XML or value within the XML. ?

Should the values get updated when going through WiThrottle?

Thank you
Peter in North Carolina


? ?