Problem darsky script NO JSON

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
Ghislain
Posts: 1
Joined: Friday 20 March 2020 11:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Problem darsky script NO JSON

Post by Ghislain »

Hi,

I have a problem with a script for DarkSky, I got that of hestia which is here but after configuration the logs show me that it does not find JSON.

Code: Select all

 2020-03-20 11:30:00.403 Status: dzVents: Info: ------ Start internal script: Darksky:, trigger: every 1 minutes between 50 minutes before sunrise and 50 minutes after sunset
2020-03-20 11:30:00.403 Status: dzVents: url: https://api.darksky.net/forecast/XXXxxxXXX/49.199,5.5744?lang=fr&units=si&exclude=minutely,daily
2020-03-20 11:30:00.404 Status: dzVents: Info: ------ Finished Darksky
2020-03-20 11:30:00.405 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-03-20 11:30:01.032 Status: dzVents: Info: Handling httpResponse-events for: "getDarkSkyForecast
2020-03-20 11:30:01.032 Status: dzVents: Info: ------ Start internal script: Darksky: HTTPResponse: "getDarkSkyForecast"
2020-03-20 11:30:01.033 Status: dzVents: triggerObject ok
2020-03-20 11:30:01.033 Status: dzVents: trigger: getDarkSkyForecast
2020-03-20 11:30:01.033 Status: dzVents: callback: getDarkSkyForecast
2020-03-20 11:30:01.033 Status: dzVents: statusCode: 200
2020-03-20 11:30:01.033 Status: dzVents: Error (2.4.19): NO JSON ???
2020-03-20 11:30:01.033 Status: dzVents: Info: ------ Finished Darksky 
I did a lot of research and so I tried that of papoo here, which works perfectly!

The only difference I find is the data file which is created in /domoticz/script/dzvents/data

When I run the hestia script the file is created but does not fill in the information whereas with that of papoo it fills up perfectly.

At first glance I therefore have no configuration problem because otherwise neither of them will work. I'm on Buster and Domoticz 4.10717 freshly installed

Have you ever encountered this problem?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest