Shop Mobile More Submit  Join Login
LuaCalendar 5.0 by smurfier LuaCalendar 5.0 by smurfier
*** Requires Rainmeter 3.0 or higher ***
Before upgrading to a newer version, back up all settings, holiday files, and personal style sheets.

A simple calendar powered by Lua with many customizable options.

Options and Features include:
  • Uses Style Sheets for easy customizing.
    • Includes three default styles and an Enigma style.
  • Start the week on Monday.
  • Use localized month names.
  • Show holidays and events.
  • Move through the months.
  • And many more!


For more information visit: smurfier.github.io/LuaCalendar…
Add a Comment:
 
:icongrayhorseretired:
GrayhorseRetired Featured By Owner Apr 26, 2015
Great job with the personalizing settings.   Got everything working, and wanted to frame it. how do I get the calendar to  go where I want it? Tryed putting X= and Y= in a bunch of locations, but, not any help. Again Great Job. I really Like the Calendar. Thanks
Reply
:iconavalplaza:
AvalPlaza Featured By Owner Jan 30, 2015
I dont get your Readme.txt.
To add an event I need to fiddle with .xml files in some remote windows folder to do, what a single tap did on an old Nokia brick in the 90s...
I am quite sure I missed something?
Reply
:iconsmurfier:
smurfier Featured By Owner Apr 5, 2015
Nope, you didn't miss anything.
Reply
:iconrgkjr:
rgkjr Featured By Owner Edited Dec 28, 2014
Virus Total detects 7 threats on luacalendar_5_0_by_smurfier-d4n57jh.rmskin:

www.virustotal.com

AVware: Trojan.Win32.Generic!BT 20141228

K7AntiVirus: Trojan ( 700000111 ) 20141226

K7GW: Trojan ( 700000111 ) 20141226

NANO-Antivirus: Trojan.Script.Autoit.debver 20141228

Rising: PE:Trojan.Win32.Spiejy.a!1075356057 20141227

TheHacker: Trojan/Cosmu.bizd 20141227

VIPRE: Trojan.Win32.Generic!BT 20141228
Reply
:iconsmurfier:
smurfier Featured By Owner Dec 29, 2014
This is somewhat common when RMSKIN packages contain AutoIt addons, which this does. I am certain that there are no viruses in the package.
Reply
:iconelcidxx:
ElCidxx Featured By Owner Oct 1, 2014
Hello John,

first of all, thanks for your calendar, it's really what I was looking for!

Trying to add some events, I ran into the same issue noticed by v3rpin in Nov 2012 (pag. 7-8): without the repeat="..." argument in the <EventFile> heading, no event appears on the calendar. Can I kindly ask you if there's any solution for this? (I read that it was solved few days later, with an update, but it seems I'm facing with the same problem)

Thanks again,

Syd
Reply
:iconfred-miaou:
fred-miaou Featured By Owner Jul 27, 2014
Bug with pipe !

I tried with:

EventFile="E:\Win 8\Sauvegardes\Program Source\Customisation\rainmeter\Calendriers\file 1.xml"|"E:\Win 8\Sauvegardes\Program Source\Customisation\rainmeter\Calendriers\file 2.xml"

OR

EventFile="E:\Win 8\Sauvegardes\Program Source\Customisation\rainmeter\Calendriers\file 1.xml"|file 2.xml

With or without quotes.

Doesn't work and produce an error in log : Script: CScript.Lua:593: bad argument #1 to 'format' (string expected, got no value)


Using those files separately works.

So frustrating. I will apreciate some help or solution for this.

Plus another bug if title used:

<EventFile Title="Anniversaires" Repeat="Year">
    <Event Month="8" Day="8" Year="1952" Repeat="Year" Anniversary="true" Description="Mum"/>
</EventFile>


Will only show -Anniversaires

While

<EventFile Repeat="Year">
    <Event Month="8" Day="8" Year="1952" Repeat="Year" Anniversary="true" Description="Mum"/>
</EventFile>

works as expected.

