Stuff for my corner of the omgloliverse
Find a file
2024-02-08 22:40:37 -06:00
.github/workflows cleanup formatting 2024-02-08 21:44:21 -06:00
LICENSE Initial commit 2024-02-07 20:15:03 -06:00
README.md add readme 2024-02-08 22:31:12 -06:00
tempest.html minor html cleanup 2024-02-08 22:40:37 -06:00

John's lolz

This repo holds miscellaneous stuff I cobbled together for use with my omg.lol profile and associated services.

Tempest

I was inspired by another omgloler who had their local live weather conditions displayed on their profile page, but I didn't want to put my weather station identifier or API token in the client-side code of my page. So I implemented a sort of API proxy: a simple GitHub Action workflow that runs every ~5 minutes. It uses secrets stored securely in the repo to fetch the weather data from the Weatherflow Tempest API, filters for just the current conditions data (not the giant mess of future-forecast details), and posts that to my paste.lol pastebin.

I can then safely use client-side scripting to retrieve the weather details from the pastebin. I cobbled together a quick test HTML page that I could use for local testing/development as I worked through how to get the data displayed the way I wanted. And then I just copied/pasted the <script /> and relevant <span /> sections to the omg.lol profile page editor. I'm pretty pleased with how it turned out!