Jump to content

No Data retrieved from DavisWeather IP interface


Go to solution Solved by Breezyken,

Recommended Posts

Posted

I have had this plugin running for a couple of years now, but I had to reinstall with EISY and a new desktop PC.  Error indicates bad parameters in api call, but I have verified the configuration and all password variations.  Maybe you can see something I am missing.  The documentation needs updating and the api calls there no longer work.  I could use an updated api example to assist in troubleshooting.  I have attached the plugin startup log, and these are the significant lines;

MainThread udi_interface.interface WARNING  interface:db_getNodeDrivers: controller not found in database.

Thread-4 (start) udi_interface      ERROR    query:get_data: request failed: Expecting value: line 1 column 1 (char 0)

DavisWeather_1-7-2025_91748_PM.zip

Posted

You'll get more info about what is failing if you switch the log level of the plug-in to debug.  It will then log what is being returned by the query.  The error message indicates that what is being returned isn't in the format expected so it could be an error message.

The request being made is:

https://api.weatherlink.com/v1/NoaaExt.json?user=<Device ID>&pass=<Password>&apiToken=<API Token>

You can try that in the browser using your parameters and see what it returns.  There is a newer API available and a newer plugin that uses it.  It's possible that this version of the API has been discontinued and no longer works.  If that's the case I'll have to remove the plug-in.

The version that uses the new API version is in the non-production store and named Davis_V2

  • Solution
Posted

Thanks Bob.  Found a lower case that needed to be upper; my error.  I made several different v1 calls and they still work, so I'll stick with that as well.  Now to make use of the data in a program!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...