Cleanup of sample data and date/time parsing
This commit is contained in:
parent
4fc30ec4bc
commit
bd7bd7e802
@ -47,497 +47,3 @@ acars:
|
||||
lon: -74.800344
|
||||
created_at: now
|
||||
updated_at: now
|
||||
- id: 7e5Q5wlxBpxe
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4314'
|
||||
lon: '28.1399'
|
||||
heading: '251'
|
||||
altitude: '1040'
|
||||
vs: '-950'
|
||||
gs: '62'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:06:36'
|
||||
updated_at: '2018-02-21 20:06:36'
|
||||
- id: 9aAN5XQ7y6Ob
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4169'
|
||||
lon: '28.1202'
|
||||
heading: '238'
|
||||
altitude: '350'
|
||||
vs: '-200'
|
||||
gs: '58'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:08:06'
|
||||
updated_at: '2018-02-21 20:08:06'
|
||||
- id: aADPEZ6kR81e
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: 'Brakes are Released'
|
||||
lat: '36.4004'
|
||||
lon: '28.0689'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:02:47'
|
||||
updated_at: '2018-02-21 20:02:47'
|
||||
- id: aOYypxgnx1Nd
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: 'Brakes are On'
|
||||
lat: '36.4004'
|
||||
lon: '28.0689'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:02:37'
|
||||
updated_at: '2018-02-21 20:02:37'
|
||||
- id: azpKgO7O4r2d
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4097'
|
||||
lon: '28.1016'
|
||||
heading: '255'
|
||||
altitude: '120'
|
||||
vs: '-250'
|
||||
gs: '61'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:09:06'
|
||||
updated_at: '2018-02-21 20:09:06'
|
||||
- id: b826rZMqoKLe
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4159'
|
||||
lon: '28.1218'
|
||||
heading: '70'
|
||||
altitude: '1370'
|
||||
vs: '700'
|
||||
gs: '92'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:05:06'
|
||||
updated_at: '2018-02-21 20:05:06'
|
||||
- id: bDk9KjqgQxka
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4010'
|
||||
lon: '28.0711'
|
||||
heading: '70'
|
||||
altitude: '20'
|
||||
vs: '0'
|
||||
gs: '52'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:03:06'
|
||||
updated_at: '2018-02-21 20:03:06'
|
||||
- id: bmZQWxqo2D0d
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: 'Airborne and Beacons are off'
|
||||
lat: '36.4018'
|
||||
lon: '28.0739'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:03:15'
|
||||
updated_at: '2018-02-21 20:03:15'
|
||||
- id: bo2QWzjqBg3a
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: "Landed @ 59 Knots with -90 Vertical Speed With a heading of 251 and with 1.2416 G Force\nArrival Weather: KJFK 211951Z 19007KT 10SM FEW033 FEW070 FEW270 18/12 A3022 RMK AO2 SLP233 T01780122"
|
||||
lat: '36.4075'
|
||||
lon: '28.0929'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:09:33'
|
||||
updated_at: '2018-02-21 20:09:33'
|
||||
- id: bqxYWBQ0yrpa
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: 'Engine 1 Started'
|
||||
lat: '36.4004'
|
||||
lon: '28.0689'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:02:38'
|
||||
updated_at: '2018-02-21 20:02:38'
|
||||
- id: bW67AJQwJRWa
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: 'Flaps 3 Selected at 1360ft and 101kts'
|
||||
lat: '36.4287'
|
||||
lon: '28.1486'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:06:10'
|
||||
updated_at: '2018-02-21 20:06:10'
|
||||
- id: bYEvDL73AmMb
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4042'
|
||||
lon: '28.0820'
|
||||
heading: '70'
|
||||
altitude: '200'
|
||||
vs: '-50'
|
||||
gs: '78'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:03:36'
|
||||
updated_at: '2018-02-21 20:03:36'
|
||||
- id: dG65NmMk1N8b
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4124'
|
||||
lon: '28.1113'
|
||||
heading: '241'
|
||||
altitude: '230'
|
||||
vs: '-250'
|
||||
gs: '62'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:08:36'
|
||||
updated_at: '2018-02-21 20:08:36'
|
||||
- id: dNk9owOZwGLe
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4117'
|
||||
lon: '28.1075'
|
||||
heading: '70'
|
||||
altitude: '990'
|
||||
vs: '650'
|
||||
gs: '88'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:04:36'
|
||||
updated_at: '2018-02-21 20:04:36'
|
||||
- id: dR6ovAlxj1Ed
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: 'Airborne and Navigation Lights are off'
|
||||
lat: '36.4020'
|
||||
lon: '28.0744'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:03:16'
|
||||
updated_at: '2018-02-21 20:03:16'
|
||||
- id: e73LqZ9Z87we
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: 'Flaps 2 Selected at 20ft and 0kts'
|
||||
lat: '36.4004'
|
||||
lon: '28.0689'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:02:48'
|
||||
updated_at: '2018-02-21 20:02:48'
|
||||
- id: e9rQvZ9095Da
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: 'Flaps 0 Selected at 190ft and 69kts'
|
||||
lat: '36.4037'
|
||||
lon: '28.0802'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:03:32'
|
||||
updated_at: '2018-02-21 20:03:32'
|
||||
- id: egJLWonpgwZd
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4203'
|
||||
lon: '28.1366'
|
||||
heading: '70'
|
||||
altitude: '1500'
|
||||
vs: '-150'
|
||||
gs: '97'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:05:36'
|
||||
updated_at: '2018-02-21 20:05:36'
|
||||
- id: egJLWonx6p3d
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4274'
|
||||
lon: '28.1487'
|
||||
heading: '6'
|
||||
altitude: '1390'
|
||||
vs: '-450'
|
||||
gs: '102'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:06:06'
|
||||
updated_at: '2018-02-21 20:06:06'
|
||||
- id: egJLWopjvKDd
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: 'Beacon lights are off and engine is started'
|
||||
lat: '36.4004'
|
||||
lon: '28.0689'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:02:39'
|
||||
updated_at: '2018-02-21 20:02:39'
|
||||
- id: ejRqWrYE8Nye
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4080'
|
||||
lon: '28.0949'
|
||||
heading: '70'
|
||||
altitude: '640'
|
||||
vs: '400'
|
||||
gs: '81'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:04:06'
|
||||
updated_at: '2018-02-21 20:04:06'
|
||||
- id: erkRWD2wROBa
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: "Took off @ 68 Knots and Flaps at Position 2 With a heading of 70 Degrees \nDeparture Weather KAUS 211953Z 35018KT 2SM R17L/3500VP6000FT -RA BR OVC010 05/05 A3017 RMK AO2 SFC VIS 2 1/2 SLP216"
|
||||
lat: '36.4018'
|
||||
lon: '28.0736'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:03:14'
|
||||
updated_at: '2018-02-21 20:03:14'
|
||||
- id: erkRWDmNz92a
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4216'
|
||||
lon: '28.1277'
|
||||
heading: '210'
|
||||
altitude: '440'
|
||||
vs: '-250'
|
||||
gs: '55'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:07:36'
|
||||
updated_at: '2018-02-21 20:07:36'
|
||||
- id: kazvG4B4z0Oa
|
||||
pirep_id: pirepid_2
|
||||
type: '2'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: 'Landing light OFF Below FL100'
|
||||
lat: '36.4022'
|
||||
lon: '28.0750'
|
||||
heading: ''
|
||||
altitude: ''
|
||||
vs: ''
|
||||
gs: ''
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:03:17'
|
||||
updated_at: '2018-02-21 20:03:17'
|
||||
- id: wdL7o1YlAZjb
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4263'
|
||||
lon: '28.1347'
|
||||
heading: '183'
|
||||
altitude: '660'
|
||||
vs: '-500'
|
||||
gs: '56'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:07:06'
|
||||
updated_at: '2018-02-21 20:07:06'
|
||||
- id: zbq7vpVrwB2e
|
||||
pirep_id: pirepid_2
|
||||
type: '0'
|
||||
nav_type: ''
|
||||
order: '0'
|
||||
name: ''
|
||||
log: ''
|
||||
lat: '36.4072'
|
||||
lon: '28.0917'
|
||||
heading: '252'
|
||||
altitude: '20'
|
||||
vs: '0'
|
||||
gs: '58'
|
||||
transponder: ''
|
||||
autopilot: ''
|
||||
fuel_flow: ''
|
||||
sim_time: ''
|
||||
created_at: '2018-02-21 20:09:36'
|
||||
updated_at: '2018-02-21 20:09:36'
|
||||
|
@ -143,6 +143,26 @@ airports:
|
||||
lon: -73.7786950
|
||||
hub: 1
|
||||
ground_handling_cost: 250
|
||||
- id: KPAE
|
||||
iata: PAE
|
||||
icao: KPAE
|
||||
name: Snohomish County (Paine Field) Airport
|
||||
location: Everett
|
||||
country: United States
|
||||
timezone: America/Los_Angeles
|
||||
lat: 47.9063
|
||||
lon: -122.282
|
||||
hub: 0
|
||||
- id: KSEA
|
||||
iata: SEA
|
||||
icao: KSEA
|
||||
name: Seattle Tacoma International Airport
|
||||
location: Seattle
|
||||
country: United States
|
||||
timezone: America/Los_Angeles
|
||||
lat: 47.449
|
||||
lon: -122.309
|
||||
hub: 0
|
||||
- id: EGLL
|
||||
iata: LHR
|
||||
icao: EGLL
|
||||
@ -152,16 +172,6 @@ airports:
|
||||
lat: 51.4775
|
||||
lon: -0.4614
|
||||
ground_handling_cost: 500
|
||||
- id: LGRP
|
||||
iata: RHO
|
||||
icao: LGRP
|
||||
name: Diagoras Airport
|
||||
location: Rhodos
|
||||
country: Greece
|
||||
timezone: Europe/Athens
|
||||
lat: 36.4054
|
||||
lon: 28.0862
|
||||
ground_handling_cost: 50
|
||||
- id: MKJP
|
||||
iata: KIN
|
||||
icao: MKJP
|
||||
@ -192,16 +202,7 @@ airports:
|
||||
lat: 25.2528
|
||||
lon: 55.3644
|
||||
ground_handling_cost: 50
|
||||
- id: LOWW
|
||||
iata: VIE
|
||||
icao: LOWW
|
||||
name: Vienna International Airport
|
||||
location: Vienna
|
||||
country: Austria
|
||||
timezone: Europe/Vienna
|
||||
lat: 48.1103
|
||||
lon: 16.5697
|
||||
ground_handling_cost: 50
|
||||
|
||||
#
|
||||
aircraft:
|
||||
- id: 1
|
||||
@ -453,23 +454,6 @@ pireps:
|
||||
created_at: 2018-04-04T16:50:36+00:00
|
||||
updated_at: 2018-04-04T17:00:36+00:00
|
||||
- id: pirepid_2
|
||||
user_id: 1
|
||||
airline_id: 1
|
||||
flight_number: 2023
|
||||
aircraft_id: 2
|
||||
dpt_airport_id: LGRP
|
||||
arr_airport_id: LGRP
|
||||
flight_time: 180 # 6 hours
|
||||
state: 1
|
||||
flight_type: J
|
||||
route: PLMMR2 SPA Q22 BEARI FAK PHLBO3
|
||||
notes: just a pilot report
|
||||
source: 1 # pending
|
||||
source_name: sample
|
||||
submitted_at: NOW
|
||||
created_at: NOW
|
||||
updated_at: NOW
|
||||
- id: pirepid_3
|
||||
user_id: 1
|
||||
airline_id: 1
|
||||
flight_number: 300
|
||||
|
@ -421,6 +421,14 @@ class PirepController extends Controller
|
||||
$position['pirep_id'] = $id;
|
||||
$position['type'] = AcarsType::FLIGHT_PATH;
|
||||
|
||||
if(array_key_exists('sim_time', $position)) {
|
||||
$position['sim_time'] = Carbon::createFromTimeString($position['sim_time']);
|
||||
}
|
||||
|
||||
if (array_key_exists('created_at', $position)) {
|
||||
$position['created_at'] = Carbon::createFromTimeString($position['created_at']);
|
||||
}
|
||||
|
||||
$update = Acars::create($position);
|
||||
$update->save();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user