Something went wrong. Try again.
Pretty website for a WeatherFlow Tempest using InfluxDB via UDP Broadcasts
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;900&family=Space+Mono:wght@400;700&display=swap');
:root { /* Dynamic sky colors - will be updated by JS based on weather */ --sky-primary: #0ea5e9; --sky-secondary: #38bdf8; --sky-dark: #0c4a6e; --accent-warm: #f59e0b; --accent-cool: #6366f1; --text-primary: #ffffff; --text-secondary: rgba(255, 255, 255, 0.85); --text-muted: rgba(255, 255, 255, 0.6); --surface: rgba(255, 255, 255, 0.08); --surface-glass: rgba(255, 255, 255, 0.12); --surface-hover: rgba(255, 255, 255, 0.16);}
/* Weather condition themes */body.clear-day { --sky-primary: #0ea5e9; --sky-secondary: #38bdf8; --sky-dark: #0c4a6e;}
body.clear-night { --sky-primary: #1e1b4b; --sky-secondary: #312e81; --sky-dark: #0f0a2e;}
body.cloudy { --sky-primary: #64748b; --sky-secondary: #94a3b8; --sky-dark: #475569;}
body.rain { --sky-primary: #334155; --sky-secondary: #475569; --sky-dark: #1e293b;}
body.sunrise, body.sunset { --sky-primary: #f97316; --sky-secondary: #fb923c; --sky-dark: #c2410c; --accent-warm: #fbbf24;}
* { margin: 0; padding: 0; box-sizing: border-box;}
html { scroll-behavior: smooth;}
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: linear-gradient(180deg, var(--sky-dark) 0%, var(--sky-primary) 50%, var(--sky-secondary) 100%); min-height: 100vh; padding: 20px; color: var(--text-primary); position: relative; overflow-x: hidden; transition: background 2s ease;}
/* Atmospheric background layers */body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%), radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%); animation: atmosphericShift 30s ease-in-out infinite; z-index: 0; pointer-events: none;}
/* Subtle noise texture */body::after { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>'); opacity: 0.4; z-index: 0; pointer-events: none;}
@keyframes atmosphericShift { 0%, 100% { transform: scale(1) translate(0, 0); opacity: 1; } 50% { transform: scale(1.1) translate(-5%, 5%); opacity: 0.8; }}
/* Floating clouds */.cloud { position: fixed; background: rgba(255, 255, 255, 0.3); border-radius: 100px; filter: blur(40px); z-index: 0; pointer-events: none; animation: float linear infinite;}
.cloud:nth-child(1) { width: 300px; height: 100px; top: 10%; left: -300px; animation-duration: 60s;}
.cloud:nth-child(2) { width: 400px; height: 120px; top: 30%; left: -400px; animation-duration: 80s; animation-delay: 20s;}
.cloud:nth-child(3) { width: 250px; height: 90px; top: 60%; left: -250px; animation-duration: 70s; animation-delay: 40s;}
@keyframes float { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 400px)); }}
.container { max-width: 1600px; margin: 0 auto; position: relative; z-index: 1;}
header { text-align: center; margin-bottom: 50px;}
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); }}
h1 { font-size: 6em; font-weight: 900; margin-bottom: 10px; background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -3px; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));}
h1 span#weather-emoji { display: inline-block; -webkit-text-fill-color: white !important; color: white !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); }}
.subtitle { font-size: 1.2em; font-weight: 500; letter-spacing: 8px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 15px;}
.last-updated { font-size: 0.9em; font-weight: 400; letter-spacing: 1px; color: var(--text-muted); font-family: 'Space Mono', monospace;}
.last-updated span { color: var(--text-primary); font-weight: 700;}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; }}
/* Top Navigation - Top Left */.top-nav { position: fixed; top: 20px; left: 20px; z-index: 100; display: flex; gap: 8px;}
.nav-link { color: var(--text-secondary); text-decoration: none; padding: 8px 16px; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; font-size: 0.75em; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease;}
.nav-link:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: var(--text-primary);}
.nav-link.active { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); color: var(--text-primary);}
/* Theme Switcher - Top Right */.theme-switcher { position: fixed; top: 20px; right: 20px; z-index: 100; display: flex; gap: 6px;}
.theme-btn { width: 36px; height: 36px; padding: 0; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; color: var(--text-secondary); font-size: 1.2em; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;}
.theme-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); transform: scale(1.1);}
.theme-btn.active { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 40px;}
.stat-panel { background: var(--surface-glass); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 24px; padding: 32px 28px; text-align: center; min-height: 160px; display: flex; flex-direction: column; justify-content: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden;}
.stat-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent); opacity: 0; transition: opacity 0.4s;}
.stat-panel:hover::before { opacity: 1;}
.stat-panel:hover { transform: translateY(-8px) scale(1.02); background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);}
.stat-label { font-size: 0.7em; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--text-muted); margin-bottom: 16px; font-family: 'Space Mono', monospace;}
.stat-value { font-size: 3.5em; font-weight: 900; color: var(--text-primary); line-height: 1; margin-bottom: 8px; letter-spacing: -2px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));}
.stat-unit { font-size: 0.95em; color: var(--text-secondary); font-weight: 500; font-family: 'Space Mono', monospace; letter-spacing: 1px;}
.stat-meta { font-size: 0.75em; color: var(--text-muted); margin-top: 8px; font-family: 'Space Mono', monospace;}
/* Wind Compass */.stat-panel-wind { position: relative;}
.wind-compass { width: 80px; height: 80px; margin: 10px auto; position: relative; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: rgba(255, 255, 255, 0.05);}
.compass-arrow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.6s ease;}
.arrow-line { width: 2px; height: 30px; background: linear-gradient(180deg, var(--text-primary), transparent); margin: 0 auto;}
.arrow-head { font-size: 16px; color: var(--text-primary); text-align: center; margin-top: -8px; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));}
.compass-labels { position: absolute; inset: 0;}
.compass-labels span { position: absolute; font-size: 0.7em; font-weight: 700; color: var(--text-muted);}
.compass-n { top: 2px; left: 50%; transform: translateX(-50%);}
.compass-e { right: 4px; top: 50%; transform: translateY(-50%);}
.compass-s { bottom: 2px; left: 50%; transform: translateX(-50%);}
.compass-w { left: 4px; top: 50%; transform: translateY(-50%);}
/* UV Index Bar */.uv-bar { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; margin: 12px 0;}
.uv-bar-fill { height: 100%; width: 0%; transition: width 0.6s ease, background 0.6s ease; border-radius: 4px;}
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(550px, 1fr)); gap: 28px; margin-top: 40px;}
.chart-panel { background: var(--surface-glass); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 24px; padding: 36px; min-height: 400px; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);}
.chart-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4) ); opacity: 0; transition: opacity 0.4s;}
.chart-panel:hover::before { opacity: 1;}
.chart-panel:hover { transform: translateY(-8px); background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 28px 72px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.25);}
.chart-panel h3 { font-size: 1.3em; margin-bottom: 24px; color: var(--text-primary); font-weight: 700; letter-spacing: -0.5px; position: relative; padding-bottom: 16px;}
.chart-panel h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 80px; height: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent); border-radius: 2px;}
/* Sun Times */.sun-times { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 60px; padding: 24px 32px; background: var(--surface-glass); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px;}
.sun-item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 100px;}
.sun-icon { font-size: 2em;}
.sun-label { font-size: 0.75em; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted);}
.sun-time { font-size: 1.1em; font-weight: 700; color: var(--text-primary); font-family: 'Space Mono', monospace;}
.sun-progress { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden;}
.sun-progress-bar { height: 100%; background: linear-gradient(90deg, #fb923c, #fbbf24); border-radius: 4px; transition: width 1s ease; box-shadow: 0 0 10px rgba(251, 146, 60, 0.5);}
/* Weather Effects */.weather-effect { position: fixed; inset: 0; pointer-events: none; z-index: 10;}
#rain-container,#snow-container { display: none;}
#rain-container.active,#snow-container.active { display: block;}
.raindrop { position: absolute; width: 2px; height: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1)); animation: fall linear infinite;}
@keyframes fall { to { transform: translateY(100vh); }}
.snowflake { position: absolute; width: 8px; height: 8px; background: white; border-radius: 50%; opacity: 0.8; animation: snowfall linear infinite, sway ease-in-out infinite;}
@keyframes snowfall { to { transform: translateY(100vh); }}
@keyframes sway { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(20px); }}
#lightning-flash { background: rgba(255, 255, 255, 0); transition: background 0.1s;}
#lightning-flash.active { background: rgba(255, 255, 255, 0.8);}
footer { text-align: center; color: var(--text-muted); margin-top: 80px; padding: 40px 0; font-size: 0.9em; letter-spacing: 1px; border-top: 1px solid rgba(255, 255, 255, 0.1);}
/* Responsive Design */@media (max-width: 768px) { header { padding-top: 50px; margin-bottom: 30px; }
h1 { font-size: 2.5em; letter-spacing: -1px; }
.subtitle { font-size: 0.75em; letter-spacing: 2px; }
/* Minimal bottom navigation bar */ .top-nav { top: auto; bottom: 0; left: 0; right: 0; width: 100%; justify-content: center; background: transparent; border-top: 1px solid rgba(255, 255, 255, 0.3); border-bottom: none; padding: 8px 0; gap: 8px; }
.nav-link { flex: 0 0 auto; padding: 8px 20px; font-size: 0.65em; background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); }
/* Add bottom padding to prevent content from hiding under nav */ .container { padding-bottom: 60px; }
/* Theme switcher scrolls with page on mobile */ .theme-switcher { position: absolute; top: 15px; right: 15px; gap: 4px; }
.theme-btn { width: 32px; height: 32px; font-size: 1em; background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); }
.charts-grid { grid-template-columns: 1fr; }
.stat-panel { min-height: 140px; padding: 24px 20px; }
.stat-value { font-size: 2.8em; }
.chart-panel { min-height: 340px; padding: 24px; }
.tab-link { padding: 12px 24px; font-size: 0.8em; margin: 5px; }}
@media (max-width: 480px) { body { padding: 10px; }
h1 { font-size: 2em; letter-spacing: -1px; }
.subtitle { font-size: 0.65em; letter-spacing: 1px; }
/* Navigation stays at bottom (inherited from 768px) */ .nav-link { padding: 6px 16px; font-size: 0.6em; }
/* Even more compact theme switcher */ .theme-switcher { top: 10px; right: 10px; gap: 3px; }
.theme-btn { width: 28px; height: 28px; font-size: 0.85em; }
.stats-grid { grid-template-columns: 1fr; gap: 16px; }
.charts-grid { gap: 16px; }}
/* Custom scrollbar */::-webkit-scrollbar { width: 12px;}
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2);}
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 6px; border: 2px solid rgba(0, 0, 0, 0.2);}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5);}
/* Loading state */canvas {}
/* Pulse animation for updating values */@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); }}
.stat-value.updating { animation: pulse 0.6s ease-in-out;}
/* Cosmic Theme */body[data-theme="cosmic"] { --sky-primary: #1a0b2e; --sky-secondary: #4a2c6d; --sky-dark: #0f0420; background: radial-gradient(ellipse at top, #1a0b2e 0%, #0f0420 100%);}
body[data-theme="cosmic"]::before { background: radial-gradient(ellipse at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%); animation: cosmicPulse 20s ease-in-out infinite;}
@keyframes cosmicPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); }}
body[data-theme="cosmic"]::after { background-image: radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent), radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.5), transparent), radial-gradient(2px 2px at 90% 60%, rgba(168, 85, 247, 0.8), transparent), radial-gradient(1px 1px at 33% 80%, rgba(0, 217, 255, 0.6), transparent), radial-gradient(1px 1px at 15% 90%, rgba(255, 255, 255, 0.3), transparent); background-size: 200% 200%; animation: stars 60s linear infinite;}
@keyframes stars { from { background-position: 0 0; } to { background-position: 200% 200%; }}
body[data-theme="cosmic"] h1 { background: linear-gradient(135deg, #ffffff 0%, #00d9ff 50%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 0 80px rgba(168, 85, 247, 0.5);}
/* Static Theme - No Animations */body[data-theme="static"],body[data-theme="static"] * { animation: none !important; transition: none !important;}
body[data-theme="static"] .cloud { display: none;}
body[data-theme="static"]::before,body[data-theme="static"]::after { animation: none !important;}
body[data-theme="static"] h1 span { animation: none !important;}
/* Disable all hover effects in static theme */body[data-theme="static"] *:hover { transform: none !important; scale: 1 !important;}
/* But keep h1 span normal */body[data-theme="static"] h1 span:hover { transform: none !important; scale: 1 !important; opacity: 1 !important;}
body[data-theme="static"] .stat-panel:hover::before,body[data-theme="static"] .chart-panel:hover::before { opacity: 0 !important;}
/* Ultra-minimal black and white flat design */body[data-theme="static"] { background: #000 !important; color: #fff !important;}
body[data-theme="static"]::before,body[data-theme="static"]::after { display: none !important;}
body[data-theme="static"] h1,body[data-theme="static"] h2 { color: #fff !important; text-shadow: none !important;}
body[data-theme="static"] .stat-panel,body[data-theme="static"] .chart-panel { background: #000 !important; border: 2px solid #fff !important; backdrop-filter: none !important; box-shadow: none !important; color: #fff !important;}
body[data-theme="static"] .stat-panel::before,body[data-theme="static"] .chart-panel::before { display: none !important;}
body[data-theme="static"] .stat-label,body[data-theme="static"] .stat-unit,body[data-theme="static"] .stat-meta { color: #999 !important;}
body[data-theme="static"] .stat-value { color: #fff !important;}
body[data-theme="static"] .top-nav .nav-link,body[data-theme="static"] .theme-switcher .theme-btn { background: #000 !important; border: 2px solid #fff !important; color: #fff !important; backdrop-filter: none !important;}
body[data-theme="static"] .top-nav .nav-link.active { background: #fff !important; color: #000 !important; border-color: #fff !important;}
body[data-theme="static"] .theme-btn.active { background: #fff !important; color: #000 !important; border-color: #fff !important;}
body[data-theme="static"] .wind-compass,body[data-theme="static"] .uv-bar { border-color: #fff !important; background: #000 !important;}
body[data-theme="static"] .compass-arrow,body[data-theme="static"] .compass-labels { color: #fff !important;}
body[data-theme="static"] .uv-bar-fill { background: #fff !important; box-shadow: none !important;}
body[data-theme="static"] .sun-times { background: #000 !important; border: 2px solid #fff !important;}
body[data-theme="static"] .sun-progress { background: #333 !important;}
body[data-theme="static"] .sun-progress-bar { background: #fff !important;}