core icon indicating copy to clipboard operation
core copied to clipboard

Aurora Integration always show 0% visible

Open markjsmith opened this issue 2 years ago • 8 comments

The problem

The integration always shows 0% visible, never changing, while an app on my phone has gone up to highly probable visibility by the naked eye at the same location during the last month. I would have expected it to at least be showing 10-20-or something percent?

image

What version of Home Assistant Core has the issue?

2022.11.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Aurora

Link to integration documentation on our website

https://www.home-assistant.io/integrations/aurora/

Diagnostics information

Not available on this integration

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.aurora
Source: helpers/update_coordinator.py:151
Integration: Aurora (documentation, issues)
First occurred: 22 November 2022 at 20:30:42 (1 occurrences)
Last logged: 22 November 2022 at 20:30:42

Error fetching Aurora Visibility data: Error updating from NOAA: Cannot connect to host services.swpc.noaa.gov:443 ssl:default [Try again]

Additional information

I can connect to the server and access the server via a web browser and see the file structure and as the error above only appears once per reboot i assumed on the retry it is connecting?

image

markjsmith avatar Nov 23 '22 16:11 markjsmith

Hey there @djtimca, mind taking a look at this issue as it has been labeled with an integration (aurora) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of aurora can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign aurora Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


aurora documentation aurora source (message by IssueLinks)

home-assistant[bot] avatar Nov 23 '22 16:11 home-assistant[bot]

I have the same issue but a different cause. The NOAA data has 0-360 degree longitudes and HA uses -180-180 causing anyone in the west to get 0 all the time. I think the fix is as easy as adding the following line in the init.py under def get_forecast_data.

longitude = longitude % 360

calabresemic avatar Dec 08 '22 01:12 calabresemic

It's terrible how unreliable this is. To the point it's a waste of space with no fix yet.

image image image

I was just outside and could see the northern lights.

Who do we need to tag for this to be fixed?

Tarun80 avatar Feb 27 '23 08:02 Tarun80

same issue here, never reports anything apart from 0%

fleshinachair avatar Feb 27 '23 10:02 fleshinachair

I made a pull request against the repo for the API but it hasn't been pulled into the home assistant project yet. If you're interested I can share my appdaemon workaround. Screenshot_20230227_034630_Home Assistant

calabresemic avatar Feb 27 '23 12:02 calabresemic

Yes Please!

markjsmith avatar Feb 27 '23 17:02 markjsmith

@calabresemic can you link to the PR? I can't find it in the core repo. I haven't had time to look at these issues on this one, but if there is a fix I'm happy to do what I can to get it incorporated.

djtimca avatar Feb 27 '23 17:02 djtimca

@djtimca you already approved it but I'm guessing the python package needs to get updated and pushed to the home assistant build.

https://github.com/djtimca/aurora-api/pull/1

calabresemic avatar Feb 27 '23 18:02 calabresemic

Yes Please!

You add it and supply lat and long and an interval, optionally. I have it push to an mqtt sensor but there's other ways to implement it as well.

https://github.com/calabresemic/lab-files/blob/main/home-assistant/appdaemon/auroranotify.py

calabresemic avatar Feb 27 '23 18:02 calabresemic

It'd be nice to see a few other alternatives as well, such as:

  • https://www.aurorawatch.ca/
  • https://auroraforecast.com/
  • https://www.spaceweatherlive.com/en/auroral-activity/aurora-forecast.html

Tarun80 avatar Feb 28 '23 17:02 Tarun80

Is it just me or is this still not working?

markjsmith avatar Mar 07 '23 21:03 markjsmith