From 1ceb8c999085b1feae436f5aeddd41f3f3347866 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 1 Apr 2024 20:21:39 +0100 Subject: launch john --- john.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3