Home Assistant Community

7 Day Weather Forecast

#22

I have provided the link in the package.

1 Like

#23

indirectly related to this thread: is it possible to keep the code updated automatically (or semi automatically, just clicking a button or little more, but not going through the copy/paste and change the files)?

I use HASSIO

0 Likes

#24

used your code but do not get the data

0 Likes

#25

here?

\UBUNTU\config\www\dark_sky\DarkSky-icons\PNG

0 Likes

#26

The www folder should be in the same location as your configuration.yaml file.

0 Likes

#27

The code is designed to automatically update the names.

0 Likes

#28

? It is, that’s a HASSIO configuration

0 Likes

#29

Then, the path should be \UBUNTU\config\www\dark_sky\

0 Likes

#30

@anon35356645

Were you able to get the data to show? Mine is similar to yours with no icons or the correct days showing. I have the icons here \config\www\dark_sky.

Forecast

0 Likes

#31

@arsaboo Your weather.yaml file references /local/dark_sky in this line: {{ '/local/dark_sky/' ~ states.sensor.dark_sky_icon.state ~ '.png'}}

Should that be /local/www/dark_sky/ ? It seems like a couple of people are experiencing the same issue, so I’m wondering if the path is incorrect.

0 Likes

#32

/local refers to the www folder and it should be in the same location as configuration.yaml. You can see my directory structure in my repo.

0 Likes

#33

I see, thanks for clarifying.

Is it possible that the automation to update the icons and hasn’t been run yet after the users have restarted? Your code only has triggers to monitor state changes, but I don’t know if the initial startup of HA triggers a state change. I have an additional trigger that runs the automation when home assistant starts, though I didn’t actually test it to see if it works without it.

0 Likes

#34

Yes, that should be it. In my case, I run the script once on start (see here) and then everytime on update.

0 Likes

#35

Thanks.

For those who are having this issue, this is how I’m doing it. I added this trigger to the automation in the weather.yaml file:

      - platform: homeassistant
        event: start
0 Likes

#36

Not sure what happened but I re-extracted the icons to the folder and it is now showing. Now I just need the days of the week to show up

Forecast2

0 Likes

#37

Try manually running the python script from services to see if it is working for you.

0 Likes

#38

Hmmm, I added this to the trigger and restarted but it still didn’t update the names.

  • platform: homeassistant
    event: start
0 Likes

#39

same with me, I managed the icons, bu tnot the dates

0 Likes

#40

all files there, all SVG and PNG?

0 Likes

#41

It seems like you’re still not able to run the python script. I believe the icons will show up without the python script because they obtain the path directly from the weather.yaml file. You need to troubleshoot why the python script is not executing.

Did you add python_script: to your configuration.yaml file? Did you name the python file correctly and place it in a sub-folder called python_scripts?

0 Likes