greymatter/hass-config

FlightAware Aircraft Count

Closed this issue ยท 3 comments

Hi ๐Ÿ‘‹

Liking what you've done with your Avoinics page - just wondering if you could point me to where its possible to get the aircraft count data from FlightAware

- name: ADSB Aircraft Count by Type
resource: !secret flightaware_aircraft_type
scan_interval: 10
#log_response: true
sensor:
- unique_id: adsb_aircraft_count_by_type
name: FlightAware Aircraft Type
value_template: Connected
icon: mdi:plane
attributes:
- name: adsb_icao
value_template: '{{ value_json.aircraft_count_by_type.adsb_icao }}'
- name: adsb_icao_nt
value_template: '{{ value_json.aircraft_count_by_type.adsb_icao_nt }}'
- name: adsb_other
value_template: '{{ value_json.aircraft_count_by_type.adsb_other }}'
- name: adsc
value_template: '{{ value_json.aircraft_count_by_type.adsc }}'
- name: adsr_icao
value_template: '{{ value_json.aircraft_count_by_type.adsr_icao }}'
- name: adsr_other
value_template: '{{ value_json.aircraft_count_by_type.adsr_other }}'
- name: mlat
value_template: '{{ value_json.aircraft_count_by_type.mlat }}'
- name: mode_ac
value_template: '{{ value_json.aircraft_count_by_type.mode_ac }}'
- name: mode_s
value_template: '{{ value_json.aircraft_count_by_type.mode_s }}'
- name: other
value_template: '{{ value_json.aircraft_count_by_type.other }}'
- name: tisb_icao
value_template: '{{ value_json.aircraft_count_by_type.tisb_icao }}'
- name: tisb_other
value_template: '{{ value_json.aircraft_count_by_type.tisb_other }}'
- name: unknown
value_template: '{{ value_json.aircraft_count_by_type.unknown }}'
- name: aircraft_with_pos
value_template: '{{ value_json.aircraft_with_pos }}'
- name: aircraft_without_pos
value_template: '{{ value_json.aircraft_without_pos }}'
- name: uptime
value_template: '{{ value_json.uptime }}'

i'm planning to add all my queries for the SQL sensor soon, it will be in the avionics pkg when i upload it.

edited.
apologies, i read that as Flightairmap... i've been drinking good beer tonight so my bad. i'm pretty sure already added all the flightaware stuff already, i'll go through it again but im pretty i sure its in there. what exactly are you looking for? stats wise?

it'll just be comments as i've had issues with creating sql sensors in yaml.

ok Hi Bacco, sober now and I have comprehended your comment.. lol. I've repushed an update Avionics pkg with all the SQL bits as well as example URLs for all urls I hiding in secrets. But the one i think you are looking for is this:

please let me know if there is still something else you need, I'd be happy to share!