Avatar

panphora

Joined February 16, 2023
Public vals
9
panphora avatar
panphora
bsky_phrase_tracker
Cron
Bluesky Phrase Tracker Track topics, communities, and conversations on Bluesky by monitoring specific phrases and getting email notifications when they appear in new posts. Features Monitor multiple phrases or terms simultaneously Get email notifications for new matching posts Customizable search intervals Exact phrase matching to reduce false positives Rate limiting protection Error notifications if something goes wrong Prerequisites To use this tracker, you'll need: A Bluesky account A Val Town account to host and run the script Environment variables set up for your Bluesky credentials Setup Instructions Create a new Val in Val Town and paste the code from this repository Set up your environment variables in Val Town: BSKY_USER : Your Bluesky email/handle BSKY_PASS : Your Bluesky app password (create one in Bluesky settings) Customize the TRACKED_PHRASES array with your own phrases to monitor: const TRACKED_PHRASES = [ "your phrase 1", "your phrase 2", "your community name", // add more phrases as needed ]; Set up the interval for how often you want the tracker to run using Val Town's scheduling feature. How It Works The tracker: Logs into your Bluesky account Searches for each tracked phrase Filters results for exact matches Compiles matching posts into an email Sends you a notification with links to the posts If any errors occur (like login failures), you'll receive an error notification email. Customization Tips Adjust the search interval based on your needs Modify the email template in the code to change the notification format Add additional filters for the posts you want to track Customize the delay between searches to adjust rate limiting Troubleshooting If you're not receiving notifications: Check your environment variables are set correctly Verify your Bluesky credentials Ensure your email address is configured in Val Town Check the Val Town logs for any error messages Contributing Feel free to fork this code and adapt it for your own needs. If you make improvements, consider sharing them back with the community! Credits Built using: atproto/api for Bluesky integration Val Town for hosting and scheduling
0
panphora avatar
panphora
cronSiteMonitor
Cron
Site Monitor A simple cron script that monitors website availability and sends email notifications when sites are down. Features Monitors multiple websites concurrently 5-second timeout for each site check Email notifications for downtime events Uses ESM modules for email functionality Dependencies ESM email module ( https://esm.town/v/std/email ) Usage Fork, insert your own websites, and set a 10min cron timer. Error Handling The script considers a site as "down" if: The site fails to respond within 5 seconds The site returns a non-200 status code Any network or connection error occurs Email Notifications When downtime is detected, an email is sent with: Subject: Lists all down sites with a 🚨 emoji prefix Body: Simple text listing of all down sites License WTFPL
1
panphora avatar
panphora
twitterOpenGraphImage
HTTP
An interactive, runnable TypeScript val by panphora
0
panphora avatar
panphora
formatAsCurrency
Script
An interactive, runnable TypeScript val by panphora
0
panphora avatar
panphora
btcPrice
Cron
An interactive, runnable TypeScript val by panphora
2
panphora avatar
panphora
map
Script
An interactive, runnable TypeScript val by panphora
0
panphora avatar
panphora
get
Script
An interactive, runnable TypeScript val by panphora
0
panphora avatar
panphora
distance
HTTP
An interactive, runnable TypeScript val by panphora
0
panphora avatar
panphora
webhook1
Script
An interactive, runnable TypeScript val by panphora
0
Next