From 0545299672e446faea7241c652b5bb3f83eab22a Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 1 Apr 2024 02:24:54 +0100 Subject: launch o --- beeite.dat | 2 -- beeite.lua | 30 ------------------------------ john.dat | 2 ++ john.lua | 30 ++++++++++++++++++++++++++++++ launch.sh | 6 +++--- 5 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 beeite.dat delete mode 100644 beeite.lua create mode 100644 john.dat create mode 100644 john.lua diff --git a/beeite.dat b/beeite.dat deleted file mode 100644 index 639f806..0000000 --- a/beeite.dat +++ /dev/null @@ -1,2 +0,0 @@ -dep framebuf -dep img/john diff --git a/beeite.lua b/beeite.lua deleted file mode 100644 index b1449fe..0000000 --- a/beeite.lua +++ /dev/null @@ -1,30 +0,0 @@ -local framebuf = require("framebuf") -local fb = framebuf.new() - - -local monitors = { - "monitor_1808", "monitor_1810", "monitor_1809" -} - -for ix,iname in ipairs(monitors) do - print("doing",ix,iname) - local mon = peripheral.wrap(iname) - mon.clear() - mon.setTextScale(0.5) - fb:clear() - fb:ppm(fs.open("img/john_"..ix..".pnm","rb")) - local t = term.redirect(mon) - local _, bee = pcall(function() fb:present() end) - term.redirect(t) - print(bee) -end - --- local m = peripheral.wrap "bottom" --- m.clear() --- m.setTextScale(0.5) --- local t = term.redirect(m) --- local _, bee = pcall(function() --- fb:present() --- end) --- term.redirect(t) --- print(bee) diff --git a/john.dat b/john.dat new file mode 100644 index 0000000..639f806 --- /dev/null +++ b/john.dat @@ -0,0 +1,2 @@ +dep framebuf +dep img/john diff --git a/john.lua b/john.lua new file mode 100644 index 0000000..b1449fe --- /dev/null +++ b/john.lua @@ -0,0 +1,30 @@ +local framebuf = require("framebuf") +local fb = framebuf.new() + + +local monitors = { + "monitor_1808", "monitor_1810", "monitor_1809" +} + +for ix,iname in ipairs(monitors) do + print("doing",ix,iname) + local mon = peripheral.wrap(iname) + mon.clear() + mon.setTextScale(0.5) + fb:clear() + fb:ppm(fs.open("img/john_"..ix..".pnm","rb")) + local t = term.redirect(mon) + local _, bee = pcall(function() fb:present() end) + term.redirect(t) + print(bee) +end + +-- local m = peripheral.wrap "bottom" +-- m.clear() +-- m.setTextScale(0.5) +-- local t = term.redirect(m) +-- local _, bee = pcall(function() +-- fb:present() +-- end) +-- term.redirect(t) +-- print(bee) diff --git a/launch.sh b/launch.sh index d9daeb6..adc66a0 100755 --- a/launch.sh +++ b/launch.sh @@ -1,6 +1,6 @@ #!/bin/sh -fname="$1" -bname="${fname%.lua}" +bname="$2" +host="${1:--}" git add .; git commit -m "launch $bname"; git push -# echo "$bname" | websocat wss://citrons.xyz/ws-echo/rebecca +echo "RRP $host deploy $bname" | pee cat "websocat wss://citrons.xyz/ws-echo/rebecca" -- cgit v1.2.3