Thanks
Reply
:iconsmurfier:
smurfier Featured By Owner Jul 28, 2014
For the pipe problem, it is actually:

EventFile=E:\Win 8\Sauvegardes\Program Source\Customisation\rainmeter\Calendriers|file 1.xml|file 2.xml

Your first event works perfectly fine for me, granted that I'm using a newer version of the script with several issues fixed.

I hope to release a new version within the next few days.
Reply
:iconfred-miaou:
fred-miaou Featured By Owner Jul 29, 2014
How can we be notified for a new release?
Reply
:iconpul53dr1v3r:
Pul53dr1v3r Featured By Owner Jul 20, 2014   General Artist
how to make a holiday that appears just in one year, no repeats?  
Reply
:iconpul53dr1v3r:
Pul53dr1v3r Featured By Owner Jun 20, 2014   General Artist
what about help? -_-
Reply
:iconsmurfier:
smurfier Featured By Owner Jun 20, 2014
I'm working on it. Trouble is that I have work, a life, and I'm making sure it works with the newer script that I'm using.
Reply
:iconpul53dr1v3r:
Pul53dr1v3r Featured By Owner Jun 21, 2014   General Artist
No problem mate.  I just wanted to know that you are working on it. I've  no doubt in your success. :)
Reply
:iconsmurfier:
smurfier Featured By Owner Jun 21, 2014
Just so you know... I'll probably just update the skin with a new variable for Orthodox Easter.
Reply
:iconpul53dr1v3r:
Pul53dr1v3r Featured By Owner Edited Jul 21, 2014   General Artist
If you didn't do it, here is a code for Orthodox Easter. Not tested:




function Orthodox Easter()
golden
= (year % 19) + 1
c
= math.floor(year/400) + math.floor(8*(math.floor(year/100) + 11) / 25) - math.floor(year/100)
s
= (11 * golden + c) % 30
if (s < 0) then
s
= s + 30
end
pfm
= os.time{year=year, month=4, day=19} - s * 24 * 60 * 60
if (pfm == os.time{year = year, month = 4, day = 19}) then
pfm
= pfm - 24 * 60 * 60
elseif (pfm == os.time{year = year, month = 4, day = 18} and golden > 11) then
pfm
= pfm - 24 * 60 * 60
end
sunday
= pfm + (7 - tonumber(os.date("%w", pfm))) * 24 * 60 * 60
return {year = year, month = tonumber(os.date("%m", sunday )), day = tonumber(os.date("%d", sunday ))}
end
Reply
:iconpul53dr1v3r:
Pul53dr1v3r Featured By Owner Jun 22, 2014   General Artist
Ok. Just let me know when you have finished it.
Reply
:iconpul53dr1v3r:
Pul53dr1v3r Featured By Owner Edited Jun 17, 2014   General Artist
hi. Help me pls to edit the code and "match" the dates of Orthodox Easter  in the Calendar as the built in Holiday (as you know, the Easter is a movable feast). It could take some doing, but here is a helpful link about it: www.smart.net/~mmontes/ortheas…
Read from "Orthodox Churches" title. I would greatly appreciate your help!
This is the formula: 

G = year % 19
I = (19*G + 15) % 30
J = (year + year/4 + I) % 7
L = I - J
EasterMonth = 3 + (L + 40)/44
EasterDay = L + 28 - 31*(EasterMonth/4)

_________________________
G is the Golden Number-1
I is the number of days from 21 March to the Paschal full moon
J is the weekday for the Paschal full moon (0=Sunday, 1=Monday, etc.)
L is the number of days from 21 March to the Sunday on or before the Pascal full moon (a number between -6 and 28).
Reply
:iconcongtucodon2007:
congtucodon2007 Featured By Owner Jun 1, 2014
How can i show current holiday tooltip as the text
Reply
:iconsmurfier:
smurfier Featured By Owner Jun 1, 2014
You want to display the holiday text instead of the day number?
Reply
:iconcongtucodon2007:
congtucodon2007 Featured By Owner Jun 2, 2014
i wan to get this text to display in somewhere in calender. 
Reply
:iconcongtucodon2007:
congtucodon2007 Featured By Owner Jun 1, 2014
How to show current holiday as the text. 
Reply
:iconpul53dr1v3r:
Pul53dr1v3r Featured By Owner Jun 1, 2014   General Artist
hi. How to keep the [WeekendStyle] color unchanged if a weekend day is the [CurrentDay]?

