This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
remiX's profile picture

Watch Program - Never forget the time

Started by remiX, 23 February 2013 - 10:45 AM
remiX #1
Posted 23 February 2013 - 11:45 AM
Time Program

v2.0

I present to you a small program, known as the Time Program ( fail name ), which allows you to check the time for any timezone.
You can use your scroll button on your mouse (or arrow keys) to increase or decrease the GMT value for the watch.
It uses http api to get the current UTC time and date from a website of mine and from there CC takes control.

Have fun xD

Download here from pastebin.

Features
  • Change the GMT using mouse-scroll / arrow keys
  • Select a different format the current date (doesn't save if you change - defaults to month/day/year)
  • Amazing background/colours/watch xD
  • Mouse-support for advanced computers. The buttons will not work for non-advanced computers ( will fix next )
Changelog
Spoilerv2.0
- Support for non-advanced computers
- New background
- Able to change the format of the date
- You can now exit the program ( after which it shows the last used GMT and the time accordingly. )
- Help and option screens (buttons - doesn't work for non-advanced computers at the moment -.-)
- You can change the GMT by using up/down arrows as well.

v1.0
- Initial Release

New screenshots:
SpoilerMain screen
Spoiler

Help screen
Spoiler

Options
Spoiler

Both colour and non-colour versions adjacent to each other
Spoiler

the 'Exit' screen
Spoiler

Old screenshots:
SpoilerWhen you start it, it takes about 1 second to get the current UTC time


Example: UTC +2 hours (my time)


UTC time
NDFJay #2
Posted 23 February 2013 - 11:48 AM
Not gonna lie, thats pretty cool, I was thinking of making something like this for my UI but couldnt figure out an effective way to do it lol, 1 internetz for you
remiX #3
Posted 23 February 2013 - 11:55 AM
Haha thanks :P/>

jag_e_nummer_ett had mentioned it to someone here and when i read i thought it would take long but it actually didnt. And then I saw someone had bumped the thread and I read his post again and thought I would just make it :P/>
jag #4
Posted 24 February 2013 - 12:36 AM
:D
jag #5
Posted 24 February 2013 - 01:14 AM
I got some simple ideas for improvement:
  • New background (image, text)
  • Exit button (Not sure if there is one, but could use one in the corner or something)
  • Screen optimizing (if you somehow get a bigger/smaller screen, for example a monitor)
  • Button usage (currently you can only control it via scrolling, but I'd like if you add just a simple "if p1 == keys.up then")
  • Error handling (for the http, colors, etc.. A.t.m. if you launch it via a regular computer it returns "ccwatch:94: Colour not supported")
  • Use'able on a regular computer, so that you can use it for example on turtles.
And last but not least; why is the code on sidekicks pastebin account?
Goof #6
Posted 24 February 2013 - 01:37 AM
could you make, so we would be able to customise the date display? (and the time display) so, like we could change the

02/22/2013

to

22/02/2013

or

2013/22/02
etc…

Thanks :P/>
remiX #7
Posted 24 February 2013 - 02:42 AM
I got some simple ideas for improvement:
  • New background (image, text)
  • Exit button (Not sure if there is one, but could use one in the corner or something)
  • Screen optimizing (if you somehow get a bigger/smaller screen, for example a monitor)
  • Button usage (currently you can only control it via scrolling, but I'd like if you add just a simple "if p1 == keys.up then")
  • Error handling (for the http, colors, etc.. A.t.m. if you launch it via a regular computer it returns "ccwatch:94: Colour not supported")
  • Use'able on a regular computer, so that you can use it for example on
Well I was just bored and came up with the simplest background :D/>
At first, it was just black background and white text with borders of | and - … then I realised it looks really boring so I made colour background.
Your background colour is amazing and I'll use it :P/>

As for the other suggestions, ill add too :D/>
Will have non-colour support too


And last but not least; why is the code on sidekicks pastebin account?

I am sidekick. My name on CC forums used to be sidekick_ but I changed it to remiX a while back. When I created the pastebin account, my name was still sidekick_ on these forums :)/>

could you make, so we would be able to customise the date display? (and the time display) so, like we could change the

02/22/2013

to

22/02/2013

or

2013/22/02
etc…

Thanks :P/>

Good idea, at the moment it's month/day/year
savior67 #8
Posted 24 February 2013 - 05:15 AM
Looks great! Only suggestion would be to brighten it up a little bit. Grey is a tad dull.
remiX #9
Posted 24 February 2013 - 06:54 AM
Looks great! Only suggestion would be to brighten it up a little bit. Grey is a tad dull.

Haha yeah very true ^^

Okay well I've update to v2.0 – seeming as I did quite a lot :)/>

Changes
- Background colour
- Add an option to change the date format
- You can now exit the program
- Help screen
- After exiting, it tells you your last set GMT and the time/date according to that GMT
- Support for non-advanced computers

Please Note:
Dumbly, I made the buttons forgetting about non-advanced computers and they're now only able to be clicked using an advanced computer. Can't believe I forgot about non-advanced pc's lol :(/>
I'll fix this tomorrow or sometime ._.

Link: Check OP or click here

Will update screenshots soon.
jag #10
Posted 24 February 2013 - 05:53 PM
I am sidekick. My name on CC forums used to be sidekick_ but I changed it to remiX a while back. When I created the pastebin account, my name was still sidekick_ on these forums :)/>

Ahhhh!! I got 'cha!
remiX #11
Posted 24 February 2013 - 10:22 PM
I am sidekick. My name on CC forums used to be sidekick_ but I changed it to remiX a while back. When I created the pastebin account, my name was still sidekick_ on these forums :)/>

Ahhhh!! I got 'cha!

:)/>

