chore: restore order

This commit is contained in:
eneller committed 2026-01-16 19:37:36 +01:00
1 parent 3a73400ac8
commit cb516d4dbd
4 files changed
+3285 -6

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
OPENSKY_CLIENT_ID=changeme
OPENSKY_CLIENT_SECRET=changeme
+2
View File
@@ -29,3 +29,5 @@ Use [renv](https://rstudio.github.io/renv/articles/renv.html) to install the cor
``` r ``` r
renv::restore() renv::restore()
``` ```
[OpenSky](https://opensky-network.org) access also requires credentials placed in a `.env` file, for which an example is provided in `.env.example`.
+5 -6
View File
@@ -11,7 +11,7 @@ knitr::opts_chunk$set(echo = TRUE)
``` ```
# Load Library # Load Library
```{r library} ```{r preamble, echo=FALSE}
library(dplyr) library(dplyr)
library(lubridate) library(lubridate)
library(readr) library(readr)
@@ -22,8 +22,7 @@ library(httr)
library(jsonlite) library(jsonlite)
``` ```
# Download flights # Download flights
```{r get departures from frankfurt airport without account, include=FALSE} ```{r include=FALSE}
#library(openSkies)
# #
#time_now <- Sys.time() #time_now <- Sys.time()
#time_one_hour_ago <- time_now - 3600 #time_one_hour_ago <- time_now - 3600
@@ -36,7 +35,7 @@ library(jsonlite)
``` ```
```{r openskies oauth, include=FALSE} ```{r openskies, include=FALSE}
load_dot_env() load_dot_env()
my_client_id <- Sys.getenv("OPENSKY_CLIENT_ID") my_client_id <- Sys.getenv("OPENSKY_CLIENT_ID")
my_client_secret <- Sys.getenv("OPENSKY_CLIENT_SECRET") my_client_secret <- Sys.getenv("OPENSKY_CLIENT_SECRET")
@@ -81,7 +80,7 @@ if (status_code(data_resp) == 200) {
``` ```
```{r get last 5 flights} ```{r last5}
icao24 <- "4bcdf9" icao24 <- "4bcdf9"
@@ -118,7 +117,7 @@ if (status_code(aircraft_resp) == 200) {
# Plot the flights # Plot the flights
```{r get flight route} ```{r route}
target_icao <- all_flights$icao24[1] target_icao <- all_flights$icao24[1]
target_time <- as.numeric(all_flights$firstSeen[1]) target_time <- as.numeric(all_flights$firstSeen[1])
+3276
View File
File diff suppressed because it is too large. Load diff