-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.ps1
More file actions
35 lines (31 loc) Β· 1.55 KB
/
Copy pathsetup.ps1
File metadata and controls
35 lines (31 loc) Β· 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Enhanced Weather Monitor Setup Script
# Run this in PowerShell to install dependencies
Write-Host "Setting up Enhanced Weather Monitor..." -ForegroundColor Cyan
Write-Host "=====================================" -ForegroundColor Cyan
# Check if Python is available
try {
$pythonVersion = python --version 2>$null
Write-Host "β Python found: $pythonVersion" -ForegroundColor Green
} catch {
Write-Host "β Python not found. Please install Python first." -ForegroundColor Red
exit 1
}
# Install dependencies
Write-Host "`nInstalling required packages..." -ForegroundColor Yellow
try {
pip install -r requirements.txt
Write-Host "β Dependencies installed successfully!" -ForegroundColor Green
} catch {
Write-Host "β Failed to install dependencies. Please check your pip installation." -ForegroundColor Red
exit 1
}
Write-Host "`nSetup complete!" -ForegroundColor Green
Write-Host "`nUsage examples:" -ForegroundColor Cyan
Write-Host " python weather_monitor_enhanced.py KCOHOTSU8" -ForegroundColor White
Write-Host " python weather_monitor_enhanced.py KCOHOTSU8 --interval 30" -ForegroundColor White
Write-Host "`nFeatures:" -ForegroundColor Cyan
Write-Host " β’ htop-like interface with live updates" -ForegroundColor White
Write-Host " β’ Color-coded values based on weather ranges" -ForegroundColor White
Write-Host " β’ Real-time sparkline graphs" -ForegroundColor White
Write-Host " β’ 60-second refresh (customizable)" -ForegroundColor White
Write-Host " β’ Fallback display if rich library unavailable" -ForegroundColor White