Davis Air quality sensor no data **Solved**

Good evening everyone. I noticed that lately the template no longer detects my Davis air quality sensor. It worked before and I haven’t changed any settings.

www.meteocamporamoso.it

It could be caused by a number of other problems, not just a setting.

This is an example of the API call to retrieve the data:

https://api.weatherlink.com/v2/current/70006?api-key=_API_SETTING_&api-signature=9808a4d9e2e31d3943fbbb6320fb8dba2a7a07a8c8cb0b03544f9ee8e67b60ce&t=1685204280

At the end there is the current timestamp of your webserver.
The same value is used for generating the signature.

The downloaded data from wl.com contains only this error message:

    [code] => 401
    [message] => API call timestamp parameter "t" is stale. The timestamp you provide must be within a range that is plus or minus 300 seconds of the API server's internal clock.

I have no idea how this can happen as your webserver seems to have the correct time.

I checked other users, but for now you seem to be the first one with this problem.

Wim

I dug a little deeper.
Your webserver is 20 minutes off (to old).
You can check the file-times using the debug dashboard.
The system in the example says less then 1 minute at 17:02 , but the exact time is 17:23 UTC = 19:23

Please set the correct time of your webserver and the problem will be solved.

Succes, Wim

Wim, you were right. The problem was just the incorrect time of my web server. I contacted my host provider and they fixed it. A thousand thanks