Requirements:
- VPS (virtual private server, Linux Preferred)
- Apache Webserver with a website that is running
- a Functional Teamspeak Server
- Python 3
Needed:
- This Script: GitHub - OrcaCollective/google-calendar-helpers: Extract RSS feeds from the Google Calendar API
- Sinusbot: Linux - SinusBot Documentation
- This Script for Sinusbot TS3 - RSS Feed | SinusBot Forums
- Calendar API and a public calendar
Steps:
I am not going into full detail, if you read this i assume you followed the tutorials on the above websites !!
- Create a Google API Key https://console.developers.google.com For more info read the tutorial on this webpage: GitHub - OrcaCollective/google-calendar-helpers: Extract RSS feeds from the Google Calendar API
2.Download and extract/Deploy the Google Calendar Helpers Script, i would advice you to put it into your apache folder, since this is public accesable ( /var/www/html/Calendar)
-
Configure config.py.example and change the name to config.py when you are done. (you only need to fill in the details of the Google stuff)
-
test the script python gen_rss.py → if succesfull it will create a folder called output with yourfile.rss
-
Install Sinusbot (follow the tutorial on Linux - SinusBot Documentation) & make your sinusbot admin or assign the right permissions for channel editting
-
Download the rss reader script and place it in /opt/sinusbot/scripts
-
Restart Sinusbot and log into the Sinusbot webinterface
-
on the web interface open settings → scripts and look for RSSFeed
-
set it to english, give it the timeinterval you want (i have 60 minutes)
-
Configure your RSSFeed
- Rssfeedlink → Fastest Web Hosting Services | Buy High Quality Hosting
- feed to channel (specify your calendar channel here)
- Maxfeed 0 (amount of items displayed)
- Limit Characters 300
- Feed Array output: [size=+2]%FeedTitle[/size]
%Feedday %Feedmonth %Feedyear
%FeedTime - The other settings can be left empty
-
look in your teamspeak if the channel is updated, if not check your sinusbotlog
-
Final Step: since the serverside is not automated yet, you need to create a cronjob, if you do not know what it is please search for it. Basicly it is a small script/task you create to make stuff automaticly happen
Open your Linux Terminal and do this:
sudo crontab -e
MAILTO=“”
SHELL=/bin/bash
0 * * * * cd /var/www/html/calendar && source venv/bin/activate && python gen_rss.py
Then save this, with these settings and if you do everything right you will have a calendar channel that updates every hour.
If you are unsure Reboot everything and see if it is working.