this post was submitted on 27 Jun 2023
42 points (95.7% liked)
Linux
48328 readers
118 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
lynx -dump https://wttr.in/XXXXX?u -width 127 > "/home/dethb0y/Documents/Obsidian Vault/Calendar Events/Astronomical Calendar/Weather.md"
Uses lynx to grab Wttr.in, format it appropriately, dump it into a specific MD file in my obsidian directory, which i then display in obsidian.
It is so hysterically niche that i can't imagine hardly anyone would ever need, use, or want such a thing but when i came up with the idea i simply had to make it happen.
That's such a neat trick, but why do you need to display the weather in obsidian?
I like having everything in one "dashboard" (so to speak) - calendar, weather, rss stuff.
this is something i come across sometimes - an application can be designed to do one thing i need, and do it well, but another application, which was designed to do something completely different, actually does the thing i need more conveniently, and does it well enough to work.
What does the MD file look like? Wonder if I can use it with logseq
I'd not see why not - it's just plain text.
This is what it looks like "raw": https://pastebin.com/ejY8SHim
but i use sed to add ``` to the top so it looks like a quote (since i think it looks nicer, YMMV).
I also have it set up like this so if it fails it writes an error to the file:
Now, how Logseq would display the file? I do not know but it's not doing anything fancy inside, it's all just spaced text.