Code: Select all
http://192.168.1.xx:xxxx/json.htm?type=createvirtualsensor&idx=5&sensorname=Altitude&sensortype=1004
Moderator: leecollings
Code: Select all
http://192.168.1.xx:xxxx/json.htm?type=createvirtualsensor&idx=5&sensorname=Altitude&sensortype=1004
Code: Select all
2018-01-04 19:06:00.414 Error: dzVents: Error: SOLAR 2.2.0.....................: An error occured when calling event handler Solar Data
2018-01-04 19:06:00.414 Error: dzVents: Error: SOLAR 2.2.0.....................: ...omoticz/scripts/dzVents/generated_scripts/Solar Data.lua:145: attempt to perform arithmetic on a nil value
2018-01-04 19:11:00.451 Error: dzVents: Error: SOLAR 2.2.0.....................: An error occured when calling event handler Solar Data
2018-01-04 19:11:00.451 Error: dzVents: Error: SOLAR 2.2.0.....................: ./scripts/lua/JSON.lua:660: html passed to JSON:decode():
Not Found
The requested URL /api/40c1f27581c80568/conditions/q/NL/Amsterdam.json was not found on this server.
2018-01-04 19:16:00.492 Error: dzVents: Error: SOLAR 2.2.0.....................: An error occured when calling event handler Solar Data
2018-01-04 19:16:00.493 Error: dzVents: Error: SOLAR 2.2.0.....................: ./scripts/lua/JSON.lua:660: html passed to JSON:decode():
Code: Select all
2018-01-25 13:51:00.539 dzVents: Info: SOLAR 2.2.0: ------ Start internal script: Solar:, trigger: every minute
2018-01-25 13:51:00.548 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.548 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.548 dzVents: Info: SOLAR 2.2.0:
2018-01-25 13:51:00.548 dzVents: Info: SOLAR 2.2.0: ============== SUN LOG ==================
2018-01-25 13:51:00.548 dzVents: Info: SOLAR 2.2.0: pws:IAORESAN3, latitude: 38.656319, longitude: -27.224287
2018-01-25 13:51:00.548 dzVents: Info: SOLAR 2.2.0: WU Location WMO = 08511
2018-01-25 13:51:00.548 dzVents: Info: SOLAR 2.2.0: Altitude of the sun = 30.65029531842°
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: Azimuth of the sun = 197.12143891202°
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0:
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: SYNOP Station = 08509
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: Okta = 7
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: Direct Radiation = 262.12 W/m²
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.549 dzVents: Info: SOLAR 2.2.0: Total weighted lux = 25116.93 Lux
2018-01-25 13:51:00.568 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.568 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.569 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.570 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.570 dzVents: Info: SOLAR 2.2.0: domoticz.round deprecated. Please use domoticz.utils.round.
2018-01-25 13:51:00.575 dzVents: Info: SOLAR 2.2.0: ------ Finished Solar
Yes. I've released a new script version. See initial post. Don't use the script version found in the wiki. For some reason I can not login to the wiki to maintain it.
Code: Select all
2018-01-26 11:15:11.165 dzVents: Error (2.4.0): solarData 2.4.0: An error occured when calling event handler script_time_dzventsolarV2
2018-01-26 11:15:11.165 dzVents: Error (2.4.0): solarData 2.4.0: .../dzVents/generated_scripts/script_time_dzventsolarV2.lua:280: attempt to perform arithmetic on field 'lux' (a nil value)
Maybe you have uncommented line 33 to use a Lux device with the script (that''s optional) but some way you have set the device idx to a non existent device or a device that is not of type "Lux"?supergroover wrote: ↑Friday 26 January 2018 11:20 Unfortunately is the script retired but i'm getting a error with the new version of the script.
Can somebody help me?
Code: Select all
2018-01-26 11:15:11.165 dzVents: Error (2.4.0): solarData 2.4.0: An error occured when calling event handler script_time_dzventsolarV2 2018-01-26 11:15:11.165 dzVents: Error (2.4.0): solarData 2.4.0: .../dzVents/generated_scripts/script_time_dzventsolarV2.lua:280: attempt to perform arithmetic on field 'lux' (a nil value)
Code: Select all
local idxLux = 630 -- (Integer) Domoticz virtual Lux device ID
I had the same problem and found why it was going wrong.supergroover wrote: ↑Friday 26 January 2018 11:20 Unfortunately is the script retired but i'm getting a error with the new version of the script.
Can somebody help me?
Code: Select all
2018-01-26 11:15:11.165 dzVents: Error (2.4.0): solarData 2.4.0: An error occured when calling event handler script_time_dzventsolarV2 2018-01-26 11:15:11.165 dzVents: Error (2.4.0): solarData 2.4.0: .../dzVents/generated_scripts/script_time_dzventsolarV2.lua:280: attempt to perform arithmetic on field 'lux' (a nil value)
Code: Select all
local fetchIntervalMins = 5 -- (Integer) (Minutes, Range 5-60) How often Wunderground API is called
Code: Select all
local fetchIntervalDayMins = 5 -- Day time scraping interval. Never set this below 4 if you have a free WU API account.
local fetchIntervalNightMins = 30 -- Night time scraping interval.
Thanks, i have made a new dummy lux device what is exactly the same as previous lux device and problem solved...BakSeeDaa wrote: ↑Friday 26 January 2018 13:35Maybe you have uncommented line 33 to use a Lux device with the script (that''s optional) but some way you have set the device idx to a non existent device or a device that is not of type "Lux"?supergroover wrote: ↑Friday 26 January 2018 11:20 Unfortunately is the script retired but i'm getting a error with the new version of the script.
Can somebody help me?
Code: Select all
2018-01-26 11:15:11.165 dzVents: Error (2.4.0): solarData 2.4.0: An error occured when calling event handler script_time_dzventsolarV2 2018-01-26 11:15:11.165 dzVents: Error (2.4.0): solarData 2.4.0: .../dzVents/generated_scripts/script_time_dzventsolarV2.lua:280: attempt to perform arithmetic on field 'lux' (a nil value)
Cheers!Code: Select all
local idxLux = 630 -- (Integer) Domoticz virtual Lux device ID
Code: Select all
2018-02-02 10:30:00.440 dzVents: Info: solarData 2.4.0: ------ Start internal script: nap_az_egen:, trigger: every 15 minutes at daytime
2018-02-02 10:30:00.443 dzVents: Info: solarData 2.4.0: ------ Finished nap_az_egen
2018-02-02 10:30:00.631 EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2018-02-02 10:30:06.163 dzVents: Info: Handling httpResponse-events for: "solarDataOgimet
2018-02-02 10:30:06.163 dzVents: Info: solarData 2.4.0: ------ Start internal script: nap_az_egen: HTTPResponse: "solarDataOgimet"
2018-02-02 10:30:06.166 dzVents: Info: solarData 2.4.0: ------ Finished nap_az_egen
2018-02-02 10:30:06.178 EventSystem: Event triggered: kulcs_haromszog_1
2018-02-02 10:30:06.178 log: meg lett nyomva a kulcson a háromszög
2018-02-02 10:30:11.291 dzVents: Info: Handling httpResponse-events for: "solarDataWU
2018-02-02 10:30:11.291 dzVents: Info: solarData 2.4.0: ------ Start internal script: nap_az_egen: HTTPResponse: "solarDataWU"
2018-02-02 10:30:11.310 dzVents: Info: solarData 2.4.0:
2018-02-02 10:30:11.310 dzVents: Info: solarData 2.4.0: ============== NAP - NAPLÓ ==================
2018-02-02 10:30:11.310 dzVents: Info: solarData 2.4.0: mycity, lati: XX.329299, lon: XX.204867
2018-02-02 10:30:11.310 dzVents: Info: solarData 2.4.0: WU locat WMO = 12982
2018-02-02 10:30:11.310 dzVents: Info: solarData 2.4.0: Altitude of the sun = 25.04806524171°
2018-02-02 10:30:11.310 dzVents: Info: solarData 2.4.0: Azimuth of the sun = 161.68215874726°
2018-02-02 10:30:11.310 dzVents: Info: solarData 2.4.0:
2018-02-02 10:30:11.311 dzVents: Info: solarData 2.4.0: SYNOP Station = 12HH2
2018-02-02 10:30:11.311 dzVents: Info: solarData 2.4.0: Okta = 7
2018-02-02 10:30:11.311 dzVents: Info: solarData 2.4.0: Direct Radiation = 176.88 W/m²
2018-02-02 10:30:11.311 dzVents: Info: solarData 2.4.0: Total weighted lux = 18926.14 Lux
2018-02-02 10:30:11.355 dzVents: Info: solarData 2.4.0: ------ Finished nap_az_egen
2018-02-02 10:30:11.356 EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2018-02-02 10:30:11.369 EventSystem: Event triggered: kulcs_haromszog_1
2018-02-02 10:30:11.369 log: meg lett nyomva a kulcson a háromszög
Users browsing this forum: No registered users and 1 guest