adsb.exposed icon indicating copy to clipboard operation
adsb.exposed copied to clipboard

Time slider

Open alexey-milovidov opened this issue 1 year ago • 16 comments

It can span for the whole time range (2022 .. now).

Workaround: it is already possible to simply add AND time BETWEEN ... AND ... in the WHERE condition in the query.

alexey-milovidov avatar May 04 '24 21:05 alexey-milovidov

Hey Alexey, do we have data for 2024? It looks like this is up until 2023?

Aleshere avatar Sep 16 '24 20:09 Aleshere

@Aleshere yes, we have real-time data, updated every few seconds. You need to add

AND time >= '2024-01-01' AND data_source = 'airplanes.live' to the WHERE condition.

Example: https://adsb.exposed/?zoom=6&lat=48.8503&lng=7.0313&query=5a39e027e487062e9944dc28315fa0e9

Last five minutes: https://adsb.exposed/?zoom=5&lat=39.6565&lng=-96.2402&query=56c83c59f309758aa839b61b6ecacd6c

alexey-milovidov avatar Sep 21 '24 00:09 alexey-milovidov

Amazing, works like a charm. Thank you

Aleshere avatar Sep 21 '24 00:09 Aleshere

If I only wanted to display flights between midnight and 7 am what can I add to the WHERE condition ? Looking in the tables I thought tohour(DateTime64) BETWEEN 0 AND 7 or hour BETWEEN 0 AND 7 might work. But neither did !

syonist avatar Oct 08 '24 14:10 syonist

@syonist, write toHour(time) BETWEEN 0 AND 7:

https://adsb.exposed/?zoom=5&lat=48.6313&lng=7.9321&query=ece72146892a323b5329eab3af09f667

Keep in mind that this is the time in UTC. The local time will be different.

You can get something resembling the local time with

time + INTERVAL lon / 15 HOUR AS local_time

https://adsb.exposed/?zoom=4&lat=43.4419&lng=-82.2930&query=61ea9941cfab051e0dde29fdb4ca6b36

alexey-milovidov avatar Oct 13 '24 09:10 alexey-milovidov

Red: night flights, Green: day flights, Blue: evening flights:

https://adsb.exposed/?zoom=4&lat=66.1708&lng=22.2566&query=92cc010e703e3bb32d853f98c6b073e0

alexey-milovidov avatar Oct 13 '24 10:10 alexey-milovidov

Very many thanks, Tim On Sunday 13 October 2024 at 11:11:24 BST, Alexey Milovidov @.***> wrote:

Red: night flights, Green: day flights, Blue: evening flights:

https://adsb.exposed/?zoom=4&lat=66.1708&lng=22.2566&query=92cc010e703e3bb32d853f98c6b073e0

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

syonist avatar Oct 13 '24 10:10 syonist

There is also limited direct access to the data:

clickhouse-client --host kvzqttvc2n.eu-west-1.aws.clickhouse-staging.com --user website --secure

(it has limits on the number of scanned records and queries)

Note: to install clickhouse-client on Linux or Mac, do

curl https://clickhouse.com/ | sh

alexey-milovidov avatar Oct 13 '24 13:10 alexey-milovidov

Hi Alexey, is data still getting ingested into this clickhouse db? Just curious!

blu3r4d0n avatar Jan 13 '25 20:01 blu3r4d0n

Yes, it is updated in realtime. Type iddqd anywhere and select ClickHouse Cloud.

alexey-milovidov avatar Jan 13 '25 21:01 alexey-milovidov

Thanks, I ran the last five minutes query from above and selected the clickhouse cloud and it didn't seem to load any data which is what led me to believe that it's not current. It appears the latest data ingested is from 2024-12-31. if this is expected, that's fine! just ran max(date) on the planes_mercator table.

blu3r4d0n avatar Jan 14 '25 03:01 blu3r4d0n

Thanks, I ran the last five minutes query from above and selected the clickhouse cloud and it didn't seem to load any data which is what led me to believe that it's not current. It appears the latest data ingested is from 2024-12-31. if this is expected, that's fine! just ran max(date) on the planes_mercator table.

looks like whatever issue I was encountering has been resolved.

blu3r4d0n avatar Jan 16 '25 04:01 blu3r4d0n

I didn't set up monitoring for my cron jobs. I've revived one data source, but I still have to revive another.

alexey-milovidov avatar Jan 16 '25 20:01 alexey-milovidov

Thanks! appreciate the assistance.

blu3r4d0n avatar Jan 16 '25 21:01 blu3r4d0n

I've made the backend selector always visible.

alexey-milovidov avatar Feb 05 '25 00:02 alexey-milovidov

I've switched the default backend from "Any" to "ClickHouse Cloud", so now the results are real-time by default.

alexey-milovidov avatar May 06 '25 00:05 alexey-milovidov