awesome-configs icon indicating copy to clipboard operation
awesome-configs copied to clipboard

Wear isn't working

Open MaksVal opened this issue 7 years ago • 2 comments

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.

  • A weater module is broken. More information: http://openweathermap.org/faq#error401. And this is example my output:
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!

MaksVal avatar Apr 27 '17 08:04 MaksVal

The master branch is have latest code ?

MaksVal avatar Apr 27 '17 08:04 MaksVal

I don't think the weather module works at all. I also don't think my config supports 4.1 properly. I am surprised you got that far without errors. I currently only support my upstream_shape_api_p4_unmerged Awesome branch because I don't have time to rebase and test with every Awesome commit.

I don't have a lot of time right now, so if you wish to get the weather to work, you will need to patch it. Also, the drawer files are by far the uglyest code in that project, so it wont be fun to fix.

Elv13 avatar Apr 27 '17 09:04 Elv13