Elvas Tower: Open Rails API - Elvas Tower

Jump to content

  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Open Rails API Rate Topic: -----

#21 User is offline   BB22210 

  • Fireman
  • Group: Status: Active Member
  • Posts: 177
  • Joined: 24-August 17
  • Gender:Male
  • Location:Earth
  • Simulator:OpenRail
  • Country:

Posted 12 November 2021 - 03:29 AM

Hello,
For those who succeed to extract datas from API/Web server do you know Why there are some duplicates datas returned by the API/web server (AMMETER, THROTTLE, SPEEDOMETER for example) ?
Not easy to catch the right value for the right arduino servo() :(
Thanks for your help.

Rgds
BB22210

#22 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,857
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 27 November 2021 - 01:02 AM

 BB22210, on 12 November 2021 - 03:29 AM, said:

Hello,
For those who succeed to extract datas from API/Web server do you know Why there are some duplicates datas returned by the API/web server (AMMETER, THROTTLE, SPEEDOMETER for example) ?


Hi Christophe,

No, I don't know why, but I can look into it.

Please send me a PM and attach the loco files.

#23 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,857
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 27 November 2021 - 12:29 PM

 BB22210, on 27 November 2021 - 04:44 AM, said:

I don't know what files to send you since all electrical SNCF/B/CFL loco like BB7200/15000/22200/21000/25500/6500/7100/8100 (also Sylium ones) use same configuration.

Please send me any loco that shows the problem so I can reproduce it.

#24 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,857
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 28 November 2021 - 10:29 AM

Hi Christophe,

I've sent you a PM so we can continue this privately.

#25 User is offline   Howky 

  • Fireman
  • Group: Status: Active Member
  • Posts: 247
  • Joined: 14-February 13
  • Gender:Male
  • Location:Czech Republic
  • Simulator:Open Rails
  • Country:

Posted 10 November 2022 - 03:01 AM

View PostBB22210, on 12 November 2021 - 03:29 AM, said:

Hello,
For those who succeed to extract datas from API/Web server do you know Why there are some duplicates datas returned by the API/web server (AMMETER, THROTTLE, SPEEDOMETER for example) ?
Not easy to catch the right value for the right arduino servo() :(
Thanks for your help.

Rgds
BB22210



The data is double because the webserver loads two control stations of one locomotive.

#26 User is offline   BB22210 

  • Fireman
  • Group: Status: Active Member
  • Posts: 177
  • Joined: 24-August 17
  • Gender:Male
  • Location:Earth
  • Simulator:OpenRail
  • Country:

Posted 10 November 2022 - 01:48 PM

 Howky, on 10 November 2022 - 03:01 AM, said:

The data is double because the webserver loads two control stations of one locomotive.

Hum ... not sure to understand "two control stations" ?

#27 User is offline   Howky 

  • Fireman
  • Group: Status: Active Member
  • Posts: 247
  • Joined: 14-February 13
  • Gender:Male
  • Location:Czech Republic
  • Simulator:Open Rails
  • Country:

Posted 10 November 2022 - 11:44 PM

First are the data from the first control panel (ST1) and then from the second control panel (2.ST)

Attached thumbnail(s)

  • Attached Image: obrazek.jpg


#28 User is offline   BB22210 

  • Fireman
  • Group: Status: Active Member
  • Posts: 177
  • Joined: 24-August 17
  • Gender:Male
  • Location:Earth
  • Simulator:OpenRail
  • Country:

Posted 10 November 2022 - 11:51 PM

 Howky, on 10 November 2022 - 11:44 PM, said:

First are the data from the first control panel (ST1) and then from the second control panel (2.ST)

Ok, it is clearer, but how do you know what is the active 1.ST or 2.ST upon loc direction ?
Rgds
BB22210

#29 User is offline   Howky 

  • Fireman
  • Group: Status: Active Member
  • Posts: 247
  • Joined: 14-February 13
  • Gender:Male
  • Location:Czech Republic
  • Simulator:Open Rails
  • Country:

Posted 11 November 2022 - 02:35 AM

The only way is to edit the cvf files.
e.g. delete one entry in the cvf.rv file for a test, and then it will be missing on the webserver. and determine that it is ST.2

  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users