Inspired by this topic PiAware flight tracking I've created a driver that uses free OpenSky API to get information about flights entering in a determinate area. Unfortunately OpenSky doesn't provide flight details (departure/arrival airport and their distance) but just general plane information from transponder.
Are available: icao24 (transponder serial), callsign (generally flight number), origincountry (plane country, not flight departure), longitude, latitude, barometric altitude, velocity, track, vertical rate.
Actually supports 5 contemporary flights, that should be enough, please provide a feedback in case more are needed.
It also generate 2 customizable messages, with default values Message1 it's for TTS while Message2 it's for dashboard.
In order to make TTS working, you need to add a Rule Machine triggered rule that trigger TTS when Message1 changes, see example below.
/**
*
* Copyright 2019 gabriele-v
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
* OpenSky Network Driver
*
* Version: 0.2b
* 0.1b (2019-06-15) => First release
* 0.2b (2019-06-16) => Add radius from Hubitat location
*
* Author: gabriele-v
This file has been truncated. show original
6 Likes
If someone knows a free API to get flight information from flight number, it should be quite easy to add it
New version 0.2b released that adds an option to specify detection radius in meters from hub location, instead of manually adding coordinates.
I'll try to release soon a version that enables imperial system alongside metric one.
1 Like
system
Closed
September 24, 2022, 11:05am
5
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.