Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(16 Kb)
Download
Updated: 11-27-12 06:00 PM
Pictures
File Info
Updated:11-27-12 06:00 PM
Created:10-31-10 03:15 PM
Downloads:3,576
Favorites:64
MD5:

shClock

Version: v2.3
by: shUI [More]

shClock
An extremely light-weight data broker addons that monitors and displays time/date related information

Why use this addon instead of some of the other famous system monitors? Simple: elegance, ease of use, and efficiency. Other addons similar to shClock are extremely "busy" and highly inefficient when it comes to coding.

IMPORTANT: You must have a data broker display addon in order to enable this addon. I recommend Docking Station or you can find a list of other LDB display addons here. Changing the fonts of the tooltips is handled via a tooltip addon. I highly recommend using TipTac.

This addon displays and has the following options:

  • Server Time
  • Local Time
  • UTC Time
  • Date
  • Locale
  • Shows pending calendar invites in tooltip and broker (updated in real time)
  • Option: for showing 24-hour or 12-hour formatted time
I was completely baffled when I saw some coding of other author's data broker addons that displayed this information. My goals in creating this addon are:
  • Make the code as efficient as possible and to maintain < 10kb of memory usage AND < 0.7 cpu_cycles/second w/o loss in funtionality.
  • Compared to other LDB clock addons, MUCH more efficient (memory and cpu) with same basic functionalities
  • Be visually appealing and easy to read
  • Be updated in real time via the tooltip AND data broker text
  • Display relevant data that is important (NO FLUFF or Techno Babble)

Bug Reports and/or Requests:
All bug reports, requests (with this addon or another), errors, suggestions, and problems will be handled via the forum-comments page.

If you liked this mod, please check out my other addons:
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates

Click here to lend your support!

v2.3
- TOC bump
-----------------
v2.2
- Fixed another stupid logic mistake: find("0",s) to tonumber(s) < 10
------------------
v2.1
- Fixed and optimized logic mistake I made when converting to standard time from military
------------------
v2.0
- Complete overhaul of code and made it much more efficient using LUA based functions
- Optimized CPU usage to be between 0.36 and 0.69 cpu_cycles/second
- Optimized MEM usage to be less than 10kb
- TOC bump to MoP
- NO loss in functionality :)
------------------
v1.3
- rewrote lots of code for formatting the time
- REMOVED option to display seconds (causing a memory leak and I can't figure out why)
- ADDED option to display pending calendar invites in broker display and tooltip
- optimized all code
--------------------
v1.2
- optimized onupdate handler
- added option to show seconds or not show seconds in data broker
- added option for left clicking (time manager) and right clicking (calendar)
---------------------
v1.1
- fixed the issue with not formatting the time correctly
- added 24 hour support (check lua file to turn it on and off)
- optimized some code
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Author
Date
v2.2
16kB
shUI
10-23-12 08:17 PM
v2.1
16kB
shUI
10-22-12 06:34 PM
v2.0
16kB
shUI
10-21-12 12:48 PM


Post A Reply Comment Options
Unread 07-01-11, 01:20 PM  
Shadowcall
A Cyclonian
 
Shadowcall's Avatar
AddOn Author - Click to view AddOns

Forum posts: 44
File comments: 57
Uploads: 1
hi, long time no see
here again with requests
can you add the time until for tol barad and winterspring starts, or at least for tol barad?

p.s. i will also like to see the sec
Last edited by Shadowcall : 07-01-11 at 01:21 PM.
Shadowcall is offline Report comment to moderator  
Reply With Quote
Unread 10-22-12, 08:44 AM  
kaustos
A Kobold Labourer
 
kaustos's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 43
Uploads: 1
New version shows the time as "-3:42am" when the actual time (central, both local and server for me) is 9:42am, 2:42 utc o.O
kaustos is offline Report comment to moderator  
Reply With Quote
Unread 10-22-12, 08:57 AM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 334
Uploads: 5
Originally Posted by kaustos
New version shows the time as "-3:42am" when the actual time (central, both local and server for me) is 9:42am, 2:42 utc o.O
Wow, wtf lol. Could take a screenshot or tell me exactly what each time is showing in the broker AND in the tooltip?
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
shUI is offline Report comment to moderator  
Reply With Quote
Unread 10-23-12, 08:29 AM  
kaustos
A Kobold Labourer
 
kaustos's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 43
Uploads: 1
Originally Posted by shUI
Wow, wtf lol. Could take a screenshot or tell me exactly what each time is showing in the broker AND in the tooltip?
The tooltip and data broker were the same; -3:42am server/local, 2:42 utc.

edit: http://imgur.com/ZXrZB - actual time here is 10:02am server/local. this is 2.1.
Last edited by kaustos : 10-23-12 at 10:32 AM.
kaustos is offline Report comment to moderator  
Reply With Quote
Unread 10-24-12, 11:39 AM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 334
Uploads: 5
Originally Posted by kaustos
Originally Posted by shUI
Wow, wtf lol. Could take a screenshot or tell me exactly what each time is showing in the broker AND in the tooltip?
The tooltip and data broker were the same; -3:42am server/local, 2:42 utc.

edit: http://imgur.com/ZXrZB - actual time here is 10:02am server/local. this is 2.1.
Ya I know, stupid stupid mistake again. I think I fixed it all now!
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
shUI is offline Report comment to moderator  
Reply With Quote
Unread 11-28-12, 08:52 AM  
akgis
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 29
File comments: 78
Uploads: 4
Option to show 24hours time instead of AM/PM thingy doesnt work.
__________________
akgis is offline Report comment to moderator  
Reply With Quote
Unread 11-28-12, 09:08 AM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 334
Uploads: 5
Originally Posted by akgis
Option to show 24hours time instead of AM/PM thingy doesnt work.
Hmm, can you give me a better explanation of the error...b/c I am not able to recreate it.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
shUI is offline Report comment to moderator  
Reply With Quote
Unread 11-28-12, 12:16 PM  
akgis
A Fallenroot Satyr
AddOn Author - Click to view AddOns

Forum posts: 29
File comments: 78
Uploads: 4
Originally Posted by shUI
Originally Posted by akgis
Option to show 24hours time instead of AM/PM thingy doesnt work.
Hmm, can you give me a better explanation of the error...b/c I am not able to recreate it.
left click toggling the blizzard clock options with also includes the alarm. clicking 24hours mode doesnt do anything it still shows in AM/PM mode
__________________
akgis is offline Report comment to moderator  
Reply With Quote
Unread 11-28-12, 04:11 PM  
shUI
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 334
Uploads: 5
Well, as stated in the addon info page, I completely go around the blizzard time manager and write my own code based on local machines time stamps. The only time I'll call blizzard code is when I'm trying to get time from server. At the top of the shClock.lua - there are two config options, change the following code:

Code:
local showMilitary = false
to

Code:
local showMilitary = true
Save the lua file and reload your UI, done.
__________________
shPerformance: Data Broker memory/latency/fps usage display utility
shNameplates: Lightweight, simple, and sexy nameplates
shClock: Lightweight and simple data broker clock
shUI is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: