view the rest of the comments
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
-
No low-effort posts. This is subjective and will largely be determined by the community member reports.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Scoping first, code ideas at bottom. Kewl?
Is this a "learn it by coding it" project or is it a "I want this thing to exist, no one has done it, but my code skills aren't quite there" project?
If the latter, would you consider iterating via llm (as you mention n8n, so I figure you're in that space anyway) or is this a purely a learn by doing thing?
Come to think of it, there is actually a third option here. You could get the LLM to teach you how to code it by writing some pseudo code and asking it for pointers / starting steps. Claude web is pretty good for that sort of thing, I think. You can get it to tailor its lessons to what you need without the tedium of starting at "Hello World".
You seem like the sort that could keep that interaction honest and not let it just do everything.
PS: I read about your setup - sounds brilliant. Go you good thing.
PPS: n8n has a Code node (JavaScript), and parsing that weather JSON into a formatted string is probably like 15 lines of code. Something like -
const data = $input.first().json;
return [{ json: { temperature: data.list[0].main.temp } }];
add a Code node after your HTTP request in n8n. Get one single value out first. If you see a temperature number in the output, you win.
Pulling Python in just to parse JSON is probably adding a tool you don't need for this.
JavaScript may be ass but it's literally there, so it's omnipresent ass. :)
Once you've got the JSON parsed, turn it into one small HTML weather card.
const data = $input.first().json; const item = data.list[0];
const html = `
return [{ json: { html } }];
(Sorry about the formatting ; Lemmy formatting is weird AF)
Anyway, as one journeyman to another, that's where I'd start poking. ICBW.
This is a practical use learning project. I'm sure there have been many iterations of what I'm trying to learn. I'm a prolific reader and consume a lot of data, but I learn the best by hands on. Read, do, screw it up, rince/repeat ad nauseam until I get it right, and then I write that shit down because my brain is shit at remembering.
Perfect. Then my third suggestion stands - get it make you a bespoke training module.
Create a project container: upload the source documents already cited by others / ones you find useful. Just 4 or 5.
Add the rule "You are helping me learn ____. You must not provide full refactors unless specifically asked for. Use Socratic method where appropriate".
Pseudo code what you want to do (hell, draw a flow chart) and ask "based on what I want to do, your background knowledge and the contents of the container, what's the first thing I need to learn? How should I approach this?"
Then ask "why?"
Hell, get it to make you coding exercises.
After each session, get it to make you a handover note in markdown format. Download it and then add that to your container. (Later on, you can get really fancy and start making your own llm-wiki)
People shit on LLMs as a knee jerk thing... but coding IS a language...and if you understand the logic, the rest is syntax. Also, it's not as if you're making some million dollar mission critical thing- you're teaching yourself through successive approximation.
If you don't feel comfortable using online models, there are even local alternatives.
I still think JavaScript is the faster way for this, but who knows.
Well yes, and both sides of the coin have valid points. I do use AI occasionally, and at the very least it gets me going in the right direction, tho not always 100% accurate.