I wanted a card that shows where the sun is in my location, so I made this. It basically takes the lat/long from Home Assistant and then plots where the sun is right now. It also throws in the moon, Jupiter, Mars, Venus, and Saturn. It also puts dotted lines for the sun path during winter solstice and summer solstice.
I’m just using a “regular old” virtualenv install of hass and haven’t tried the Hassio image yet. There’s probably a way to install new python dependencies (all those are available on PyPI) so I just have to figure out how hassio deals with dependencies and it will probably work. I’ll start by just defining the requirements/dependencies in a more standard fashion (rather than having the user install them manually and it may work).
The sun just set and I pulled out the binocs and was able to find Saturn and Venus in the sunset just fine thanks to this.
I just updated the repo with a manifest.json file that defines the requirements as defined in the docs. I’m not sure if this works for custom components or what but at least it’s a step.
For sure. I haven’t made a HACS thing yet but will figure it out and get it compliant. I also like the suggestion of making it a camera component since it might update faster.
I made some changed to the repo structure to make it HACS compliant with a custom repo but haven’t tried it out yet. If you want to test it out, please let me know if it works.
It adds as a custom repository to HACS and enables you to install the integration. All of this can be done over the web interface.
You’ll have to wait until I can access my configuration.yaml after work to try it out. When I installed manually yesterday it failed to install mattplotlib. I am on docker on amd64 architecture.
I am running hassIO in a VM on an unraid machine.
I could not install pip3 install skyfield matplotlib numpy.
Though I did get the HACS version to install.
Is there an alternative to this type of installation.
Also, and not trying to be picky but in the directions the following line should be
I am using the official home assistant docker images and matplotlib will not install. It appears that the system is trying to compile something with gcc, and that is failing.
I assume that there is not a pre-built wheel file for my architecture, and as gcc does not seem to be present in the home-assistant docker image.
I also installed through HACS, restarted HA, added the camera and ran the config check - that’s where I got the above error. Also running debian/docker/hassio