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.

  • curbstickle@anarchist.nexusM
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 hours ago

    So I don’t have the acreage right now, so I’m going to call this gardening level - but what I do with HA includes things like:

    • Soil monitoring, mostly moisture level but I’m experimenting a bit with some NPK sensors. I have a couple of solar battery banks that power them, brings all that back wireless.
    • Automated watering - rain barrel collection (with a sensor so I know how much is in there and so I don’t run a pump dry), relay control to open up the line and auto cut off. Combines a bit with weather monitoring so I don’t water heavily if rain is coming, waters in the evening to the morning to avoid evaporation
    • Flow sensor checks the water usage off the rain barrels so I know things are working right
    • Soil temp sensor is also on the list, not doing it right now just testing a few sensors still
    • Gate controls meant for a chicken coop, right now its just raising a flag for funsies, but when I get the right property it’ll close off the coop at night to protect the chickens
    • Light sensors to make sure the plants are getting enough, purely informational
    • Barometric sensors (originally just to be alerted before a storm comes through, though I like it now so I know when my knee is going to hurt like hell so I can prep)

    Inside I have sensors to check for moisture around my water heater, automation for my lighting (like when I get out of my bed, the led strip turns on, brightness determined by room light levels and time of day), etc. I work from home, so I also have a light above my door that acts like an on-air light - if I join a call my wife/kids know not to interrupt me (light works great, kids still need operational adjustment here and there).

    If all you want is that weather dashboard though…

    Magic Mirror + OneCallWeather module + rain map module and you’ve got a slick setup, maybe add in some camera streaming via rtsp for a bonus. And if you go homeassistant later, you can add a module for that too.

      • curbstickle@anarchist.nexusM
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 hours ago

        I feel like thats giving me too much credit haha

        I am really into the idea of doing some hydroponics and microgreens too though - thats what I’m prepping for this winter at least!