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.

  • irmadlad@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 hours ago

    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?

    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.

    • SuspiciousCarrot78@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 hour ago

      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.