This bot retrieves active police incidents from dallasopendata and posts all active incidents to a Bluesky account.
Alerts available at @dallas-alerts.bsky.social.
This bot runs on AWS Lambda every 2 minutes.
Redis instance hosted by Redis Enterprise.
Making a request to Blueky for a duplicate incident is deduplicated by using a Redis cache.
To get OpenData secrets, see Socrata: Generating an App Token.
Run Redis locally at localhost:6379
, or provide remote Redis location via the REDIS_(URL|USERNAME|PASSWORD)
environment variables.
nvm use
npm install
npm run build
DALLAS_ALERTS_OPENDATA_TOKEN=${your_opendata_token} \
DALLAS_ALERTS_BLUESKY_IDENTIFIER=${your_bluesky_identifier} \
DALLAS_ALERTS_BLUESKY_PASSWORD=${your_bluesky_password} \
npm run start
./create_zip.sh
Then upload to aWS Lambda manually Not the most automated way: