Author Topic: SBSplotter + HTTP webserver = SRV30003  (Read 8056 times)

junglejet

  • Air Cdre
  • *
  • Join Date: Mar 2009
  • Posts: 464
  • Country: de
SBSplotter + HTTP webserver = SRV30003
« on: February 07, 2010, 01:59:55 PM »
I have added a HTTP web server that maintains a flight table from port 30003 output.
HTTP requests can be made by web browser or an application.
A variety of data formats exists, including one HTML table option for the webbrowser.
The basic  SBSplotter functionality remained unchanged.

Here is the download page for SRV30003:
http://jetvision.de/sbs1.shtml

I am not aware of specialities of the ANRB. If somebody can advise if this works with ANRB, too, that would certainly helpful for some people

The basic usage is to support the development of simple network applications, namely
those that can pass firewalls without too much stress.
More details are here (from readme.txt)

Quote
SRV30003
========
This is an upgrade to SBSplotter V1.3
The SBSplotter software itself was not changed.
Only server functions were added. If you do not wish to operate a server there
is no need to play this software, but stay with SBSplotter V1.3

SRV30003 server software
========================
In parallel to SBSplotter operations SRV30003 exposes a HTTP server to the intranet
or internet. I.e. data can be easily accessed through applications or any webbrowser.

SRV30003 exposes a HTTP web server on port 30080.
This port cannot be changed.
All flight data are filled into a flight table and flight table data can be interrogated
by means of a HTTP request on port 30080.
If you want to access port 30080 from outside your local network you need most likely
to open this port on your router firewall and forward it.

Methods of Flight data interrogation:
=====================================

1) Standard reply scheme (default)
This format is used by some private networks.
To view data on your text browser enter
http://localhost:30080
Reply:
4CA64C,7425,53.27898,8.74983,255.0,221.5,3523,-1344,RYR3795,1265548675
Mode-S Alt  Lat      Long    GS    Track      V/S   C/S     Last seen time

Only flights position data will be displayed

Additional switches are available:
a) change delimiter to whatever character
http://localhost:30080?delim=:
Reply:
406015:37000:55.37901:8.66934:447.5:87.2:6232:0:EZY1989:1265548736

b) Append number of data set and status flag to default format
http://localhost:30080?stats=1
Reply:
3944F9,34975,53.17035,7.09277,451.9,44.0,7575,64,AFR2350,1265548798,11,2
Number of data set:
internal number, max 2000
Status flag:
1 - flight just activated, no messages yet received
2 - messages received
3 - position data lost
4 - signal lost

c) Append Mode-S flags to default format
http://localhost:30080?flags=1
Reply:
4CA76F,36775,52.84456,10.50171,452.0,90.8,2064,-1216,EIN33E,1265548911,0,0,0,0
Flags:
- Alert - Emergency - SPI - Onground

d) Show all flights
http://localhost:30080/?nopos=1
Reply:
3D2ACD,10950,,,,,0025,,DEOLP,1265549074
3C48EC,38975,51.98405,10.63957,444.0,89.9,2215,0,BER664E,1265549072
3944F9,34975,53.58893,7.75776,452.6,44.5,7575,0,AFR2350,1265549074
3C4E0B,37075,,,,,3517,,DLH7JV,1265549072

e) Show flights younger than a specific unix time
http://localhost:30080?since=1265549299

All switches can be combined, e.g. http://localhost:30080?nopos=1&flages=1&stats=1

2) Alternate display format used by DROID-S software
http://localhost:30080?droid-s=1
EIN33E:EI-ABC:A320:4CA76F:52.66681:11.97144:F160:117.2:387.8:-21:2064:SNN-CRK:0000

3) Table display for HTML browsers
http://localhost:30080?table=1
A more comfortable way to check the flight table

======================================================================================
« Last Edit: June 09, 2012, 04:29:08 PM by junglejet »

jannuh

  • AVM
  • *
  • Join Date: Sep 2009
  • Posts: 517
  • Country: nl
Re: SBSplotter + HTTP webserver = SRV30003
« Reply #1 on: February 07, 2010, 04:58:04 PM »
Yes, it also works with R.B.


« Last Edit: February 07, 2010, 05:01:47 PM by jannuh »

lucaberta

  • Gp Capt
  • *
  • Join Date: Jan 2010
  • Posts: 260
Re: SBSplotter + HTTP webserver = SRV30003
« Reply #2 on: February 08, 2010, 04:31:06 PM »
Great stuff JJ!

Just found what I believe is a bug, possibly local to my installation.  If I use the default URL:

http://192.168.1.2:30080

all I get is this error:

List index out of bounds (0)

But if I use something like this it works OK:

http://192.168.1.2:30080/?delim=,

Also, if I use any other switch like nopos, it works OK.  Looks like the default URL is not working in my case.  Does not seem to be browser-related, as I get the same error with both Firefox and Safari.

Thanks, Luca

junglejet

  • Air Cdre
  • *
  • Join Date: Mar 2009
  • Posts: 464
  • Country: de
Re: SBSplotter + HTTP webserver = SRV30003
« Reply #3 on: February 08, 2010, 06:22:14 PM »
Hi Luca,
it may be related to Italian locale settings. The Basestation output depends on your settings and may be misinterpreted.
Cheers
JJ

lucaberta

  • Gp Capt
  • *
  • Join Date: Jan 2010
  • Posts: 260
Re: SBSplotter + HTTP webserver = SRV30003
« Reply #4 on: February 08, 2010, 11:11:57 PM »
it may be related to Italian locale settings. The Basestation output depends on your settings and may be misinterpreted.
nope, that can't be.  I use Windows XP Pro in US English, I keep all my computers on English locale, even the keyboards are american english.  Has to be something else.

Will be glad to help you debug this, if you think it's relevant to look into it.  Not a big for me, as I found the workaround I described.

I am off for a week in the sunshine from tomorrow, when I am I will start to do some serious testing with Multi-EM, so we will be in touch...  ;)

Ciao, Luca

junglejet

  • Air Cdre
  • *
  • Join Date: Mar 2009
  • Posts: 464
  • Country: de
Re: SBSplotter + HTTP webserver = SRV30003
« Reply #5 on: June 09, 2012, 04:29:57 PM »
This entry above corrected

Quote
2) Alternate display format used by DROID-S software
http://localhost:30080?droid-s=1
EIN33E:EI-ABC:A320:4CA76F:52.66681:11.97144:F160:117.2:387.8:-21:2064:SNN-CRK:0000

junglejet

  • Air Cdre
  • *
  • Join Date: Mar 2009
  • Posts: 464
  • Country: de
Re: SBSplotter + HTTP webserver = SRV30003
« Reply #6 on: July 29, 2012, 03:46:40 PM »
Added this functionality:

Quote
3a) Table display for HTML browsers
http://localhost:30080?table=2
A more comfortable way to check the flight table, but only for active flights