Comments (6)
This seems really hard (to me, without any idea as to whether there is decent support in icalendar
for parsing these events). Also I would query whether or not it's really appropriate for a proper response schedule - the whole point is that these need to be modified to take account of holidays, anniversary plans, travel, etc.
What's the use case here?
from cabot.
It's easier to set a schedule and exclude dates instead of manually adding an item for every day of the year. Doing it manually also increases the risk of human error. Sample use case:
ipmb is typically on duty M-F excluding March 27-28, 2014 because vacation/travel/etc.
I can create the recurring event in Google calendar and then delete a single (or multiple occurrences).
That looks like this in the .ics
:
BEGIN:VEVENT
DTSTART;TZID=America/Mexico_City:20140305T100000
DTEND;TZID=America/Mexico_City:20140305T150000
RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
EXDATE;TZID=America/Mexico_City:20140328T100000
EXDATE;TZID=America/Mexico_City:20140327T100000
DTSTAMP:20140314T152657Z
UID:[email protected]
CREATED:20140306T042702Z
DESCRIPTION:
LAST-MODIFIED:20140313T231344Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:ipmb
TRANSP:OPAQUE
END:VEVENT
Notice RRULE
and EXDATE
.
from cabot.
It looks like python-dateutil has good support for rrule. I'll try to dig in further.
from cabot.
I also found https://pypi.python.org/pypi/pyICSParser - according to this SO question it should help.
from cabot.
I have something that seems to work here. I'll do some more testing and submit a proper pull request. lincolnloop/cabot@python-package...recurring-events
from cabot.
Closing this per #396
from cabot.
Related Issues (20)
- worker not subscribing to tasks from docker-compose / Checks not running
- Feature request: TLS 1.3 support
- Move documentation to README/Github HOT 2
- Planning migrate to Django 2.2? HOT 3
- Email alerts sent once not multiple times HOT 1
- There are no global settings yet HOT 2
- Jenkins check shows passing even though the status is failed HOT 5
- GitHub OAuth fails with redirect_uri_mismatch HOT 5
- How to create first user at setup time? HOT 15
- Cabot using deprecated access_token GitHub query parameter HOT 4
- The is_public setting for services appears to be ignored HOT 5
- Not receiving phone call when ICMP is down HOT 8
- Decrease frequency check to trigger alert! HOT 1
- How to add API route for a check plugin HOT 7
- docker-compose fails on Raspberry Pi 4 32bit
- Service 'beat' failed to build : The command '/bin/sh -c pip install --no-cache-dir -r requirements.txt' returned a non-zero code: 1 HOT 3
- Docker Images build fails HOT 1
- Pushes from alertmanager HOT 1
- Potential usage of cabot for WordPress Maintenance service?
- Twilio TLS certificate is not accepted by the Cabot docker image, so SMS and phone call notifications do not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cabot.