Browse Source

Try to make spaceapi work but it didn't so remove some N/A fields

rorist 4 months ago
parent
commit
cf905e236a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      node.lua

+ 3 - 2
node.lua

@@ -46,10 +46,11 @@ end)
 
 util.file_watch("spaceapi.json", function(data)
     api = json.decode(data)
+    for i,v in ipairs(api) do print(i) end
     spaceapi = {
         ["Status"]         = api['state']['message'],
-        ["Device present"] = 'N/A',
-        ["Member count"]   = 'N/A',
+        -- ["Device present"] = api['sensors']['people_now_present'][0]['value'],
+        -- ["Member count"]   = api['sensors']['total_member_count'][2]['value'],
         ["URL"]            = api['url'],
     }
 end)