Comments (10)
Graph like this looks great. It's from app Trail Sense.
But there isn't moon entity in Home Assistant.
from home-assistant-sun-card.
But the moon can be out at the same time than the sun, for example here the moonrise is at 14:06. Also in that way it would be difficult to represent the moon phase in a way that looks good enough
from home-assistant-sun-card.
@AitorDB astral v3.0 supports this. so if new version is added to HA this will be possible to add.
from home-assistant-sun-card.
I'd love see the moon rise/set times and elevation too, but unfortunately it is currently a gap in Home Assistant integrations.
I've been pulling moon information from my weather integration, but that's kind of kludgy to try to integrate in a general way.
The Python Astral package, https://pypi.org/project/astral/, which I believe is used by both the builtin Sun sensor and pnbruckner's much improved ha-sun2 sensor only calculates moon phase. So a new library or some work on astral would be needed.
from home-assistant-sun-card.
I have seen this request on Reddit too, I'm bit on the fence with this (whether it should be another card or not), the reasons for it are the needs of probably a new graph, new integration, etc.
from home-assistant-sun-card.
How about just adding a second object as the Moon behind the sun, and this object will appear as soon the sun hits the Horizon? Currently the sun is disappearing on the Horizon, so this might be an easy first solution for this.
Something like that - red is the "rising" Moon:
from home-assistant-sun-card.
@LiJu09 there's a moon integration, however it seems to only showthe current state of it (new moon, full moon, etc.) and not very used, "it's used by 3.7% of the active installations"
from home-assistant-sun-card.
Ok I understand the problem here.
Not sure if it is possible, but there might be a way to calculate the moon rise.
https://boards.straightdope.com/t/algorithm-to-calculate-sun-moon-rise-set-with-example/236751/13
I had no time to do the math yet, but if there are others interested in it, it might be worth it.
from home-assistant-sun-card.
There is an old, open pull request against Astral to add next new moon and next full moon. Looks like it was created by someone trying to get support into Home Assistant.
PyEphem can do calculations for the moon and many other celestial bodies. It isn't currently used in Home Assistant.
- https://rhodesmill.org/pyephem/quick.html
- https://community.home-assistant.io/t/astronomical-events-sensor/9840/5
from home-assistant-sun-card.
@AitorDB there is a TypeScript package from the author of Astral: https://github.com/sffjunkie/astral-ts
maybe this can be used to add the moon to the graph (probably with an option to show only the sun, only the moon, or both).
The view from @LiJu09 would be awesome 👍
from home-assistant-sun-card.
Related Issues (20)
- CZ language
- Graphics not in sync
- Change Styling / Font-Size HOT 2
- UA language
- 12h time makes next Dawn the same as sunset time and darkmode won't apply HOT 1
- Error translation IT
- Dutch Translation proporsal from google
- Setup with Synology Docker Container
- Feature Request: Change font sizes HOT 1
- Feature Request: Support for Moon visualization HOT 3
- Javascript version
- Enhancement: Rename Solar Noon HOT 2
- add Ukraine language
- Enhancement: add clock
- TypeError: SVGGeometryElement.getPointAtLength: Argument 1 is not a finite floating-point value.
- Manual installation HOT 1
- Greek Language Support
- Incorrect Translation
- Own translation
- Dead repository? Any living fork? How to build it?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-sun-card.