Accuweather configuration

Moderator: leecollings

Post Reply
jensc
Posts: 41
Joined: Saturday 12 March 2016 1:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.3
Location: Saint Helens, Oregon, USA
Contact:

Accuweather configuration

Post by jensc »

Beta 2020.3
Raspberry 3B+

After adding the Accuweather service "hardware", no device appears. The only thing relevant in the logs is: "AccuWeather: Worker stopped..." and no evidence that it tried to start. Where to from here?

EDIT: After some time, this appears in the error log: "Error: AccuWeather: Error getting http data!"
mojojojo490
Posts: 32
Joined: Saturday 03 August 2019 7:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands, Heiloo
Contact:

Re: Accuweather configuration

Post by mojojojo490 »

Hi, you have to make a API key on de developers site from Accuweather.
Also the longitude, latitude must be reversed from the description next to it.
Than you will see directly on devices the new devices.
Starter RPi3B, Domoticz Stable 2020.2, 10x Qubino Mini Dimmer, 1x Qubino shutter
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
NRJMons
Posts: 2
Joined: Tuesday 19 January 2021 9:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Accuweather configuration

Post by NRJMons »

Well, same problem here.

The API key is correct, I tested it on accuweather website
The location is 962177 and is also correct, as tested on accuweather website.

The location in setup screen has been set as follows:
962177
50.475,3.907 (doesn't work), although it's the Long LAt given by accuweather itself in the response to the queries
3.907,50.475 (doesn't work), reversed as indicated

There must be something wrong elsewhere because nothing works

Is there a way to check the code that is run by Domoticz somewhere in the logs?

NRJ
NRJMons
Posts: 2
Joined: Tuesday 19 January 2021 9:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Accuweather configuration

Post by NRJMons »

Some additionnal info:

the link: https://dataservice.accuweather.com/cur ... tails=true

(I changed some characters in the API key => the link above will not work as such)

But the link does work with the right key and proves that the APi and location are correct. These are the only parameters you can enter in the Hardware definition.

I also checked the code in https://github.com/domoticz/domoticz/bl ... eather.cpp

The code looks ok although there are multiple places that can return "Error: Error parsing http request" that I get repeatedly in my log.
What's wrong then? I don't know. Hard to say without debug.

There is a debug mode foreseen in the code that refers to loading the data from a local file "E:\\AccuWeather_LocationSearch.json", but it seems to be for Windows users, which I'm not. Strange indeed that it's hardcoded like that.

So, I'm stuck, the only other option I have is OpenWeather or develop the lua scripts myself and provide the json-decoded data to virtual sensors. But that's really a pity.

NRJ
HM31
Posts: 56
Joined: Friday 04 August 2017 16:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Accuweather configuration

Post by HM31 »

I'm digging up this old topic because I get exactly the same behavior. I'm using locationkey instead of lat/long because accuwetaher API only refer to this and when using an http request taken from code (after replacing variable parts) it works flowlessly ...
desertdog
Posts: 84
Joined: Sunday 14 August 2016 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: Accuweather configuration

Post by desertdog »

Same here, I have tried with locationkey and lat,long, but when adding the hardware, no devices appear. Nor do I get an error in the log. Anyone got this working?
User avatar
epierre
Posts: 522
Joined: Wednesday 05 March 2014 13:16
Target OS: Linux
Domoticz version:
Location: France
Contact:

Re: Accuweather configuration

Post by epierre »

same here, seems an issue from domoiticz since api is correct and valid
ImperiHome & MyDomoAtHome on top of:
868.42Mhz - Vera Lite - Fibaro SS-101, S-211, K-101, FWP - Fortress SSA2
433Mhz - Cubie Domoticz + RFXtrx + Oregon || Foscam 9821W
2,4Ghz - Cubie MySensors Gateway + COV + TempHumidity + Pressure + WaterMeter
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests