Skip to content

Commit

Permalink
chore(config): reduce refresh interval from 180 -> 60 minutes, to red…
Browse files Browse the repository at this point in the history
…uce refresh lag
  • Loading branch information
RouHim committed Nov 19, 2023
1 parent 28faa84 commit 6339e4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ All configuration is done via environment variables:
| DATA_FOLDER | Path to a folder where the data should be stored, needs to read/write access | `/data` (Container only) | |
| PORT | Port on which the application should listen. | `8080` | |
| SLIDESHOW_INTERVAL | Interval of the slideshow in seconds | 30 | x |
| REFRESH_INTERVAL | Interval how often the page should be reloaded in minutes | 180 | |
| REFRESH_INTERVAL | Interval how often the page should be reloaded in minutes | 60 | |
| DATE_FORMAT | Date format of the image taken date (https://docs.rs/chrono/0.4.19/chrono/format/strftime/index.html) | %d.%m.%Y | |
| BIGDATA_CLOUD_API_KEY | To resolve geo coordinates to city name. Obtain here: https://www.bigdatacloud.com | | |
| OPEN_WEATHER_MAP_API_KEY | To receive weather live data. Obtain here: https://openweathermap.org/api | | |
Expand Down
2 changes: 1 addition & 1 deletion src/config_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub async fn get_slideshow_interval() -> HttpResponse {
pub async fn get_refresh_interval() -> HttpResponse {
HttpResponse::Ok()
.content_type("plain/text")
.body(env::var("REFRESH_INTERVAL").unwrap_or_else(|_| "180".to_string()))
.body(env::var("REFRESH_INTERVAL").unwrap_or_else(|_| "60".to_string()))
}

#[get("show-hide-button")]
Expand Down

0 comments on commit 6339e4d

Please sign in to comment.