Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boustrophedon/eink-esp-weather-display
/ functions
Functions
48 in github.com/boustrophedon/eink-esp-weather-display
⨍
Functions
48
◇
Types & classes
7
↓ 6 callers
Function
draw_text_left
(image: &mut RgbImage, text: &str, x: f32, y: f32, font: &Font, scale: f32)
render/src/draw.rs:159
↓ 6 callers
Function
draw_text_mut
Draws colored text on an image in place. `scale` is augmented font scaling on both the x and y axis (in pixels). Note that this function *does not*
render/src/text.rs:37
↓ 5 callers
Function
measure_text
(font: &Font, text: &str, font_size: f32)
render/src/draw.rs:119
↓ 2 callers
Method
daily_minmax_temps
Returns weekly and daily temperatures as (min, max, dailyminmax) Keys are simply the day of the month which will not overlap as long as the forecast i
render/src/weather.rs:53
↓ 2 callers
Function
draw_text_right
(image: &mut RgbImage, text: &str, x: f32, y: f32, font: &Font, scale: f32, color: Rgb<u8>)
render/src/draw.rs:166
↓ 2 callers
Function
get_buffer_size
Retuns the size of a buffer necessary to hold the entire image
esp/src/main.rs:184
↓ 2 callers
Function
get_test_data
()
render/src/util.rs:7
↓ 2 callers
Function
render
(current_time: DateTime<chrono_tz::Tz>, display_data: DisplayData)
render/src/render.rs:22
↓ 2 callers
Method
week_minmax_temps
Returns min and max temps for the week
render/src/weather.rs:85
↓ 1 callers
Function
create_client
()
esp/src/request_image.rs:15
↓ 1 callers
Function
create_epd_driver
( spi_p: spi::SPI3, sclk: AnyOutputPin, sdo: AnyOutputPin, cs: AnyOutputPin, busy_in: AnyInputPin,
esp/src/main.rs:143
↓ 1 callers
Function
create_todoist_client
(env_data: &EnvData)
render/src/tasks.rs:15
↓ 1 callers
Function
create_weather_client
(env_data: &EnvData)
render/src/weather.rs:163
↓ 1 callers
Function
draw_5day_graph
(forecast: &Forecast5Day, width: i64, height: i64, font: &Font)
render/src/draw.rs:14
↓ 1 callers
Function
draw_epd
(mut buffer: Vec<u8>, mut driver: SpiDev, mut epd: EpdDriver, mut delay: Delay)
esp/src/main.rs:189
↓ 1 callers
Function
draw_text_bottom_right
(image: &mut RgbImage, text: &str, x: f32, y: f32, font: &Font, scale: f32, color: Rgb<u8>)
render/src/draw.rs:188
↓ 1 callers
Function
enter_deep_sleep
(wakeup_pin: AnyInputPin, sleep_time: Duration)
esp/src/main.rs:112
↓ 1 callers
Method
filtered_forecast
Returns the temperature and rain data filtered to be smoother for drawing on a graph.
render/src/weather.rs:94
↓ 1 callers
Function
gather_data
Returns (current_weather_json, hourly_weather_json, tasks_json)
render/src/main.rs:55
↓ 1 callers
Function
gather_peripherals
(peripherals: Peripherals)
esp/src/main.rs:91
↓ 1 callers
Function
get_current_weather
(env_data: &EnvData, client: &Client)
render/src/weather.rs:172
↓ 1 callers
Function
get_data
This code is mostly taken from some sample code somewhere
esp/src/request_image.rs:26
↓ 1 callers
Function
get_env_data
()
render/src/main.rs:31
↓ 1 callers
Function
get_envdata_filepath
()
render/src/main.rs:36
↓ 1 callers
Function
get_hourly_forecast
(env_data: &EnvData, client: &Client)
render/src/weather.rs:270
↓ 1 callers
Function
get_output_path
()
render/src/main.rs:42
↓ 1 callers
Function
get_tasks
(client: &Client)
render/src/tasks.rs:28
↓ 1 callers
Function
layout_glyphs
( scale: Scale, font: &Font, text: &str, mut f: impl FnMut(PositionedGlyph, Rect<i32>), )
render/src/text.rs:11
↓ 1 callers
Function
parse_current_weather
(json_str: &str)
render/src/weather.rs:184
↓ 1 callers
Function
parse_data
(current_weather_json: String, hourly_forecast_json: String, tasks_json: String)
render/src/main.rs:89
↓ 1 callers
Function
parse_hourly_forecast
(json_str: &str)
render/src/weather.rs:281
↓ 1 callers
Function
parse_tasks
(json_str: &str)
render/src/tasks.rs:39
↓ 1 callers
Function
request_image
(image_data_url: &str)
esp/src/request_image.rs:9
↓ 1 callers
Function
test_data1
()
render/src/test_data.rs:3
↓ 1 callers
Function
wifi
( ssid: &str, pass: &str, modem: impl peripheral::Peripheral<P = esp_idf_hal::modem::Modem> + 'sta
esp/src/wifi.rs:22
Function
disable_onboard_led
Disable the onboard led during deep sleep TODO: measure current draw vs gpio_deep_sleep_hold_en currently unused because i desoldered the leds, but I
esp/src/main.rs:134
Function
draw_text_bottom
(image: &mut RgbImage, text: &str, x: f32, y: f32, font: &Font, scale: f32, color: Rgb<u8>)
render/src/draw.rs:181
Function
draw_text_centered
(image: &mut RgbImage, text: &str, x: f32, y: f32, font: &Font, scale: f32)
render/src/draw.rs:149
Function
draw_text_left_color
(image: &mut RgbImage, text: &str, x: f32, y: f32, font: &Font, scale: f32, color: Rgb<u8>)
render/src/draw.rs:174
Method
from_file
(path: &Path)
render/src/env_data.rs:14
Function
get_daily_forecast
(env_data: &EnvData, client: &Client)
render/src/weather.rs:214
Function
main
Necessary because of this issue: https://github.com/rust-lang/cargo/issues/9641
esp/build.rs:2
Function
main
()
esp/src/main.rs:43
Function
main
()
render/src/main.rs:111
Method
new
(hourly_forecast: &[ForecastPeriod])
render/src/weather.rs:29
Function
parse_daily_forecast
(json_str: &str)
render/src/weather.rs:225
Function
read_image_data
(bytes: &[u8])
render/src/render.rs:135
Function
test_render1
()
render/src/render.rs:144