Hi Andrea

Take a look at:
Personally i prefer python or php.

You can use crontabs to trigger the 30min event.

I don't really have any expirence with the calendar api, so I can't give you an example.
But I hope this may give u an idea on how to start.