Example: 1st June should be red as a weekend day. 
postimg.org/image/u94r9l5k1/
Reply
:iconsmurfier:
smurfier Featured By Owner Jun 1, 2014
Actually, my previous suggestion wouldn't work. What you want would require a wide scale change in the script.
Reply
:iconsmurfier:
smurfier Featured By Owner Jun 1, 2014
The only way to make that work is to remove the FontColor from [CurrentDay].
Reply
:iconpul53dr1v3r:
Pul53dr1v3r Featured By Owner Jun 1, 2014   General Artist
it works with Events perfectly, but doesn't with weekends.
Reply
:iconpul53dr1v3r:
Pul53dr1v3r Featured By Owner May 13, 2014   General Artist
hi. Nice calendar! Just tell me how to define Sunday as the only weekend day? I would like to change all Sunday dates to one different color.
Reply
:iconsmurfier:
smurfier Featured By Owner May 13, 2014
Open CScript.lua.
Line 423 should look like this:

elseif (meter % 7) == 0 or (meter % 7) == (Settings.StartOnMonday and 6 or 1) then

Change it to this:

elseif (meter % 7) == (Settings.StartOnMonday and 6 or 1) then

That should do what you are asking for.
Reply
:iconpul53dr1v3r:
Pul53dr1v3r Featured By Owner May 13, 2014   General Artist
 it changes the Saturday but this is what i did and it works now elseif (meter % 7) == 0 or (meter % 0) == (Settings.StartOnMonday and 6 or 1)  Thx anyway! 
Reply
:iconn-thro:
n-thro Featured By Owner Feb 24, 2014
Hi, I really love Lua Calendar. Great work.
Just wondering, in case that weekend day is also a holiday, whether it is possible to show the color of holiday instead of weekend day.
I do not want to use an awkward solution of manualy setting color to all holidays individually.
Thanks a lot.
Reply
:iconsmurfier:
smurfier Featured By Owner Feb 24, 2014
Open cScript.lua in notepad. Scroll down until you find the Draw function.

Look for this line:
elseif (meter % 7) == 0 or (meter % 7) == (Settings.StartOnMonday and 6 or 1) then

Change it to:
elseif (meter % 7) == 0 or (meter % 7) == (Settings.StartOnMonday and 6 or 1) and not event then
Reply
:iconn-thro:
n-thro Featured By Owner Feb 25, 2014
Thanks a lot! You rock!
Reply
:iconsmurfier:
smurfier Featured By Owner Feb 25, 2014
No problem. This had been added to future releases.
Reply
:icongsim94:
gsim94 Featured By Owner Feb 4, 2014
If anyone could help me with this problem I would greatly appreciate it!!
I set the settings to "click through" and cant find a way to reset it back to normal. Any idea how this can be done?

Thanks!!
Reply
:iconsmurfier:
smurfier Featured By Owner Feb 5, 2014
Hold down the cCtrl button while you right click on the skin.
Reply
:iconmercury52:
mercury52 Featured By Owner Dec 31, 2013
Great functional calendar. Just what I've been looking for.
Reply
:icongreyhndz:
greyhndz Featured By Owner Dec 9, 2013
Thank you, my friend. I'm been searching for a simple monthly calendar and calculator and now I've got both. Much appreciated!!
Reply
:iconstartreksuite:
startreksuite Featured By Owner Nov 3, 2013  Hobbyist Photographer
Hi,
I was wondering how to add events to the calendar. I use the Enigma skin, and try to add the xml calendar through the options skin.  It doesn't seem to work. Is there a different way? thanks.
Reply
:iconsmurfier:
smurfier Featured By Owner Nov 3, 2013
Please join me on the Rainmeter IRC Web Chat: webchat.freenode.net/?channels…
Reply
:icondomdeviantart:
domDeviantArt Featured By Owner Oct 26, 2013
Posting this in case it helps anyone else...   I wanted to show 2 (or more) months on the desktop. There may be better ways of doing this but this worked for me.

