Skip to content

Commit

Permalink
new TDS api
Browse files Browse the repository at this point in the history
  • Loading branch information
rromanchuk committed Dec 30, 2023
1 parent c507ae8 commit 614be59
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion personal/app/services/tds/ingest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Ingest < Service
region: 'us-east-1')
end

let(:endpoint) { "https://www.aviationweather.gov/adds/dataserver_current/current/#{report_type}.#{file_type}" }
let(:endpoint) { "https://www.aviationweather.gov/data/cache/#{report_type}.#{file_type}" }
let(:response) do
HTTParty.get(endpoint,
headers: { "User-Agent": 'romanch.uk/1.0 (Ryan Romanchuk/Private Pilot; Personal Project; github.com/rromanchuk/romanch.uk)' })
Expand Down Expand Up @@ -81,3 +81,5 @@ def new_data?
end
end
end


20 changes: 10 additions & 10 deletions personal/config/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ query_stats_worker:
queue: "default"
description: "Capture query stats"

metars:
cron: "*/30 * * * *"
class: "IngestMetarsWorker"
queue: "default"
description: "Metars pipeline"
# metars:
# cron: "*/30 * * * *"
# class: "IngestMetarsWorker"
# queue: "default"
# description: "Metars pipeline"

tafs:
cron: "*/30 * * * *"
class: "IngestTafsWorker"
queue: "default"
description: "Tafs pipeline"
# tafs:
# cron: "*/30 * * * *"
# class: "IngestTafsWorker"
# queue: "default"
# description: "Tafs pipeline"

pireps:
cron: "*/15 * * * *"
Expand Down

0 comments on commit 614be59

Please sign in to comment.