summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--john.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/john.lua b/john.lua
index b9fec59..93d001f 100644
--- a/john.lua
+++ b/john.lua
@@ -1,3 +1,5 @@
+local URL = "https://john.citrons.xyz/api/minecraft"
+
local framebuf = require("framebuf")
local fb = framebuf.new()
@@ -14,7 +16,10 @@ if monitors == nil or #monitors < 1 then
error("need john.monitors setting")
end
-fb:ppm(fs.open("img/john.pnm","rb"))
+local h = assert(http.get(URL, {}, true))
+fb:ppm(h)
+h.close()
+
local W,H = fb:get_size()
local total_width = 0