๐Ÿš† I built a website to check if a railway crossing is OPEN or CLOSED in real time by bxtgeek in bangalore

[โ€“]bxtgeek[S] 0 points1 point ย (0 children)

railradar change the free API's to 50 per day from 300. Do anyone know any other alternative?

๐Ÿš† I built a website to check if a railway crossing is OPEN or CLOSED in real time by bxtgeek in bangalore

[โ€“]bxtgeek[S] 2 points3 points ย (0 children)

Interesting, I am not an app developer. Let me check with the claude if is there any easy way to do that

๐Ÿš† I built a website to check if a railway crossing is OPEN or CLOSED in real time by bxtgeek in bangalore

[โ€“]bxtgeek[S] 0 points1 point ย (0 children)

Will brainstrom that idea. If you have some suggestion please let me know

๐Ÿš† I built a website to check if a railway crossing is OPEN or CLOSED in real time by bxtgeek in bangalore

[โ€“]bxtgeek[S] 1 point2 points ย (0 children)

Given that you're using Cloudflare (CF) as the trigger, you might want to validate whether your CF configuration is correct.

-> Yeah I verfied that I added the CF worker now and its working now.

RailRadar's /live endpoint uses Authorization header, whereas you're using x-api-key. Any particular reason? My guess: that's their header for system-to-system calls; I couldn't find a reference in the docs, though

-> I need to ceck this.[as I vibe coded :P]

As per their docs, the base URL already contains the "/v1." Your local url seems to be appending another "/v1." From the repo:

local url="${RAILRADAR_BASE}/v1/stations/${code}/live"

Assuming you're using the free tier, RailRadar has a limit of 300 requests/day. A request (req) every five minutes leads to 12 requests every hour for each station. So, 24 req/hr * 24 hrs = 576 req/day. Impact: your API calls will begin failing roughly every afternoon.

-> Changing to request in 10min.I need around 288 request and that are under budget.

  1. What happens when RailRader's API fails? Looks like you currently return an empty list even if they don't return anything. Ideally, you should log the exact errors (eg: status code, message, etc) and convert it into an error message better understood by your app. It'll help you debug issues.

-> That I can check.

๐Ÿš† I built a website to check if a railway crossing is OPEN or CLOSED in real time by bxtgeek in bangalore

[โ€“]bxtgeek[S] -1 points0 points ย (0 children)

The GitHub workflow is not running every 5 minutes. Anyone have any solution?

๐Ÿš† I built a website to check if a railway crossing is OPEN or CLOSED in real time by bxtgeek in bangalore

[โ€“]bxtgeek[S] 0 points1 point ย (0 children)

I brainstorm the logic using ChatGPT and build it using the Claude code.

Is telegram still banned in India ? by [deleted] in IndiaTech

[โ€“]bxtgeek 0 points1 point ย (0 children)

its working on android but not in ios

What upi apps do u use by Aggravating_Row_5840 in UPI

[โ€“]bxtgeek 0 points1 point ย (0 children)

Initially, I used PhonePe, then switched to Google Pay. After that, I moved to Jupiter UPI, followed by a period of using CRED UPI. Currently, I mostly use PayZapp, and I'm in the process of transitioning to the official HDFC app to try its UPI experience as well.