[Berlin-wireless] remind (cmd-line kalender) code fuer Freifunk Berlin treffen

Robin Vobruba mls.robin.vobruba
Do Jun 11 12:06:58 CEST 2015


guten tag! :-)
ich neme an, der eine oder andere benutzt auch remind (linux package
"remind", bzw. https://www.roaringpenguin.com/products/remind), und
weil ich beim suchen in der mailingliste
(http://dir.gmane.org/gmane.org.freifunk.berlin) nichts entsprechendes
gefunden habe, dachte ich, send ichs mal rum.

remind ist eine old-school, shell basierte calender software,
hautpsaechlcih fuer *nix. es ist in etwa fuer termin-verwaltung, was
latex fuer text ist, also sehr flexibel/scriptable.

der kalender-eintrag fuer das Freifunk Berlin treffen (wie beschrieben
unter http://berlin.freifunk.net/contact/) sieht bei mir so aus:

########################################################################
# Returns the week-number of the month (1 - 5) for the given date.
FSET _wkMon(dq_date) (weekno(dq_date) - weekno(date(year(dq_date),
monnum(dq_date), 1)) + 1)

# Returns a location-string for the Freifunk Berlin meeting.
# If it is an odd week of the month (1, 3, 5) it takes place at cbase,
# on even weeks (2, 4) at Wikimedia.
FSET _ffMeetLoc(wkInMon) iif( \
    wkInMon % 2, "cbase.org (Rungestraße 20 (near S+U Jannowitzbrücke))", \
    "Wikimedia Deutschland (Tempelhofer Ufer 23 - 24, near U Moeckernbruecke)")

# If you are interested in all meetings
REM Wed AT 20:00 DURATION 2:00 MSG Freifunk Berlin Treffen -
[_ffMeetLoc(_wkMon(trigdate()))]
# If you are interested only in the cbase meetings
#REM Wed AT 20:00 DURATION 2:00 SATISFY [_wkMon(trigdate()) % 2 == 1]
MSG Freifunk Berlin Treffen - [_ffMeetLoc(_wkMon(trigdate()))]
# If you are interested only in the Wikimedia meetings
#REM Wed AT 20:00 DURATION 2:00 SATISFY [_wkMon(trigdate()) % 2 == 0]
MSG Freifunk Berlin Treffen - [_ffMeetLoc(_wkMon(trigdate()))]
########################################################################

gruesse,
robin





Mehr Informationen über die Mailingliste Berlin