I do have the lua script in the lua directory
I do have 2 [ to start ] dummy sensors
1 uv [ idx i now]
1 custom [ idx i now ]
1 account by Wu [ apikey check ]
station in my area [ INIJMEGE14 NL]
Still get error:
Code: Select all
lua:56: attempt to call a nil value
Code: Select all
-- Variables to customize ------------------------------------------------
local city = "INIJMEGE14" -- Your city for Wunderground API
local countryCode = "NL" -- Your country code for Wunderground API
local idxLux ='4750' -- Your virtual Lux Device ID
local idxSolarAzimuth ='4694' -- Your virtual Azimuth Device ID
local idxSolarAltitude ='84' -- Your virtual Solar Altitude Device ID
local idxUserVarOcta='2' -- Your user variable ID , named octa
local wuAPIkey = "daa398aba1133366d7a" -- Your Weather Underground API Key
local latitude = 51.862277 -- your home
local longitude = 4.866366 -- your home
local altitude = 27 -- Your home altitude : run once in debug = 1 to found your altitude in Log and write it here
local WMOID = '07145' -- Your nearest SYNOP Station for ogimet (to get Cloud layer). Run once with debug=1 to get it in the log. (or, better, choose it there : http://www.ogimet.com/gsynop_nav.phtml.en )
local DEBUG = 0 -- 0 , 1 for domoticz log , 2 for file log
-- and customize the URL of api.wunderground around line 104 according to your country.
And the hings i do really not understand:
local idxUserVarOcta='2' -- Your user variable ID , named octa [ What must i do? ]
local altitude = 27 -
local WMOID = '07145' -
local DEBUG = 0 -- 0 , 1 for domoticz log , 2 for file log