🌈️ apply a wallpaper based on the weather outside
0

Configure Feed

Select the types of activity you want to include in your feed.

style(treewide): deno fmt

Angel Wang (Jun 23, 2026, 5:06 PM -0600) c87b8dde 7dba1cc5

+4 -15
+1 -1
.github/workflows/build.yml
··· 43 43 44 44 linux-x86_64: 45 45 runs-on: ubuntu-latest 46 - 46 + 47 47 steps: 48 48 - name: Setup repo 49 49 uses: actions/checkout@v4
-1
src/analyze/index.ts
··· 22 22 await fs.cp(cachePath, `${cachePath}.bak`, { force: true }) 23 23 } 24 24 25 - 26 25 const imageData = { files: [] } as ImageAnalysisData 27 26 28 27 await runPreAnalysis(config.preAnalysisCommands)
+3 -13
src/apply/index.ts
··· 1 1 import { colordx } from "@colordx/core" 2 2 import type { ImageAnalysisData } from "../analyze/analysis.ts" 3 - import { 4 - applyConfigPath, 5 - cachePath, 6 - chalkDebug, 7 - easeOutQuint, 8 - loadConfig, 9 - map, 10 - mapEased, 11 - } from "../utils.ts" 3 + import { applyConfigPath, cachePath, chalkDebug, easeOutQuint, loadConfig, map, mapEased } from "../utils.ts" 12 4 import { type ApplicationConfig, defaultConfig, findMatchingImages, getOpenMeteoData } from "./application.ts" 13 5 import * as SunCalc from "suncalc" 14 6 import "zx/globals" ··· 44 36 ) 45 37 46 38 console.info(`Current cloud cover percentage is ${openMeteoData.cloudCover}%!`) 47 - console.info( 48 - `Current shortwave radiation is ${openMeteoData.shortwaveRadiation} W/m²!`, 49 - ) 39 + console.info(`Current shortwave radiation is ${openMeteoData.shortwaveRadiation} W/m²!`) 50 40 console.info(`Current sun altitude is ${currentSunData.altitude}°!`) 51 41 52 42 const hueValue = Number(currentSunData.altitude) >= -0.833 ··· 67 57 1000, 68 58 config.lightnessRange.start, 69 59 config.lightnessRange.end, 70 - (x: number) => Math.pow(x, 1/4), 60 + (x: number) => Math.pow(x, 1 / 4), 71 61 ) 72 62 73 63 // if the current sun altitude is less than that of dawn/dusk