Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenWeather
#1
So, I was trying to get weather working again and I see that the last beta added the OpenWeather driver.  Unfortunately, the driver install says to see the documentation but I cannot find the driver documentation on the website.  

Thanks,
Reply
#2
I'm running 5.4.920 and I put in lat,long for my location parameters.  I was able to get this syntax to work in a browser, so I know the API is not the problem.

The logging says:
Quote:Driver 'Weather' is beginning initialization
The location info had no content, giving up
Driver Weather returned failure status on initialization
Reply
#3
I put this driver together (based on DarkSky) using their OneCall API.  I have it loaded, but use it for rain totals only since DarkSky doesn't provide that.  Is this the one you tried?  It is different from the shipped version.

https://www.charmedquark.com/vb_forums/s...?tid=11113
Reply
#4
I'm using the one that was added to 5.4 which I'm guessing it's the same but I'm unsure.  I believe I have the wrong location but I'm not exactly sure what to put for option 2. It's v1 instead if your v0.92.
Reply
#5
(02-08-2021, 02:56 AM)zaccari Wrote: I'm using the one that was added to 5.4 which I'm guessing it's the same but I'm unsure.  I believe I have the wrong location but I'm not exactly sure what to put for option 2. It's v1 instead if your v0.92.

The one I did was totally different from the shipped version - it retrieves JSON data .vs. XML, and has 7 days of forecast data.  I have no idea how many people use it, but I have not had anyone say that there is a problem.

On the location for the one I posted (and probably the shipped version) - it requires Lat/Long in decimal numbers, so for Houston, Texas it is roughly 30 Lat, -95 Long.  So I would assume for down under it would be -25 Lat, 133 Long.
Reply
#6
FYI,
My inquiry to openweathermap about moon phases be added. Would seem like an easy enhancement Smile
--------
Hello, thank you for contacting us.

As of now, we indeed don't provide any moon phase data. We are not yet planning to add it, but we will publish a notification in the social networks if/when it becomes available.

If you have any other questions, please don’t hesitate and contact us.

Kind regards,
Artūras Rosliakas
Technical Support Specialist
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#7
I was hoping Dean would reply with the parameters the included driver was expecting. I guess I'll move to your driver until I can get some more information.

Russ...
Reply
#8
Hi Zaccari
Is this the documentation you were looking for:
http://www.charmedquark.com/Web2/CQCDocs...WeatherMap
?
Reply
#9
Haha, I was just coming back to say I found an html file in C:\PROGRA~2\CQC\CQCData\HTMLRoot\Web2\CQCDocs\Reference\Drivers\Weather> and was able to figure out that I need "" around the zip= parameters. I was using the right thing, just not inside quotes. It's working now.

Thanks,
Russ...
Reply
#10
For someone that comes along later and wants to use this driver, it's worth noting that the OpenWeatherMap barometric pressure is in millibars instead of millimeters of mercury. If you want to display it the other way just trigger on a change in CurBaro and here's the calculation:
Quote:LocalVars::CreateVariable
P1=LVar:lBarometricPressure
P2=Float
P3=
P4=$(Weather.WEATH#CurBaro)

LocalVars::Multiply
P1=LVar:lBarometricPressure
P2=0.029530

Devices::FieldWrite
P1=variable.BarometricPressureCalc
P2=%(LVar:lBarometricPressure)
P3=True
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)