vche / appdaemon_weatherentity Goto Github PK
View Code? Open in Web Editor NEWAppdaemon widget for displaying homeassistant weather entities in dashboards
License: GNU General Public License v3.0
Appdaemon widget for displaying homeassistant weather entities in dashboards
License: GNU General Public License v3.0
Sorry to ask this but how do I install the files behind this so its working when I reference it in the appdaemon config?
Currently running AppDaemon4 (0.7.1) - HASSIO 2021.11.5
custom-widgets folder created inside: /config/appdaemon/
2021-12-15 02:58:08.365607 INFO AppDaemon: Loading custom widget 'appdaemon_weatherentity-master'
2021-12-15 02:58:08.366979 WARNING AppDaemon: ------------------------------------------------------------
2021-12-15 02:58:08.368180 WARNING AppDaemon: Unexpected error during DASH creation
2021-12-15 02:58:08.369280 WARNING AppDaemon: ------------------------------------------------------------
2021-12-15 02:58:08.372184 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/appdaemon/dashboard.py", line 875, in get_dashboard
dash = self._conditional_compile(name, skin, recompile)
File "/usr/lib/python3.9/site-packages/appdaemon/dashboard.py", line 829, in _conditional_compile
dash = self._get_dash(name, skin, skindir)
File "/usr/lib/python3.9/site-packages/appdaemon/dashboard.py", line 641, in _get_dash
widgets = self._get_widgets()
File "/usr/lib/python3.9/site-packages/appdaemon/dashboard.py", line 736, in _get_widgets
with open(jspath, "r") as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/config/appdaemon/custom_widgets/appdaemon_weatherentity-master/appdaemon_weatherentity-master.js'
Hi! Thanks for the widget, really useful.
But I found that it fails to render if forecast.precipitation is null:
The fix is simple, something like this:
if (self.parameters.forecast_precip_unit == "%") { precip = forecast.precipitation_probability.toFixed(0); }
else { precip = forecast.precipitation ? forecast.precipitation.toFixed(1) : 0; }
Also is it possible to add some configuration for date formatting? As I can see it uses US style (M/D), but I'd like something like 'DD MMM'.
Hi
thanks for your awesome work!
Your widget works like a charm but i just want to let you know that in line 152 in base_weatherentity.html the class="vertical-detaili
has an extra 'i' at the end that leads to a slightly missalignment of the third weather forecast div because the padding of the vertical-detail css class is not applied.
Thank you for this code. Working well in my HADashboard.
Could you please point me in the right direction as to how I could modify the code to be able to display the Day Of Week Name (eg Monday, Tuesday) etc?
I managed to add a line to show the day number (0 for Sunday, 1 for Monday etc - unless it was showing 0 for today etc.) but it is beyond my skills to get the widget to display the day name. This is not an issue but a feature request.
Any pointers would be greatly appreciated.
Thanks.
Hi, thanks for this awesome widget. It's been a great addition, since the default AppDaemon weather widget is still stuck using the non-free Dark Sky API. Just pointing to a weather entity on HA is a smart choice and decouples the dependency.
Unfortunately, HA made some recent changes in 2024.04 and now weather forecasts are no longer attributes on the entity. They must be accessed by a service call, https://www.home-assistant.io/integrations/weather/#service-weatherget_forecasts
I'm not sure if AppDaemon can directly call a service like that, if not it might require something like a timed template or other automation to populate a different entity with the forecast data.
Has there been any work or thought on getting forecasts working again?
Good day! Tell me, please, how to set the parameters for "entities:" correctly?
That's not how it works:
entities:
temperature: sensor.openweathermap_temperature
humidity: sensor.openweathermap_humidity
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.