Boas, fiz uma pesquisa sobre obter dados de horarios seja de autocarros de cidades especificas ou horarios de comboios CP.
quem quiser saber mais sobre tenho todo o gosto de partilhar
sensor.comboio_guimaraes_campanha todos os atributos que ficam disponiveis para usar:
arrival: “2025-07-26T16:43:30+00:00”
day: today
first: false
last: false
offset: 0
agency_agency_id: 1094_CP
agency_agency_name: CP - Comboios de Portugal
agency_agency_url: http://www.cp.pt
agency_agency_timezone: Europe/Lisbon
agency_agency_lang: pt
agency_agency_phone: “+351808109110”
agency_agency_fare_url: None
agency_agency_email: None
origin_station_stop_id: “94_24000”
origin_station_stop_code: None
origin_station_stop_name: Guimaraes
origin_station_stop_desc: None
origin_station_stop_lat: “41.435373”
origin_station_stop_lon: “-8.294142”
origin_station_zone_id: None
origin_station_stop_url: None
origin_station_location_type: “0”
origin_station_parent_station: None
origin_station_stop_timezone: Europe/Lisbon
origin_station_wheelchair_boarding: “0”
origin_station_platform_code: None
origin_station_location_type_name: Station
origin_station_wheelchair_boarding_available: unknown
destination_station_stop_id: “94_2006”
destination_station_stop_code: None
destination_station_stop_name: Porto Campanha
destination_station_stop_desc: None
destination_station_stop_lat: “41.149622”
destination_station_stop_lon: “-8.585514”
destination_station_zone_id: None
destination_station_stop_url: None
destination_station_location_type: “0”
destination_station_parent_station: None
destination_station_stop_timezone: Europe/Lisbon
destination_station_wheelchair_boarding: “0”
destination_station_platform_code: None
destination_station_location_type_name: Station
destination_station_wheelchair_boarding_available: unknown
route_route_id: 22-94_24000-94_30007
route_agency_id: 1094_CP
route_route_short_name: IC
route_route_long_name: None
route_route_desc: None
route_route_type: “2”
route_route_url: None
route_route_color: FFFFFF
route_route_text_color: “000000”
route_type_name: Rail
trip_route_id: 22-94_24000-94_30007
trip_service_id: “620_20241215”
trip_trip_id: “620_20241215”
trip_trip_headsign: Lisboa Santa Apolonia
trip_trip_short_name: “620”
trip_direction_id: None
trip_block_id: None
trip_shape_id: None
trip_wheelchair_accessible: “0”
trip_bikes_allowed: None
trip_bikes_allowed_state: unknown
trip_wheelchair_access_available: unknown
origin_stop_arrival_time: “2025-07-26 16:49:00”
origin_stop_departure_time: “2025-07-26 16:49:00”
origin_stop_drop_off_type: 0
origin_stop_pickup_type: 0
origin_stop_sequence: 0
origin_stop_drop_off_type_state: Regular
origin_stop_pickup_type_state: Regular
origin_stop_timepoint_exact: true
destination_stop_arrival_time: “2025-07-26 17:43:30”
destination_stop_departure_time: “2025-07-26 17:45:00”
destination_stop_drop_off_type: 0
destination_stop_pickup_type: 0
destination_stop_sequence: 4
destination_stop_drop_off_type_state: Regular
destination_stop_pickup_type_state: Regular
destination_stop_timepoint_exact: true
attribution: CP - Comboios de Portugal
device_class: timestamp
icon: mdi:train
friendly_name: Comboio_Guimaraes_Campanha
imaginem o potencial e os cards que podem ser feitos !