Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

MOUG17: Visualizing Air Traffic with Oracle APEX and Raspberry PI

174 views

Published on

Midwest Oracle Users Group Training Day 2017 Presentation by Jerry Ward, Managing Partner of Viscosity North America

Published in: Technology
  • Be the first to comment

MOUG17: Visualizing Air Traffic with Oracle APEX and Raspberry PI

  1. 1. #Kscope17 #orclBi @oracleCoffee @viscosityNA
  2. 2. #Kscope17 #orclBi @oracleCoffee @viscosityNA Agenda – Goal is “Think about IT” q About Viscosity (briefly) q Innovation & Disruption q Growing Fast: IOT q Air Traffic Control q Components to Assemble q Demo q Giveaways (blatant bribes to stay!)
  3. 3. #Kscope17 #orclBi @oracleCoffee @viscosityNA Oracle Cloud Pocket Solutions Guide Real-Life Cloud Solutions Kindle version was created in Q4 2016 The Oracle Cloud Pocket Solutions Guide will evolve with Oracle Cloud with new features and changes will be reflected in the Kindle version Text 12c to #444999 to win Or email hello@viscosityna.com
  4. 4. #Kscope17 #orclBi @oracleCoffee @viscosityNA 4 Our Presentation Calendar V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x May 9-10 Cloud HOL Georgia Oracle Users Group Training Days Atlanta, GA May 9-11 APEX Connect 2017 Berlin, Germany May 17-18 Cloud HOL Great Lakes OUG Conference Cleveland, OH June 25-29 ODTUG Kscope17 @ JW Marriot San Antonio, TX June 29 Oracle Code - Mexico City Mexico City Aug 24 Dallas Oracle UG (Oracle 12.2) Dallas, TX Oct 1-5 Oracle OpenWorld (Cloud HOL, 12.2 PDB Case Study) Dallas, TX Nov 8 Cloud HOL @Michigan OUG Chicago, IL Jul 28 – Aug 9 OTN Latin America Tour South America Aug 11– Aug 21 OTN Latin America Tour Central America
  5. 5. #Kscope17 #orclBi @oracleCoffee @viscosityNA About Me Austin, Texas Engineer & Developer Twitter @oraclecoffee Oracle Apex Nerd #letsWreckThisTogether Co-author Oracle Cloud Solutions Guide Co-founder Viscosity North America Data Science Specialist JHU Passion for the Red Grape Private Pilot V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  6. 6. #Kscope17 #orclBi @oracleCoffee @viscosityNA 6 What does Viscosity do? V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  7. 7. #Kscope17 #orclBi @oracleCoffee @viscosityNA 7 We’ve Written Many Books V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  8. 8. #Kscope17 #orclBi @oracleCoffee @viscosityNA
  9. 9. #Kscope17 #orclBi @oracleCoffee @viscosityNA Some of Our Clients V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  10. 10. #Kscope17 #orclBi @oracleCoffee @viscosityNA 10
  11. 11. #Kscope17 #orclBi @oracleCoffee @viscosityNA Technology Trends: Gartner Hype Cycle 2013 All about Tech … 11
  12. 12. #Kscope17 #orclBi @oracleCoffee @viscosityNA Technology Trends: Gartner Hype Cycle 2013 All about Tech … 12
  13. 13. #Kscope17 #orclBi @oracleCoffee @viscosityNA Each Day around 6,000 flights operate in UK Airspace Air Traffic Control V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  14. 14. #Kscope17 #orclBi @oracleCoffee @viscosityNA What Happens when a Thunderstorm hits the World’s Largest Airport? (ATL) Traffic and Weather Visualized from the ADS-B System at the Atlanta-Hartfield Airport Traffic and Weather V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  15. 15. #Kscope17 #orclBi @oracleCoffee @viscosityNA What Happens when a Thunderstorm hits the World’s Largest Airport? Traffic and Weather Visualized from the ADS-B System at the Atlanta-Hartfield Airport The ADS-B Air Traffic Control System
  16. 16. #Kscope17 #orclBi @oracleCoffee @viscosityNA Assembling the Software V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x http://stratux.me https://github.com/cyoung/stratux https://www.eaa.org/en/eaa/eaa-news-and-aviation-news/bits-and-pieces-newsletter/06-14-2016-stratux-ads-b-weather-and-traffic Chris Young
  17. 17. #Kscope17 #orclBi @oracleCoffee @viscosityNA Software: dump1090 V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x https://github.com/antirez/dump1090 Radio decoder (mode S) designed for software defined radios. Decodes either 1090mhz (newer) or 978mhz (dump978)
  18. 18. #Kscope17 #orclBi @oracleCoffee @viscosityNA Software: Netcat (nc) V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x “the tcp/ip swiss army knife”
  19. 19. #Kscope17 #orclBi @oracleCoffee @viscosityNA 1 9 Endpoint Managemen t Message delivery & Event Cache Stream Processing Device Software Managemen t Event and Metadata Store Device with IoT Cloud Service Gateway software Mobile app using IoT Cloud Service SDK Device integrated with IoT Cloud Service Client Libraries 2G/3G/LTE Network WWAN Oracle Integration Cloud Service Oracle Business Intelligence Cloud Service Firewall IoT Cloud Service Gateway & Client Libraries Othe r Devic es Other Cloud Services IoT Cloud Service Event Dispatcher Database-as- a-Service Custom Application Charging and Billing CRM / OM / SFA ERP • Financi als • SCM • HCM Industry Vertical Applicatio ns Field Service Enterprise Cloud or On Premise Oracle IOT Cloud Service V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  20. 20. #Kscope17 #orclBi @oracleCoffee @viscosityNA Raspberry Pi 3 1090 Mhz Radio & Antenna 978 Mhz Radio & Antenna Micro SD Memory Card Battery Miscellaneous Cables The Components V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  21. 21. #Kscope17 #orclBi @oracleCoffee @viscosityNA Raspberry Pi 3 1090 Mhz Radio & Antenna 978 Mhz Radio & Antenna Micro SD Memory Card Battery Miscellaneous Cables Install Heat Syncs V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  22. 22. #Kscope17 #orclBi @oracleCoffee @viscosityNA Install the Radios V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  23. 23. #Kscope17 #orclBi @oracleCoffee @viscosityNA Install the Radios V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  24. 24. #Kscope17 #orclBi @oracleCoffee @viscosityNA Powering it On the First Time V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  25. 25. #Kscope17 #orclBi @oracleCoffee @viscosityNA The Perfect Enclosure V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  26. 26. #Kscope17 #orclBi @oracleCoffee @viscosityNA The Perfect Enclosure V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  27. 27. #Kscope17 #orclBi @oracleCoffee @viscosityNA The Road Test V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  28. 28. #Kscope17 #orclBi @oracleCoffee @viscosityNA Initial Data Flow V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  29. 29. #Kscope17 #orclBi @oracleCoffee @viscosityNA Batch Loading into a Database V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  30. 30. #Kscope17 #orclBi @oracleCoffee @viscosityNA Mapping ADS-B Data to Columns V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  31. 31. #Kscope17 #orclBi @oracleCoffee @viscosityNA 3 1 Pushing Data to ORDS V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  32. 32. #Kscope17 #orclBi @oracleCoffee @viscosityNA 3 2 Google Maps API V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  33. 33. #Kscope17 #orclBi @oracleCoffee @viscosityNA Switching from Batch to Streams V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x More Timely Access to Data Lower Latency Scale Up, Scale Down, Scale Out Massive Unbounded Data Sets “Never-Ending Volumes of Data” Spread Workload evenly over time
  34. 34. #Kscope17 #orclBi @oracleCoffee @viscosityNA 3 4 Kafka Producer & Consumers V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A P E X Consumer sudo kafka-avro-console-consumer --topic FL_LOCATIONS --zookeeper localhost:2181 --from-beginning Producer sudo kafka-avro-console-producer --broker-list localhost:9092 --topic FL_LOCATIONS --property value.schema='{"type":"record","name":"FlightLocations” … {"name":"BEARING","type":"float"},{"name":"DISTANCE","type":"float"}]}’ Message Sample {"ICAO_ADDR":5046538,"REG":"","TAIL":"CLX661","EMITTER_CATEGORY":0,"ON_GROUND":fal se,"ADDR_TYPE":0,"TARGET_TYPE":1,"SIGNAL_LEVEL":- 19.374932247913172,"SQUAWK":3265,"POSITION_VALID":true,"LAT":30.331055,"LNG":-98 .36022,"ALT":32675,"GNSS_DIFF_FROM_BARO_ALT":2125,"ALTIS_GNSS":false,"NIC":7,"NACP ":8,"TRACK":7,"SPEED":491,"SPEED_VALID":true,"VVEL":- 4352,"PRIORITY_STATUS":0,"AGE":0.9900000000000001,"AGE_LAST_ALT":0.28,"LAST_GNSS_D IFF_ALT":32700,"LAST_SOURCE":1,"EXTRAPOLATED_POSITION":false,"BEARING":277.8393809 259007,"DISTANCE":30473.893915820558}
  35. 35. #Kscope17 #orclBi @oracleCoffee @viscosityNA 3 5 Kafka Producer & Consumers V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A P E X Kafka Connect Configuration cat config/sink-ft-locations-oracle-jdbc.properties name=sink-test connector.class=io.confluent.connect.jdbc.JdbcSinkConnector tasks.max=1 topics=FL_LOCATIONS connection.url=jdbc:oracle:thin:@52.89.209.222:1521/ORCLPDB1 connection.user=iot connection.password=XXX table.name.format=${topic} auto.create=true Kafka Connect connect-standalone /etc/schema-registry/connect-avro-standalone.properties /home/opc/config/sink-ft-locations-oracle-jdbc.properties
  36. 36. #Kscope17 #orclBi @oracleCoffee @viscosityNA 3 6 Stream Explorer V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  37. 37. DEMO
  38. 38. #Kscope17 #orclBi @oracleCoffee @viscosityNA 3 8 Any Useful Use Cases? V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x “Bud Fox, what on earth is Larry Wildman doing in Erie Pennsylvania? … he’s buying Anacott Steel” Competitor Surveillance Flightaware in Houston Texas has done this Crowd Source Worldwide Tracking System Obviously? Collision Avoidance Shop floor management, industrial control. Dedicated Control Levy taxes against rich people in your county (don’t do this please) The Tax Man As the plane arrives what events do I need to set in place? Event Coordination Integral Part of our transportation system Air Traffic Control Where in the world is carmen sandiego? Fleet Tracking Look up at the sky and ask where that plane is going? Curiosity Unused or Often Used Airplanes have different values Asset Valuation The Griffin IOT Toaster?
  39. 39. #Kscope17 #orclBi @oracleCoffee @viscosityNA 3 9 Crowdsource Aircraft Tracking V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  40. 40. #Kscope17 #orclBi @oracleCoffee @viscosityNA 4 0 FlightAware Membership Free V i s u a l i z i n g A i r T r a f f i c D a t a w i t h R a s p b e r r y P I a n d A p e x
  41. 41. #Kscope17 #orclBi @oracleCoffee @viscosityNA Oracle Cloud Pocket Solutions Guide Real-Life Cloud Solutions Kindle version was created in Q4 2016 The Oracle Cloud Pocket Solutions Guide will evolve with Oracle Cloud with new features and changes will be reflected in the Kindle version Text 12c to #444999 to win Or email hello@viscosityna.com
  42. 42. #Kscope17 #orclBi @oracleCoffee @viscosityNA 42
  43. 43. #Kscope17 #orclBi @oracleCoffee @viscosityNA Facebook.com/ViscosityNA Linkedin.com/company/Viscosity-North-America @ViscosityNA Viscosity North America Facebook.com/ViscosityNA @Viscosity_NA Follow Us Online! 43

×