What do you think of the new version? :P/>
NDFJay #12
Posted 24 February 2013 - 10:26 PM
Remix, the download link appears to be missing :(/>
remiX #13
Posted 24 February 2013 - 11:03 PM
Remix, the download link appears to be missing :(/>/>

Dafuu. Must have broken it when I edited the post for new version. It's fixed now :P/>
Lightning101 #14
Posted 25 February 2013 - 01:01 AM
Any chance of getting it to render a digital clock on an advanced monitor with touchscreen buttons below to change the time?
remiX #15
Posted 25 February 2013 - 02:25 AM
Any chance of getting it to render a digital clock on an advanced monitor with touchscreen buttons below to change the time?

That's a lot of work and I'm not quite up to it :P/> Why don't you try it :)/>
Lightning101 #16
Posted 25 February 2013 - 02:47 AM
That's a lot of work and I'm not quite up to it :P/> Why don't you try it :)/>

I have my own projects to attend to :P/> but maybe in the future I will
jag #17
Posted 25 February 2013 - 05:33 AM
What do you think of the new version? :P/>

It looks much better! Much more appealing.
AnthonyD98™ #18
Posted 25 February 2013 - 04:48 PM
Cool :D/>
remiX #19
Posted 25 February 2013 - 05:50 PM
What do you think of the new version? :P/>/>

It looks much better! Much more appealing.

Yeah, definitely!

Cool :D/>/>

Thanks :P/>

I might add monitor support later, what do you guys think?
Sammich Lord #20
Posted 25 February 2013 - 05:58 PM
I'll put it on a monitor at my base and see the time when I too lazy to look at the corner of my screen.
remiX #21
Posted 25 February 2013 - 06:04 PM
I'll put it on a monitor at my base and see the time when I too lazy to look at the corner of my screen.

Yeah that's what I thought people would say. To some, opening a computer is a mission.
But you could see it from far with a monitor, too i guess :P/>

I'll add it sometime within the next week or so
SteveofLua #22
Posted 18 March 2013 - 04:03 PM
Really awesome! One problem. Copy and pasting… do we rewrite the whole code? Thanks!
remiX #23
Posted 18 March 2013 - 05:56 PM
Really awesome! One problem. Copy and pasting… do we rewrite the whole code? Thanks!

Nope :P/>
Type this into the computer:
pastebin get vwTWpGce watch
TheOddByte #24
Posted 22 March 2013 - 10:59 AM
This is very nice! :D/>
Would be nice if you added to options so you can change colors on and off..
remiX #25
Posted 28 March 2013 - 12:46 AM
This is very nice! :D/>
Would be nice if you added to options so you can change colors on and off..

Then it will just be a boring background? :o/>