Posted 13 May 2013 - 08:37 PM
It is important that you have HTTP enabled to use this, as there is not built in API for getting system time. Use the Pastebin command, if it doesn't work, this will not work on your monitor.
You will need to manually edit the peripheral to your setup.
Inform me if I have missed a timezone, and I will add it as soon as possible! Enjoy!
Eastern Standard Time:
Eastern Standard Time (Daylight Savings):
Greenwich Mean Time / Coordinated Universal Time:
Central Standard Time:
Central Standard Time (Daylight Savings):
Pacific Daylight Time:
Hawaii–Aleutian Time Zone:
Alaskan Standard Time:
Mountian Standard Time:
Mountian Standard Time (Daylight Savings):
Central Europe Time:
Central Europe Time(Daylight Savings):
You will need to manually edit the peripheral to your setup.
Inform me if I have missed a timezone, and I will add it as soon as possible! Enjoy!
Eastern Standard Time:
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/est/now?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Eastern Standard Time (Daylight Savings):
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/est/in+one+hour?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Greenwich Mean Time / Coordinated Universal Time:
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/utc/now?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Central Standard Time:
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/cst/now?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Central Standard Time (Daylight Savings):
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/cst/in+one+hour?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Pacific Daylight Time:
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/pdt/in+one+hour?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Hawaii–Aleutian Time Zone:
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/hast/in+one+hour?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Alaskan Standard Time:
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/akst/in+one+hour?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Mountian Standard Time:
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/mst/now?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Mountian Standard Time (Daylight Savings):
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/mst/in+one+hour?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Central Europe Time:
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/cet/now?format=%20%25I:%25M:%25S").readAll())
end
term.restore()
Central Europe Time(Daylight Savings):
Spoiler
ymon = peripheral.wrap("right")
ymon.setTextScale(6)
term.redirect(ymon)
while true do
sleep(1)
term.setCursorPos(1,1)
write(http.get("http://www.timeapi.org/cet/now?format=%20%25I:%25M:%25S").readAll())
end
term.restore()