Hi @Elv13!
Great thanks you for your job and a configs!!! This is perfect and amazing!
I cloned your master branch and install awesome 4.1 to my Gentoo. I have some question for your.
curl -S 'http://api.openweathermap.org/data/2.5/weather?lat=55.75&lon=37.6166'
{"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}
- Sorry!!! Why didn't you check a error?
if dateModule.latitude ~= nil and dateModule.longitude ~= nil then
local f=io.popen("curl -S 'http://api.openweathermap.org/data/2.5/weather?lat="..dateModule.latitude.."&lon="..dateModule.longitude.."' > /dev/null")
local weatherInfo = nil
if f ~= nil then
local wData=json:decode(f:read("*all"))
f:close()
if wData ~= nil then
if wData.cod ~= nil then print("[ERROR] " .. wData.cod .. " - " .. wData.message) end
weatherInfo=" "..wData.name..", "..wData.sys.country.."\n"
....
What do you think? May be you need some help?
Thanks!
Hi @Elv13!
Great thanks you for your job and a configs!!! This is perfect and amazing!
I cloned your master branch and install awesome 4.1 to my Gentoo. I have some question for your.
What do you think? May be you need some help?
Thanks!