Advertisement
irnotbeowulf

logger

May 8th, 2021
1,210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local time = require("myapi/time")
  2. local monitor = require("myapi/monitor")
  3. local json = require("myapi/json")
  4. local vend = require("myapi/vend")
  5. local speaker = require("myapi/speaker")
  6.  
  7. local startTime = nil
  8.  
  9. while not startTime do
  10. startTime, timezone = time.getRealTime()
  11. --sleep(2)
  12. end
  13.  
  14. local function welcome()
  15.   local time = time.getTime(startTime, timezone)
  16.   print(time)
  17.  
  18.   monitor.clearScreen()
  19.   monitor.centerText(time)
  20.   speaker.playJingle()
  21.   sleep(1)
  22. end
  23. welcome()
  24. sleep(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement