This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() { | |
echo "Usage: $0 -d YYYY-MM-DD [-c CAMERANAME] [-C]" | |
exit 1 | |
} | |
# Parse arguments | |
date="" | |
camera="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
from datetime import datetime | |
lunch_file = "/apps/swag/config/www/lunch_entrees.html" | |
# Get today's date | |
today = datetime.now() | |
# Check if it's a weekday (Monday = 0, ..., Friday = 4) | |
if today.weekday() < 5: # 0 to 4 are weekdays | |
# Format the date as MM-DD-YYYY |