It is currently March 29th, 2024, 7:29 am

Android "Minimalistic Text" clock for Rainmeter w/Lua

Clocks and timer skins
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Android "Minimalistic Text" clock for Rainmeter w/Lua

Post by jsmorley »

A user in another thread asked about a clock that looked like the display in the Android "Minimalistic Text" phone app.

Get the latest 1.4 beta (at least r698) or better of Rainmeter from http://Rainmeter.net

Then install this skin:
LuaTimeText.rmskin
1.png
2.png
3.png
The skin part of it is really simple. You can change the fonts and sizes and positions as you see fit. The Lua script is also pretty straightforward, but you shouldn't have to change it, unless you really want to change "OH" to "ZERO". Up to you, I hated "ZERO", didn't read right. Backup up the .lua file before you mess with it, as an error in the Lua can make Rainmeter come off the rails, and you might have to put it back to get Rainmeter to run.
You do not have the required permissions to view the files attached to this post.
User avatar
karmat
Posts: 329
Joined: July 7th, 2009, 11:10 pm
Location: Canada

Re: Android "Minimalistic Text" clock for Rainmeter w/Lua

Post by karmat »

Nice!
scash
Posts: 8
Joined: January 23rd, 2011, 1:13 am

Re: Android "Minimalistic Text" clock for Rainmeter w/Lua

Post by scash »

Thank you! Dear Moses that was fast! A thousand times over, thank you!! :)
dsac
Posts: 2
Joined: August 17th, 2011, 3:19 pm

Re: Android "Minimalistic Text" clock for Rainmeter w/Lua

Post by dsac »

love the clock, but what is the config change required to have the middle text lowercase at all times?
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Android "Minimalistic Text" clock for Rainmeter w/Lua

Post by jsmorley »

dsac wrote:love the clock, but what is the config change required to have the middle text lowercase at all times?
Edit the .lua file, and look for two places like this:

MinutesLeftText = string.upper(tLookup[MinutesLeft])

Change them to string.lower

Look for this:

if MinutesLeftText == "OH" and MinutesRightText == "oh" then

and change it to:

if MinutesLeftText == "oh" and MinutesRightText == "oh"

Look for this:

MinutesLeftText = "O'CLOCK"

and change it to:

MinutesLeftText = "o'clock"

Save and refresh...
dsac
Posts: 2
Joined: August 17th, 2011, 3:19 pm

Re: Android "Minimalistic Text" clock for Rainmeter w/Lua

Post by dsac »

string.lower, of course!

i figured out the other ones, but this last one was making me crazy!

thanks for the rapid reply, it's greatly appreciated!
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Android "Minimalistic Text" clock for Rainmeter w/Lua

Post by jsmorley »

My pleasure.
TheHydroMule
Posts: 2
Joined: September 13th, 2011, 6:44 am

Re: Android "Minimalistic Text" clock for Rainmeter w/Lua

Post by TheHydroMule »

Hey, guys been downloading skins for a while and finally decided to make an account and be a part of this forum :P
Quick request/question would it be possible for someone to make a date thing out of this where the first white text would be the day of the week then month then the day number.


tuesSEPT13th


I want to learn how to make this stuff but I dont think I have the patience lol
User avatar
Nebbishatudub
Posts: 26
Joined: January 28th, 2011, 4:57 am
Location: Washington, DC

Re: Android "Minimalistic Text" clock for Rainmeter w/Lua

Post by Nebbishatudub »

TheHydroMule wrote:Hey, guys been downloading skins for a while and finally decided to make an account and be a part of this forum :P
Quick request/question would it be possible for someone to make a date thing out of this where the first white text would be the day of the week then month then the day number.


tuesSEPT13th


I want to learn how to make this stuff but I dont think I have the patience lol
Go here. It is actually easy to get a handle on all the major concepts in Rainmeter in a very short amount of time.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Android "Minimalistic Text" clock for Rainmeter w/Lua

Post by jsmorley »