GithubHelp home page GithubHelp logo

Comments (15)

bremor avatar bremor commented on May 28, 2024 1

Haven't done it, but will do it. Have created an issue so i don't forget.
#18

from bureau_of_meteorology.

bremor avatar bremor commented on May 28, 2024

Thanks for reporting a problem. Would you mind sharing your lat/Lon? You can round to two decimal places if you would like to hide your exact location

from bureau_of_meteorology.

snowgumrd avatar snowgumrd commented on May 28, 2024

Sure.
Lat: -37.78
Lon: 145.17

from bureau_of_meteorology.

bremor avatar bremor commented on May 28, 2024

I'm not sure what happened here, I don't get an error using those coordinates. I do have some suggestions:

  • Was your internet down at the time?
  • Can you try uninstall/reinstall the entire integration?
  • Can you try different coordinates?
  • Is there anything unique about your environment that is worth mentioning?

from bureau_of_meteorology.

snowgumrd avatar snowgumrd commented on May 28, 2024

I'm not sure what happened here, I don't get an error using those coordinates. I do have some suggestions:

  • Was your internet down at the time?
  • Can you try uninstall/reinstall the entire integration?
  • Can you try different coordinates?
  • Is there anything unique about your environment that is worth mentioning?

Nope. Internet is fine.
Tried removing and reinstall, it didn't work either.
I tried melbourne CBD co-ordinates. No luck.
My home assistant instance is run on a QNAP NAS. Might that be the cause? I've got lots of integrations running but every one is unique I guess.

from bureau_of_meteorology.

bremor avatar bremor commented on May 28, 2024

Mate, i'm totally stumped. It looks like your system is failing to bind to a local port maybe? Might be a restriction on your QNAP? Might be worth some googline that specific error,
Cannot connect to host api.weather.bom.gov.au:443 ssl:default [Cannot assign requested address]

from bureau_of_meteorology.

snowgumrd avatar snowgumrd commented on May 28, 2024

Mate, i'm totally stumped. It looks like your system is failing to bind to a local port maybe? Might be a restriction on your QNAP? Might be worth some googline that specific error,
Cannot connect to host api.weather.bom.gov.au:443 ssl:default [Cannot assign requested address]

Actually, now that you mention it, i had a similar issue with the solcast integration. I had to change SSL as no to get it working.

How would I go about doing that with this integration?

from bureau_of_meteorology.

bremor avatar bremor commented on May 28, 2024

Do you mean you had to change it to http or you had to turn off ssl cert validation?

from bureau_of_meteorology.

snowgumrd avatar snowgumrd commented on May 28, 2024

Do you mean you had to change it to http or you had to turn off ssl cert validation?
In the py, I had to override
ssl = false

from bureau_of_meteorology.

bremor avatar bremor commented on May 28, 2024

Within collector.py, try updating the following line and then reboot, there are three occurances. If this works I will include it in the next release.

            response = await session.get(url)

to

            response = await session.get(url, ssl=False)

from bureau_of_meteorology.

snowgumrd avatar snowgumrd commented on May 28, 2024

Within collector.py, try updating the following line and then reboot, there are three occurances. If this works I will include it in the next release.

            response = await session.get(url)

to

            response = await session.get(url, ssl=False)

That did it! Clearly there's a pattern here. Should I be concerned about not using SSL?

from bureau_of_meteorology.

bremor avatar bremor commented on May 28, 2024

Your environment maintains a list of trusted certificate authorities, which would normally be kept up to date automatically. The ssl cert that BoM are using is signed by "DigiCert Global Root CA". So if you can, you should install this Root CA into your trusted certificate store in your environment. I’m thinking it’s best if I don’t put ssl=False into the next release.

Subject | DigiCert Secure Site ECC CA-1
Valid from 15/Feb/2019 to 15/Feb/2029
Issuer | DigiCert Global Root CA

from bureau_of_meteorology.

bremor avatar bremor commented on May 28, 2024

I have release version 0.7, but I have also created a new branch for you where SSL is disabled. I will maintain this branch, the only difference will be that ssl=False bit. It will only ever appear in "beta versions"
image

from bureau_of_meteorology.

DavidFW1960 avatar DavidFW1960 commented on May 28, 2024

did you add back day 6 yet?

from bureau_of_meteorology.

snowgumrd avatar snowgumrd commented on May 28, 2024

I have release version 0.7, but I have also created a new branch for you where SSL is disabled. I will maintain this branch, the only difference will be that ssl=False bit. It will only ever appear in "beta versions"
image

Cheers mate! Thanks for your help.

from bureau_of_meteorology.

Related Issues (20)

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.