Smart Move Car Notification System powered by Cloudflare Workers.
- π° Serverless architecture, zero operational costs.
- π Telegram instant push notifications.
- π¨ Two-way location sharing, reducing malicious harassment.
- π Protect both parties' privacy.
- Visit
Notify Car Ownerpage. - Leave a message (optional), e.g.
Your car is blocking me. - Allow access to location (If denied, will delay notification by 30 seconds).
- Click
Notifybutton. - Awaiting car owner's reply, car owner's location can be viewed.
- Received a notification from Telegram
- Visit
Confirm Remove Carpage - Check guest's location
- Click
Confirmbutton, share your location with guest.
sequenceDiagram
participant Guest
participant Car Owner
Guest->>Guest: Visit 'Notify Car Owner' page
Guest->>Guest: Access location
alt Available
Guest->>Car Owner: Push notification
else Unavailable
Guest->>Car Owner: Delay 30 seconds
end
Car Owner->>Car Owner: Received notification
Guest->>Guest: Waiting...
Car Owner->>Car Owner: Check guest's location
Car Owner->>Guest: Share location
Guest->>Guest: View Car Owner's location
- Visit Cloudflare to Register an account.
- Go toγWorkers & Pagesγand create a worker.
- Worker code uses
movecar.jsand deploy it. - Go toγWorkers KVγand create a namespace named
MOVE_CAR_STATUS. - Return to worker and bind it.
- Add variables
TELEGRAM_BOT_TOKEN,TELEGRAM_CHAT_ID,PHONE_NUMBER(optional),GOOGLE_MAPS_API_KEY(optional). - Custom domain can be configured as needed.
π‘ You can package it nicely, e.g. QR Code or NFC Tag.
async function handleRequest(request) {
const country = request.cf?.country;
if (country && country !== "US") {
return new Response("Access Denied", { status: 403 });
}
...
}movecar-telegram is MIT licensed.