Coder Social home page Coder Social logo

vche / appdaemon_weatherentity Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 5.0 670 KB

Appdaemon widget for displaying homeassistant weather entities in dashboards

License: GNU General Public License v3.0

CSS 9.77% HTML 48.95% JavaScript 39.85% Shell 1.43%

appdaemon_weatherentity's People

Contributors

jacobosanchez avatar vche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

appdaemon_weatherentity's Issues

Instalation Issues

Sorry to ask this but how do I install the files behind this so its working when I reference it in the appdaemon config?

appdaemon_weatherentity-master.js - file not found error

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'

Cosmetc arguments

weatherentity

Please can you tell me how to color white the today and next days forecast? Thanks in advance and thank you for this wonderful widget

Dark Sky rendering failure

Hi! Thanks for the widget, really useful.
But I found that it fails to render if forecast.precipitation is null:

image

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'.

Typo in base_weatherentity.html

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.

<div class="vertical-detaili vertical-detail-text" data-bind="visible: forecast_temperature_min3">

[FEATURE REQUEST]

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.

icons not displayed

image

Can you help me understand how I can fix the problem?
Some icons are not displayed

thanks

Maurizio

Forecasts no longer work

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?

Is not compliant

Hi there,
i try to add this repository via HACS but won' t work.
HACS say: Repository structure for master is not compliant
I try, also, to choose different category but nothing.

image

what can i do?

entities

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.