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:
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 sideTesting/Development:
FORCE_RUN
- Override scheduled run times for testing:
move
to force 10 AM move reminder checksummary
to force weekly summary generationemergency
to force emergency suspension checkThis 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:
src/
bun run deploy
to 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-schedule
Requires VAL_TOWN_API_TOKEN
in .env with "Vals: read and write" permissions.
Create token at: https://www.val.town/settings/api
Option 2 - Manual:
10 * * * *
MIT - See GitHub repository for details