readme, days

This commit is contained in:
2021-03-21 20:13:16 +01:00
parent c53f903814
commit 28306ae7f6
2 changed files with 22 additions and 6 deletions

View File

@@ -3,7 +3,19 @@
Scheduling overview for Vatsim Germany's Forum.
Output as a jpg.
Using the following python dependancies
Using the following python dependencies
* imgkit, which in turn depends on wkhtmltopdf
* dateutil
* requests
* requests
Setup:
1. If necessary, change path to wkhtmltoimage in vatsched.py lines 92-94.
2. Setup image outputs in sched.py:
* List all stations as a python list. Use "--" to insert visual breaks in the table.
* List all dates as a python list as datetime objects. There are functions available to help with regularly occuring events:
* EveryXDaysFromStartdate (String startdate, int x, int numberofdays = 1) - Returns a python list of datetime objects. For regularly recurring events. Define a startdate and an interval in days for the event. numberofdays defines how many upcoming days will be returned.
* EveryXWeeksFromStartdate (String startdate, int x, int numberofdays = 1) - Returns a python list of datetime objects. For regularly recurring events. Define a startdate and an interval in weeks for the event. numberofdays defines how many upcoming days will be returned. This just an alias for EveryXDaysFromStardate with the input for x being x*7.
* EveryWeekday (int weekday, int numberofdays) - Returns a list of datetime objects. This to be used for weekly events. Define a day of the week and the number of days to be displayed. Monday = 0.
* WholeWeek (int shift = 0) - Returns a list of 7 datetime objects for consecutive days. Will start with today + shift days.
* Define output filename