Git Product home page Git Product logo

vatsimphp's People

Contributors

calumtowers avatar lblockken avatar lotfio avatar skymeyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vatsimphp's Issues

Planned Attributes not present if flightplan null

Hi Jelle,

Small difference (in my case BC) I found from upgrading from V2 to V2.0.2, based on my current code expecting there to always be planned_* attributes.

If the pilot's flight plan is null, some of the planned_ attributes seem to be missing on the pilot data object, where as previously I believe they we included blank (i.e. 'planned_depairport' => '')

Example:

Raw from VATSIM Datafeed v3
{"cid":1468017,"name":"Henry Trujillo KASH","callsign":"N550JG","server":"USA-EAST","pilot_rating":0,"latitude":42.78035,"longitude":-71.51487,"altitude":193,"groundspeed":0,"transponder":"1200","heading":211,"qnh_i_hg":29.72,"qnh_mb":1006,"flight_plan":null,"logon_time":"2021-01-04T19:50:05.0681001Z","last_updated":"2021-01-05T12:54:56.4542793Z"}

Received output from a dd inside $vatsim->getPilots()->each(function ($pilot) ...

^ array:15 [▼
  "callsign" => "N550JG"
  "cid" => "1468017"
  "realname" => "Henry Trujillo KASH"
  "latitude" => "42.78035"
  "longitude" => "-71.51487"
  "altitude" => "193"
  "groundspeed" => "0"
  "server" => "USA-EAST"
  "rating" => "0"
  "transponder" => "1200"
  "time_logon" => "20210104195005"
  "heading" => "211"
  "QNH_iHg" => "29.72"
  "QNH_Mb" => "1006"
  "clienttype" => "PILOT"
]

Failed build: date time conversion

Build is failing on Bamboo related to date time conversion:

07-Oct-2013 15:40:36 PHPUnit 3.7.27 by Sebastian Bergmann.
07-Oct-2013 15:40:36
07-Oct-2013 15:40:36 Configuration read from /home/bamboo/bamboo-home/xml-data/build-dir/VAT-NB-JOB1/phpunit.xml.dist
07-Oct-2013 15:40:36
07-Oct-2013 15:40:36 ............................................................... 63 / 164 ( 38%)
07-Oct-2013 15:40:36 .....................F......................................... 126 / 164 ( 76%)
07-Oct-2013 15:40:36 ......................................
07-Oct-2013 15:40:36
07-Oct-2013 15:40:36 Time: 450 ms, Memory: 7.75Mb
07-Oct-2013 15:40:36
07-Oct-2013 15:40:36 There was 1 failure:
07-Oct-2013 15:40:36
07-Oct-2013 15:40:36 1) Vatsimphp\DataParserTest::testConvertTs with data set #0 ('20130601000000', 1370044800)
07-Oct-2013 15:40:36 Failed asserting that 1370059200 is identical to 1370044800.
07-Oct-2013 15:40:36
07-Oct-2013 15:40:36 /home/bamboo/bamboo-home/xml-data/build-dir/VAT-NB-JOB1/tests/Vatsimphp/Parser/DataParserTest.php:176
07-Oct-2013 15:40:36 /usr/share/php5/PEAR/PHPUnit/TextUI/Command.php:176
07-Oct-2013 15:40:36 /usr/share/php5/PEAR/PHPUnit/TextUI/Command.php:129
07-Oct-2013 15:40:36
07-Oct-2013 15:40:36 FAILURES!
07-Oct-2013 15:40:36 Tests: 164, Assertions: 287, Failures: 1.
07-Oct-2013 15:40:36

Refactor Data Feed using primary objects

Since the data feed is now available as JSON and has more distinct and cleaned up data points, we should expose these directly using objects for better flexibility and ease of use.

Discrepancy with reporting of times

Since the last update, the format of datetime has changed and is no longer the format my tool expects to use.

Let me know if you need me to paste items from discord here.

Implement cache only mode

Cache only flag is available but it's a doing-nothing-machine for now. To avoid inline data downloads we want to split off this process using VatsimData::config['cacheOnly'].

UTF-8 problem

Seems like the output is not stored in UTF-8. In vatsim-data.json I find eg. this (even though my editor opens it as UTF-8):

"name": "Soulié LFJL",
"callsign": "FCYJMS",

A copy attached
vatsim-dataCOPY.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.