Git Product home page Git Product logo

hubitat-weatherstack's People

Contributors

kirkhansen avatar mrisher avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

mrisher

hubitat-weatherstack's Issues

Handshake Exception Error

I'm seeing some sort of handshake exception in the logs with poll and refresh. Wasn't home over the weekend, but it looks like the driver stopped updating 7-22 at noon.

Any thoughts as to what is going on?

image

Driver Not Updating?

I have been seeing issues with my driver today not refreshing. Pull from Hubitat log below. I reset my API Key on Weatherstack to see if that would fix, but it did not. Still getting the same error before and after resetting the API Key

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed on line 281

image

estimateLux() Fails On Line 326

Hi Kirk,

Not sure if you're actively monitoring this project, but I tried to add your code as a virtual device in my Hubitat, and encountered this error while polling. (If I exit the estimateLux() function with return 0 as soon as it begins, everything else appears to work normally.)

Presently, the error is encountered on this line:
lux = (l < 50f ? 50L : l.trunc(0) as long)

If it helps, here is the (redacted) output from my log:

dev:2662020-06-30 14:26:05.965 errorgroovy.lang.MissingMethodException: No signature of method: java.lang.Long.trunc() is applicable for argument types: (java.lang.Integer) values: [0]
Possible solutions: print(java.lang.Object), print(java.io.PrintWriter), toLong(), dump(), find(), any() on line 326 (poll)
dev:2662020-06-30 14:26:05.741 debugLocal Weather: between noon and sunset
dev:2662020-06-30 14:26:05.736 debugLocal Weather: localTime: Tue Jun 30 14:26:05 CDT 2020 | sunriseTime: Tue Jun 30 05:21:52 CDT 2020 | noonTime: Tue Jun 30 12:55:47 CDT 2020 | sunsetTime: Tue Jun 30 20:29:41 CDT 2020
dev:2662020-06-30 14:26:05.732 debugLocal Weather: twilight_begin: Tue Jun 30 04:48:07 CDT 2020 | twilight_end: Tue Jun 30 21:03:27 CDT 2020 | tz_id: America/Chicago
dev:2662020-06-30 14:26:05.729 debugLocal Weather: weather_code: 113 | cloudcover: 0
dev:2662020-06-30 14:26:05.695 debugLocal Weather: [results:[sunrise:2020-06-30T10:21:52+00:00, sunset:2020-07-01T01:29:41+00:00, solar_noon:2020-06-30T17:55:47+00:00, day_length:54469, civil_twilight_begin:2020-06-30T09:48:07+00:00, civil_twilight_end:2020-07-01T02:03:27+00:00, nautical_twilight_begin:2020-06-30T09:04:48+00:00, nautical_twilight_end:2020-07-01T02:46:46+00:00, astronomical_twilight_begin:2020-06-30T08:13:14+00:00, astronomical_twilight_end:2020-07-01T03:38:20+00:00], status:OK]
dev:2662020-06-30 14:26:05.134 debugLocal Weather: [request:[type:Zipcode, query:60606, language:en, unit:f], location:[name:Local, country:USA, region:Illinois, lat:42.511, lon:-80.964, timezone_id:America/Chicago, localtime:2020-06-30 14:20, localtime_epoch:1593526800, utc_offset:-5.0], current:[observation_time:07:20 PM, temperature:86, weather_code:113, weather_icons:[https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png], weather_descriptions:[Sunny], wind_speed:12, wind_degree:110, wind_dir:ESE, pressure:1013, precip:0, humidity:67, cloudcover:0, feelslike:91, uv_index:6, visibility:10, is_day:yes]]
dev:2662020-06-30 14:26:05.130 debugLocal Weather: getObservation returned data
dev:2662020-06-30 14:26:04.429 debugLocal Weather: Executing 'poll', location: 60606

I'm just getting my feet wet with Hubitat, but if there's anything I can do to help debug/test, I'm happy to participate!

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.