mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
spacing adjustment on weather and clock. Added notes to readme about font type requing ttf. removed sensitive credentials
This commit is contained in:
@@ -15,6 +15,7 @@ git clone https://github.com/ChuckBuilds/LEDMatrix.git
|
||||
cd LEDMatrix
|
||||
```
|
||||
|
||||
|
||||
2. Install dependencies:
|
||||
```bash
|
||||
pip3 install --break-system-packages -r requirements.txt
|
||||
@@ -118,3 +119,7 @@ LEDSportsMatrix/
|
||||
- `config/`
|
||||
- `config.json` - Configuration settings
|
||||
- `config_secrets.json` - Private settings (not in git)
|
||||
|
||||
|
||||
## Fonts
|
||||
You can add any font to the assets/fonts/ folder but they need to be .ttf and updated in display_manager.py
|
||||
11981
assets/fonts/4x6.bdf
11981
assets/fonts/4x6.bdf
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
{"installed":{"client_id":"440006573525-kg1idpl6fj3i17eg6mlucaj10uk4341v.apps.googleusercontent.com","project_id":"homeassistant-309617","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"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"}}
|
||||
@@ -120,7 +120,7 @@ class Clock:
|
||||
|
||||
# Draw AM/PM (small, next to time)
|
||||
time_width = self.display_manager.font.getlength(time_str)
|
||||
ampm_x = (display_width + time_width) // 2 + 2
|
||||
ampm_x = (display_width + time_width) // 2 + 4
|
||||
self.display_manager.draw_text(
|
||||
ampm,
|
||||
x=ampm_x,
|
||||
|
||||
@@ -226,7 +226,7 @@ class WeatherManager:
|
||||
|
||||
# Draw condition text next to icon (using small font)
|
||||
condition_text = condition
|
||||
draw.text((icon_x + self.ICON_SIZE['large'] + 1, icon_y),
|
||||
draw.text((icon_x + self.ICON_SIZE['large'] + 3, icon_y), # Increased padding from 1 to 3
|
||||
condition_text,
|
||||
font=self.display_manager.small_font,
|
||||
fill=self.COLORS['text'])
|
||||
@@ -261,7 +261,7 @@ class WeatherManager:
|
||||
|
||||
# Draw additional weather metrics in bottom half
|
||||
y_start = 16 # Start metrics lower (reduced from 18)
|
||||
spacing = 6 # Reduced spacing from 7
|
||||
spacing = 7 # Increased spacing from 6 to 7 for 4x6 font
|
||||
|
||||
# Air pressure (shortened format)
|
||||
pressure = weather_data['main']['pressure'] * 0.02953 # Convert hPa to inHg
|
||||
|
||||
Reference in New Issue
Block a user