this post was submitted on 09 Jun 2026
27 points (96.6% liked)

Selfhosted

59817 readers
562 users here now

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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. 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.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

So, yes this is selfhosting related. I am working on an n8n flow to pull in weather data so that I can have this data on a dashboard. I can't find any dockerized weather forecasting apps. Most of them connect to a personal weather station, which might be an option in the future. For the time being, this is a little project I'm working on.

Partial JSON snippet:

spoiler

0	
json	
cod	"200"
message	0
cnt	40
list	
0	
dt	1780693200
main	
temp	29.4
feels_like	29.23
temp_min	29.4
temp_max	29.68
pressure	1019
sea_level	1019
grnd_level	984
humidity	42
temp_kf	-0.28
weather	

I would like to display something like this:

spoiler

Current temperature: 23.25 °C
Feels like: 24.09 °C
Low / High: 23.25 °C / 23.60 °C
Humidity: 94%
Atmospheric pressure: 1023 hPa (sea level: 1023 hPa, ground level: 988 hPa)
Temperature correction factor (temp_kf): -0.35

Weather: Light rain
Weather code: 500
Short condition: Rain
Icon: 10d

So, this is for you devs or coders out there. I can produce the JSON data. I'm just not sure how to parse it to something meaningful. I'm sure Python will have to be incorporated, but unsure of how to proceed.

Maybe someone could point me in a direction to tuts, articles, or your own experience. Sorry the JSON data doesn't format correctly. Lemmy formatting doesn't seem to allow that.

ETA: For anyone wandering across this, here is the solution: https://lemmy.world/post/47961985/24201369 thanks to @captcha_incorrect for his generosity and time.

you are viewing a single comment's thread
view the rest of the comments
[–] verw@lemmy.dbzer0.com 2 points 2 days ago* (last edited 2 days ago) (1 children)

First of all, there might be more out-of-the-box tools out there for building dashboards that require little or no programming knowledge, but I've never used or looked for them. Microsoft's Power BI is one that I've heard of in passing, but fuck micro$lop lol. It's just the only example I can think of that might be more approachable. You could google something like, "open source power BI alternative" to find other options.

Here are a couple of tutorials about using Python to parse JSON:

That will only cover how to interact with the JSON data, but not how to build a dashboard, ofc. Displaying the data in some fashion (e.g. a web page) is a whole other set of tasks.

If you're new to programming in general, I recommend going through a collection of beginner tutorials on a programming language (Python is a good choice, but pretty much any will work for learning the basics). Any course like that will cover principles that apply to most languages and that would help you accomplish this task. For example, they'll cover things like reading to and from files, parsing the content of files, and doing shit with the content.

Here are a few Python courses/tutorial collections you can check out. You don't need to do all of them, but I wanted to give you some options so you're more likely to find one that you vibe with:

EDIT: Btw, you are definitly not limited to using Python for this. Lot's of other programming language will do. You just mentioned it, so I ran with that, haha.

[–] irmadlad@lemmy.world 2 points 2 days ago (1 children)

If you’re new to programming in general,

I'm not new to programming, I'm just not very strong or proficient at all at it. You've given me a lot to read, and I thank you.

Btw, you are definitly not limited to using Python for this

I mentioned Python because that seems like a language a lot of people use for this sort of thing, but I am willing to entertain any other avenues.....except perhaps Microsoft’s Power BI, which is discontinued.

Thank you.

[–] curbstickle@anarchist.nexus 1 points 2 days ago

Its not discontinued, btw, just now in the cloud and not free.

Still would not recommend though, its awful imo.