Hi,
i am trying to clean up the weather widget of HA dashboard, leaving only the temperature information. Pressure and wind are not realy important here. Now i tried to remove “pressure” from the list of monitored_conditions in configuration.yaml, but this only leads to:
configuration.yaml:
Weather prediction
sensor:
platform: darksky
language: de
api_key: sdfsdfsdfsdf
forecast:
You mean “To use all the features you need to add these sensors to monitored_conditions”? Yes i did read that, that is why i removed “pressure”, in hopes to remove it from the “used features”. But it still tries to look for it, as you can see in the screenshot. Or do you mean something else?
Hey @DWST I think @nickrout got a bit confused about what you were trying to do.
I was having the same problem, and didn’t want a few of the arguments there too, pressure and wind didn’t really mean much to me either. So i just decided to try and work out how to get rid of them. Not sure if this is the correct way, I am sure @ReneTode will correct me if not, but this worked for me.
You need to find the install location for AppDaemon, for me this way in,
if you want to manipulate widgets there is a better way. create a custom widget.
you do that like this:
create a directory custom_widget in your configuration directory (where appdaemon.yaml is)
copy the files from a widget that you want to manipulate to it and change the names from the files
in this case the dir baseweather dir with its files and the weather.yaml for example change the name to myweather.
inside the js file and the css file and the yaml file change all places where it says weather to myweather
now you are ready to use your own custom weather widget so change widget_type in your dashboard widget to myweather.
if you do it that way, your widget will be there also when you update appdaemon (in your case it will get lost) but it is also possible for people working with docker or hassio.
for people that dont know where to find the original widgets on their system, go to:
@DWST did you also try the weather_summary?
i dont use weather but it has little info, and might be more wath you like.
I knew this wasn’t quite the correct answer after I typed it, and actually thought about it a bit more. I guessed messing with the system files wasn’t the best practice, so was trying to do exactly what you mention as you replied,
But as I have said to you before @ReneTode my skills are a bit lacking, still learning more and more each day, but I was getting onto the right path, but just couldn’t quite figure it out in time before you beat me
So yeah, ignore me @DWST and listen to the master @ReneTode
Ok, still learning, also new to Github, so hopefully this works. I have modified the weather widget for you @DWST and upload the code here,
So just copy of the weather_mod.yaml file, and baseweather_mod directory and contents to your custom_widgets folder in appdeamon folder. And then just add
weather:
widget_type: weather_mod
to your dashboard, and you should be good to go with no pressure reported
Maybe if you get a space second @ReneTode you could just double check this is all ok
you did upload the right files, so if it works for you it will normally also work for others.
dont forget to modify your readme.
add some info why you created it, what it is, what it does, what people need to do to get it working and a pic
Wow thanks a lot Cee and ReneTode, sorry for the late response!
Will try the modded version this evening.
I saw some people having actual text like “It will rain in 2 hours”, “there is snow today”. (cannot find the screenshot right now). Did they use that “weather_summary”? Or is it also modded? Is weather_summary the widget_type?
i dont know if it is what you are looking for.
such actual text need to be in a sensor in home assistant.
so if you have that somewhere, you can have it in the dashboard.
Thanks for sharing this weather mod.
I’ve copied in the custom_widgets folder in appdeamon folder the weather_mod.yaml file, and baseweather_mod directory and its contents.
And modified my dashboard with
HA has changed the name from some sensors, so the default naming doesnt work anymore.
you need to use this part and on the right side give the names from the sensors you have.
i think there are 4 sensors that got another name.
Apologises @woody4165 that’s my fault. I was always getting the same reading for the apparent temperature to the normal temperature, so I removed that section as well. Seem’s i upload the file with the missing code. If you want to add it back in, just edit the baseweather.html file and on line 8 add in this code,