Polar plot of the Sun, Moon, a few planets, and the solstices

FYI the component breaks in 2022.04 with errors related to camera width. I have fixed this in version 1.4 of the component so if you upgrade it should work.

Please consider making an “down sized” integration which creates a sensor with basic information about the moons position (azimuth, elevation etc.) and phase?
Then this sensor can be used in other cards.

Any recent updates on this project? Added repo and downloaded successfully.
But after adding
camera:
platform: ha_skyfield
show_constellations: false

Seems like Configuration won’t pass the check, circle just keeps rotating and never validates.

Perhaps because that config isn’t yaml?

But what does the log say?

What hardware are you running on. This is very cpu intensive.

Hey Nick, thanks for quick response.
I’m running hassio on RPI4-64 4GB, using 12% cpu prior to enabling this integration.
What do you mean the config isn’t yaml? Instructions say to add it to Config.

No log entry for this, as I’m able to add in the camera code to config, but when I Check Config prior to reboot it never completes the check… circle just keeps spinning.

I do see 2 seperate log errors when I initially installed the integration: “Error while processing template”, and “TemplateError”. Both have fairly long report logs.

–deleted–

That error is coming from something completely different. Fix your template.

Oops, your right, that log has nothing to do with this. I forgot the night before I added in a Compass integration I was playing around with.
Regardless, it passes yaml check, so this still doesnt help me fix the issue with THIS integration and that it won’t pass the yaml check.

Are you able to cure the misery arising from 2024.2.0 ? where it says “mathplotlib not found” ? TIA

Others are seeing that issue as well. Not sure how to fix yet, but tracking in “Entity not available: camera.skyfield” after update to HA 2024.2.0 · Issue #24 · partofthething/ha_skyfield · GitHub

Newby to HA. Thanks for this great repo for us space junkies. Is it possible to get the image in dark mode? This will be great when used in the evening when stargazing.

1 Like

Is there a dark mode available for the picture?

2 Likes

Will there be a fix for the problem with the „ Entity not available: camera.skyfield“ after the HA Update and the error with the matplotlib that is a dependency and can’t be installed anymore?

GitHub Issue #26 has some techniques for dark mode. It involves editting one of the files in the custom component. I think the results are pretty. Here is my one line change: plt.style.use('dark_background') in bodies.py

Hi, I’ve really enjoyed this integration in the past, but never overcame the issues with the HA Updates. I had an idea today and whipped it up. Basically, I’ve offloaded the plot generation to a webserver and I’m showing the image on the dashboard. It’s great to have the plot back again. If you are interested in using what I did, check it out here: GitHub - larryjmoore/skyfield_web: See the apparent positions of the Sun, Moon, and planets. Great to display in Home Assistant..

I made a big update to the integration today that adds an optional browser-rendered SVG mode that looks great in dark mode. Additionally, I highly optimized the calculation so it uses something like 1000x less CPU.

1 Like

OK - I’ll fully accept that I have made a silly mistake but I have tried to install this and not got very far.

I installed the custom HACS integration, downloaded it and restarted HA. I got an error that matplotlib was not available so I tried to install it as per the documentaiton;

➜  ~ pip3 install skyfield matplotlib numpy  
Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/
Collecting skyfield
  Downloading skyfield-1.54-py3-none-any.whl.metadata (2.4 kB)
Collecting matplotlib
  Downloading matplotlib-3.11.1.tar.gz (32.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 32.6/32.6 MB 3.3 MB/s  0:00:09
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      + meson setup /tmp/pip-install-ba4u04qf/matplotlib_e3fcfcc4c15a48288c97a8ece2b754d2 /tmp/pip-install-ba4u04qf/matplotlib_e3fcfcc4c15a48288c97a8ece2b754d2/.mesonpy-4ghgc1oc -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-ba4u04qf/matplotlib_e3fcfcc4c15a48288c97a8ece2b754d2/.mesonpy-4ghgc1oc/meson-python-native-file.ini
      The Meson build system
      Version: 1.11.2
      Source dir: /tmp/pip-install-ba4u04qf/matplotlib_e3fcfcc4c15a48288c97a8ece2b754d2
      Build dir: /tmp/pip-install-ba4u04qf/matplotlib_e3fcfcc4c15a48288c97a8ece2b754d2/.mesonpy-4ghgc1oc
      Build type: native build
      Program python found: YES 3.14.5 3.14.5
      Project name: matplotlib
      Project version: 3.11.1
      
      ../meson.build:1:0: ERROR: Unknown compiler(s): [['cc'], ['gcc'], ['clang'], ['nvc'], ['pgcc'], ['icc'], ['icx']]
      The following exception(s) were encountered:
      Running `cc --version` gave "[Errno 2] No such file or directory: 'cc'"
      Running `gcc --version` gave "[Errno 2] No such file or directory: 'gcc'"
      Running `clang --version` gave "[Errno 2] No such file or directory: 'clang'"
      Running `nvc --version` gave "[Errno 2] No such file or directory: 'nvc'"
      Running `pgcc --version` gave "[Errno 2] No such file or directory: 'pgcc'"
      Running `icc --version` gave "[Errno 2] No such file or directory: 'icc'"
      Running `icx --version` gave "[Errno 2] No such file or directory: 'icx'"
      
      A full log can be found at /tmp/pip-install-ba4u04qf/matplotlib_e3fcfcc4c15a48288c97a8ece2b754d2/.mesonpy-4ghgc1oc/meson-logs/meson-log.txt
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> matplotlib

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
➜  ~ cat /tmp/pip-install-ba4u04qf/matplotlib_e3fcfcc4c15a48288c97a8ece2b754d2/.mesonpy-4ghgc1oc/meson-logs/meson-log.txt             
cat: can't open '/tmp/pip-install-ba4u04qf/matplotlib_e3fcfcc4c15a48288c97a8ece2b754d2/.mesonpy-4ghgc1oc/meson-logs/meson-log.txt': No such file or directory

What have I missed?
Susan

1 Like

You’re right there was still an issue with matplotlib. I’ve now fully removed that dependency and it should work out of the box on HACS now and even has UI config now. Thanks for trying it out.