Hi all,
major update on the
reader.lua code to be more efficient with RRULE arguments without needing to convert repeated events into single events like mentionned in previous post.
update 2023-06-17 Reader-2023-06-17.zip
UPDATES
-Added RRULES : DAILY, WEEKLY, MONTHLY, YEARLY,
-Added 2 DEBUG option for identify more easily where code is bugged (option are set to false by default to avoid long rainmeter logs)
-- FORDEBUG option is more the compute event is the main debugging logs
-- ADVDEBUG option is more the input feed debugging (for rare case)
-- TODO : ADD BYMONTHDAY function
-- TODO : ADD BYYEARDAY function
-- TODO : ADD EXDATE function
-Limitation
-- CASE MONTHLY BYDAY : only first arg is computed
-- FREQ=HOURLY, MINUTELY, or SECONDLY are not computed.
-Atom and RSS are not modified from original code
-------
Things to do manually :
Edit the file reader.lua and config your timestamp format return from Output() -> Goto line 384 to 389
comment with -- or uncomment remove -- at line beginning
Code: Select all
--CONFIG------- HERE SET YOUR LOCAL TIMESTAMP EXPORT TO GCALENDAR skin--------------
-- remove '--' or define your personal Timestamp
--local Timestamp = SELF:GetOption('Timestamp', '%I:%M %p %A %B %d') --08:00 PM Monday June 05
--local Timestamp = SELF:GetOption('Timestamp', '%H:%M %a %d %b') --20:00 Mon 05 Jun
--local Timestamp = SELF:GetOption('Timestamp', '%Y %H:%M %a %d %b') --2023 20:00 Mon 05 Jun
--local Timestamp = SELF:GetOption('Timestamp', '%y %H:%M %a %d %b') --23 20:00 Mon 05 Jun
local Timestamp = SELF:GetOption('Timestamp', '%H:%M %a %d %b') --20:00 Mon 05 Jun <-- I use this one
--print("debug 368 ! Ouput () ! check timestamp", Timestamp)
------Reminder lua tags for personal timestamp--------
--[[
%a abbreviated weekday name (e.g., Wed)
%A full weekday name (e.g., Wednesday)
%b abbreviated month name (e.g., Sep)
%B full month name (e.g., September)
%c date and time (e.g., 09/16/98 23:48:10)
%d day of the month (16) [01-31]
%H hour, using a 24-hour clock (23) [00-23]
%I hour, using a 12-hour clock (11) [01-12]
%M minute (48) [00-59]
%m month (09) [01-12]
%p either "am" or "pm" (pm)
%S second (10) [00-61]
%w weekday (3) [0-6 = Sunday-Saturday]
%x date (e.g., 09/16/98)
%X time (e.g., 23:48:10)
%Y full year (1998)
%y two-digit year (98) [00-99]
%% the character `%´
]]
-------------------------------------------------
Thanks @kaelri & @
eclectic-tech for this skin and all users that comment and allow debug and upgrade the reader.lua in this forum.
Regards,
helder065
You do not have the required permissions to view the files attached to this post.