Skip to content

Commit 396ca69

Browse files
committed
fixed text overlap in tomorrow's vertical line
1 parent 9cf0591 commit 396ca69

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pi-inky-weather-epd"
3-
version = "0.5.2"
3+
version = "0.5.3"
44
edition = "2021"
55
authors = ["MT"]
66
description = "A weather display application for the Raspberry Pi using an EPD (e-paper display)."

readme.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,19 @@ This is a weather display powered by a Raspberry Pi and a 7.3in 7 colour E-Paper
2424
unzip <YOUR_DOWNLOAD_RELEASE>.tar.gz
2525
chmod +x pi-inky-weather-epd
2626
```
27-
3. Obtain a six-character geohash for your location from https://geohash.softeng.co
27+
3. Australia -> Bom API
28+
1. Obtain a six-character geohash of your location from https://geohash.softeng.co
29+
2. Create a configuration file with your geohash:
30+
```bash
31+
echo -e '[api]\nlocation = "YOUR_GEOHASH"' > ~/.config/pi-inky-weather-epd.toml
32+
```
33+
Worldwide -> Open-Metro (WIP)
34+
1. Obtain a Longitude and Latitude of your location from https://geohash.softeng.co
35+
2. Create a configuration file with your geohash:
36+
```bash
37+
echo -e '[api]\lon_lat = "LON,Lat"' > ~/.config/pi-inky-weather-epd.toml
38+
```
39+
2840

2941
4. Create a configuration file with your geohash:
3042
```bash

src/dashboard/chart.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,10 @@ impl HourlyForecastGraph {
479479
x = x_coor,
480480
chart_height = self.height,
481481
x_text = x_coor + 10.0,
482-
y_text = self.height / 2.0,
482+
y_text = (self.height / 2.0) + 20.0,
483483
font_style = FontStyle::Italic,
484484
rotate_x_text = x_coor + 10.0 - 30.0,
485-
rotate_y_text = (self.height / 2.0) - 35.0,
485+
rotate_y_text = (self.height / 2.0) - 15.0,
486486
colour = self.text_colour,
487487
tomorrow_day_name = tomorrow_day_name
488488
)

0 commit comments

Comments
 (0)