Browse Source

lol, lua arrays start at 1 apparently

rorist 6 months ago
parent
commit
20354d9f95
1 changed files with 2 additions and 2 deletions
  1. 2 2
      node.lua

+ 2 - 2
node.lua

@@ -52,8 +52,8 @@ util.file_watch("spaceapi.json", function(data)
     api = json.decode(data)
     spaceapi = {
         ["Status"]         = api['state']['message'],
-        -- ["Device present"] = api['sensors']['people_now_present'][0]['value'],
-        -- ["Member count"]   = api['sensors']['total_member_count'][2]['value'],
+        ["Device present"] = api['sensors']['people_now_present'][1]['value'],
+        ["Member count"]   = api['sensors']['total_member_count'][3]['value'],
         ["URL"]            = api['url'],
     }
 end)