Automated Slack notifications for NYC Alternate Side Parking strategy.
π View Source Code on GitHub
This Val runs every hour and sends you strategic Slack notifications about NYC Alternate Side Parking:
- Sunday 5 AM: Weekly parking strategy with visual calendar
- Mon-Thu 10 AM: Move reminders when you need to switch sides
- Mon-Fri 5 AM: Emergency alerts for unexpected ASP suspensions
Set these in the Val Town UI:
SLACK_WEBHOOK_URL- Your Slack incoming webhook URL (create one here)
Cleaning Schedule:
NEAR_SIDE_DAYS(default:Mon,Thu) - Days when your home side has cleaningFAR_SIDE_DAYS(default:Tue,Fri) - Days when opposite side has cleaningCLEANING_START_TIME(default:09:00) - When cleaning startsCLEANING_END_TIME(default:10:30) - When cleaning endsNEAR_SIDE_EMOJI(default:π‘) - Emoji for your home sideFAR_SIDE_EMOJI(default:π³) - Emoji for opposite side
Testing/Development:
FORCE_RUN- Override scheduled run times for testing:- Leave empty/unset for normal operation
- Set to
moveto force 10 AM move reminder check - Set to
summaryto force weekly summary generation - Set to
emergencyto force emergency suspension check - Remove this variable for production use!
- Fetches NYC's official ASP suspension calendar (ICS)
- Scrapes NYC DOT website for emergency suspensions
- Analyzes your weekly parking schedule
- Sends strategic Slack notifications at key times
This code is auto-generated from the source repository.
Do not edit index.ts directly - changes will be overwritten on next deployment.
To contribute or modify:
- Clone the GitHub repo
- Edit files in
src/ - Run
bun run deployto build and push
β οΈ IMPORTANT: Cron Schedule Configuration
This val should run with cron schedule: 10 * * * * (every hour at 10 minutes past the hour)
After deploying, verify the schedule is set correctly:
Val Town deployments may reset your cron schedule. Always check after deployment:
-
Option 1 - Automated (Recommended):
bun run set-scheduleRequires
VAL_TOWN_API_TOKENin .env with "Vals: read and write" permissions. Create token at: https://www.val.town/settings/api -
Option 2 - Manual:
- Open your val in the Val Town UI
- Click the cron schedule selector in the top right
- Set to:
10 * * * *
MIT - See GitHub repository for details