Add weatherapi collector

This commit is contained in:
2022-08-23 19:48:36 +02:00
parent e7baf561bd
commit d2054caf69
6 changed files with 247 additions and 7 deletions

View File

@@ -1,6 +1,8 @@
mod markdown_web;
mod weatherapi;
pub use markdown_web::MarkdownWeb;
pub use weatherapi::WeatherApi;
use serde::Deserialize;
@@ -12,4 +14,7 @@ pub trait Collector {
#[derive(Deserialize)]
pub struct CollectorConfig {
pub markdown_web_links: Vec<String>,
pub weatherapi_key: Option<String>,
pub weatherapi_locations: Vec<String>,
}