rte-tempo 0.1.0

A library to get RTE Tempo statistics from api-couleur-tempo.fr
Documentation

rte-tempo

Get the Tempo day from api-couleur-tempo.fr

Example:

use rte_tempo::TempoApiClient;

#[tokio::main]
async fn main() {
    let client = TempoApiClient::default();

    let tempo_today = client.get_tempo_today().await.unwrap();
    println!("Today is a {:?} day", tempo_today.day_type);

    let stats = client.get_period_stats().await.unwrap();
    println!("Stats for period {}: {:#?}", stats.period, stats);
}

Contributing

Don't hesitate to send patches to f@vi-di.fr or on github (TODO)