bpaauwe / udi-davis-poly

Node server to access data from Davis weather stations.
Other
0 stars 1 forks source link

ERROR davis:get_data: request failed: Expecting value: line 1 column 1 (char 0) #1

Open Kajtek13 opened 4 years ago

Kajtek13 commented 4 years ago

Hi. Great Job and thank you for doing this I installed Davis weather on my Polisy using Polyglot NodeServer. It is connected and ISY994i (v 5.0.15A) recognized all nodes and it seems that it should work but it is not displaying data, all values are zero and it shows Fahrenheit despite my setting in Configuration to metric. It seems that it is not fully communicating. Nodeserver shows that it is connected. My data from the weather station are being uploaded to api.weatherlink. I deleted and reinstalled the nodeserver, rebooted Polisy and ISY. Log file shows still the smae error DavisWeather_logs_2020-7-4_231139.zip

I have one more question, do you know what will be the custom key for Soil temp 1-4. They are uploaded to api.weatherlink. Thanks Andrzej github@anola.info

bpaauwe commented 4 years ago

I just updated the node server to fix the error. It should be available to update from the store in a few minutes.

Nothing I had access to showed soil temperatures so I don't know what they look like in the data. If you capture the query response when the log level is set to debug, I might be able to add in the soil temps.

Kajtek13 commented 4 years ago

Thanks for the quick response. Unfortunately, it still does not work. I attach log files. When it comes to Soil temp maybe the file from weatherlink will help. I attach it as well NoaaExt.xml in zip Thanks again for taking the time. I decided to learn a little bit and just downloaded Github desktop and python. This is new to me but I program in Visual Studio and Access VBA so programming is not totally strange to me. Andrzej

NoaaExt.zip polyglot_2020-7-7_215851.txt DavisWeather_logs_2020-7-7_215423.zip polyglot_2020-7-7_215332.txt

Kajtek13 commented 4 years ago

Sorry, Bob for bothering you. It was my fault. After downloading the code and examining it I noticed that the required User ID is not a user name for logging to weatherlink but it is station DID. I was fooled by the key ( Not currently used.) named The Davis station ID. Thinking that this Davis station ID is the station DID and user ID is a username. Once I entered it properly all work well. The only thing that I wish was there is the Soil temp 1-4 to be pulled as well from api.weatherlink. One of the Soil temp I use to monitor Pool temperature and I would like to use this in ISY programming to control the heather depending on the temperature of the water in the pool plus temp outside. Thank s again for writing this. I hope you will be able to figure out the soil temp as well from my stations XML file downloaded from api.weathelink Regards Andrzej

vb7445 commented 3 years ago

I'm getting the same error, davis:get_data: request failed: Expecting value: line 1 column 1 (char 0)

I've just installed the node server in my Polisy Pro and entered the requested configuration data. Assuming my data is correct but I'm thinking if my data were wrong it would reflect that. Instead, this error doesn't like line 1, column 1 so it sounds like something else is wrong.

The install into ISY workes as I have the 3 nodes but data is all 0.

bpaauwe commented 3 years ago

I'm getting the same error, davis:get_data: request failed: Expecting value: line 1 column 1 (char 0)

I've just installed the node server in my Polisy Pro and entered the requested configuration data. Assuming my data is correct but I'm thinking if my data were wrong it would reflect that. Instead, this error doesn't like line 1, column 1 so it sounds like something else is wrong.

The install into ISY workes as I have the 3 nodes but data is all 0.

The call to the davis weatherlink server failed to return any data.

It's calling: https://api.weatherlink.com/v1/NoaaExt.json?user=[Device ID]&pass=[Password]&apiToken=[API Token]

The response it got back from the server didn't include any data. It should be getting a json formatted string with all the weather data. You can try using a browser and substituting the configuration parameters in the [] sections above and see what it returns.

vb7445 commented 3 years ago

I'm getting back, Invalid Request!

So maybe I'm confused. I have a Davis VantagePro 2 station, WeatherLink PC Software, Weather Envoy USB Data Logger and a free WeatherLink.com account. From the WeathLink.com account I've got the API Token, Device ID and Key. One thing I'm not sure about is what password to use. I'm assuming it's the Key value from WeatherLink.com when they provided the Device ID. The PC Weathlink software is updating the data on WeatherLink.com using the Device ID and Key.

vb7445 commented 3 years ago

I'm looking at the Davis API Documentation. There appears to be something amiss with my credentials, I assume. So, I can follow up with Davis to see what's going on. Doesn't appear to anything on your end (node server). Thanks for responding.

vb7445 commented 3 years ago

ok, found the problem with the password. The password required is the one I use to log in to WeatherLink.com not the Key value that is supplied with the Device ID. I had tried that password before and got a Invalid Request. So, there was a 2nd issue, that password had a plus sign, +, in it. I changed my password to no special characters. Lo and Behold everything is working fine.

Sorry, Bob for bothering you. Kudos for the node server. It's great!

bpaauwe commented 3 years ago

Thanks, I'm glad it was fairly easy to figure out. I don't have a Davis station so I'm not very familiar with the configuration requirements. I just know that when the right values are there it works :)

If there's something I can change in the configuration help that would make things more clear, let me know.

vb7445 commented 3 years ago

You might specify that the password is the User's Weatherlink.com login password and it shall contain no special characters. That explanation would have alleviated my issues right off.

vb7445 commented 3 years ago

Oh, one more thing. I didn't see a Forum for the Davis Polygot Node Server on the UDI site. I looked there for help and then ended up here in Github when I didn't find one.