smurfier / luacalendar Goto Github PK
View Code? Open in Web Editor NEWA Calendar skin for Rainmeter powered by Lua.
A Calendar skin for Rainmeter powered by Lua.
Will there be plans to support iCalendar files (ICS) or at least something to convert them to XML that is usable with your LuaCalendar?
btw, your skin is awesome. :D
(this is not issue but suggestion for improvement)
In my country, holidays depend not only on the solar calendar but also on the lunar calendar. For example, January 1st on the solar calendar is called New Year’s Day and is the same every year. However, the Dragon Boat Festival falls on June 22nd in 2023 but on June 3rd in 2022!
A forum member asked about displaying a leading zero in the events list, when this option is set in the calendar.
This can be accomplished by changing the Function Events() -- Parse Events table
line 250 (local tbl) to:
function Events() -- Parse Events table.
Hol = setmetatable({}, { __call = function(self) -- Returns a list of events
local Evns = {}
for day = Time.stats.inmonth and Time.curr.day or 1, Time.stats.clength do -- Parse through month days to keep days in order
if self[day] then
local tbl = setmetatable({day = LZero(day), desc = table.concat(self[day]['text'], ', ')},
{ __index = function(_, input) return ErrMsg('', 'Invalid NextFormat variable {$%s}', input) end,})
table.insert(Evns, (Settings.NextFormat:gsub('{%$([^}]+)}', function(variable) return tbl[variable:lower()] end)) )
end
end
return table.concat(Evns, '\n')
end})
Added the LZero() function to the 'day' value.
The events list will display a leading zero just like the calendar, if 'Leading Zeros' is selected in the options.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.