diff options
-rw-r--r-- | john.lua | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |