05-04-2011, 12:42 AM
(04-04-2011, 08:50 PM)kizza42 Wrote:(01-04-2011, 08:23 PM)yarrumevets Wrote: Now, here's a challenge for you Kieran ...They don't seem to have a web API for me to piggyback on
A flashing green light somewhere up near the banner on the main forum page, which indicates that one of the members has a Phoenix PRCAC session up and running, to be updated in real-time! Now that would take some scripting
I was quite taken with this idea, and spent a bit of time tonight trying a way that's just mad enough to perhaps work...
Using wireshark, captured the UDP stream that Phoenix itself sends when establishing a connection, and made a quick-and-dirty Python script to replay the stream and capture the response back - seem to be able to extract the list of servers/ips/names/etc despite the API itself being entirely opaque.
Kieran, are we able to run a Python script every few minutes (i.e. cron) on the web server? If so, assuming such a script can be made to work reliably, it might be one approach (i.e. get it to output the status/# members flying on the PRCAC field to file every few minutes, and slurp that in to the forum html)
<table width="100%" border="0"><tr>
<td>
<span title="No longer arboreally challenged!">Parkzone Stinson SR-10 </span>
Extra-300S EPP
<del>F-18 Blue Angels 64mm EDF</del>
<span title="Why won't it die?!">HK Mini Cessna EPO</span>
Spektrum DX6i - Mode 1</td>
<td valign=top>
Parkzone T-28 Ultra Micro
E-Flite UMX BEAST
SRL Index
CloudsFly / AXN Floater
"2x6" basla/ply kit built glider
SBach 1000mm</td>
<td valign=top>
Skyartec Cessna 182 (small UAV)
UAV-168 (bigger UAV)
<span title="2nd-hand; rebuild on-hold">"BigBoy" Hugin (biggest UAV)</span>
<span title="For invading small countries">X-8 flying wing</span></td>
</tr></table>