Copy the folder you have LuaCalendar in e.g. C:\Rainmeter\Skins\LuaCalendar\ and rename it to something useful e.g. C:\Rainmeter\Skins\LuaCalendar_Month+1\
Then edit the LuaCalendar.ini in C:\PortableApps\Rainmeter\Skins\LuaCalendar_Month+1\ (or whatever you called it)
At the bottom of the first section, [Rainmeter], add a the following line to show the next month  -

OnRefreshAction=[!CommandMeasure Lua Move(1)][!Update]

e.g.
; under this line...  MouseScrollDownAction=!CommandMeasure Lua "Scroll=Scroll+1"
OnRefreshAction=[!CommandMeasure Lua Move(1)][!Update]

Then go into the usual Rainmeter manage section, choose Refresh All and you should see the folder you created there e.g. LuaCalendar_Month+1 under Active Skins. Then just choose Load as you usual would to show a new skin.

If you want to show more than one month, then just copy the folder again and increment or decrement the number after the Move e.g. Move(2) or Move(-1)

As I said there might be better ways of doing this but this worked for me, and I hope it helps someone else show the next month or the previous month of the calendar on the desktop.

Dom
Reply
:iconhora-hora:
hora-hora Featured By Owner Jun 24, 2013  Professional Digital Artist
Hello, seems like this question hasn't been asked yet...
I've changed the "fontface" and "fontsize" in default2 style and now horizontal line of current day/week looks a bit offset down by several pixels [link].
So, can I somehow adjust position of "maintext" or "hline" on Y axis to align them without editing LUA script? Thanks.
Reply
:iconsmurfier:
smurfier Featured By Owner Jun 24, 2013
You will need to edit the C.h and C.w variables for that. They are located in the Variables.inc file. It might take some trial and error to find what the dimensions of the individual text cells are now. If that doesn't work, you may need to alter the formula in the [hLine] section of the Styles.inc file. The LUA script simply returns the week number and does not need to be altered.
Reply
:iconhora-hora:
hora-hora Featured By Owner Jun 24, 2013  Professional Digital Artist
Aw yeah, lowering C.h value did the trick, thanks for the support!
Reply
:icondr-xperience:
Dr-Xperience Featured By Owner May 27, 2013
Hey I am totally new to rainmeter so if possible please tell me how to add a transcluent image behind the app. As its very hard to see calender with my current wallpaper.
Reply
:iconsmurfier:
smurfier Featured By Owner May 27, 2013
Do you have an image in mind or would a defined color be an ok background?
Reply
:icondr-xperience:
Dr-Xperience Featured By Owner May 27, 2013
Cool I was looking for something like this from long . And finaaly got
Good Job
Thanks [link]
Reply
:iconmeherjan:
Meherjan Featured By Owner May 23, 2013
I would like to change the colours of the date, the month as well as the days of the week. Could you help me with that?
Reply
:iconjafarc:
jafarc Featured By Owner Mar 3, 2013  Student Digital Artist
I cant seem to install it :(
it says "invalid settings file", rainstaller is supposed to install it automatically, but i dont seem to know what the problem is :/

I'm trying to install this one because your older enigma calendar just stopped showing the calendar after february.
i dont know what to do
Reply
:iconsmurfier:
smurfier Featured By Owner Mar 3, 2013
Are you running the latest Rainmeter 2.5 beta?
Reply
Add a Comment:
 
×
Download 647 KB




Details

Submitted on
January 21, 2012
File Size
647 KB
Submitted with
Sta.sh
Link
Thumb
Embed

Stats

Views
49,974 (1 today)
Favourites
89 (who?)
Comments
144
Downloads
14,782 (1 today)

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
×