kirkhansen / hubitat-weatherstack Goto Github PK
View Code? Open in Web Editor NEWHubitat Device Driver for the Weatherstack API
Hubitat Device Driver for the Weatherstack API
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
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!
Beware. They also claim credit card is not required for the free tier, and yet they force you to give one when registering. This is all very shady. Stay away from weatherstack...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.