DevWeave logoDevWeave
CommunitiesDiscoverHelp ForumFeaturesWhy DevWeaveAI & Verification
Log inGet started
Back to Issue Discovery
OpenwaterHealth/openmotion-test-app #139openQMLOpen-Source Beginners

Time to github quota reset displayed

Opened by @bahartl · Assignees: None

View on GitHub
enhancementgood first issue

Solve & Merge Reward: Up to +210 XP & +60 Coins

+30 XP on PR open · +180 XP & +60 coins on merge

2 GitHub Stars

Claim Status & GitHub Signal

Unassigned, with 1 comment. Unassigned does not guarantee unclaimed—read comments and linked PRs first.

AI Issue Assessment · Grounded Analyzer
2.8 / 10 · 3–4 · Beginner

Estimated from issue labels (enhancement, good first issue), QML context, and discussion depth. There are 1 GitHub comments to review for maintainer clarifications. Note: this is an estimate, not a guarantee.

What It's About

Time to github quota reset displayed. When github gets tied up with too many requests from the test app, would be great if at least in the terminal if it could at least display how many more minutes there is to go until it gets freed up (if not have a gui popup that's easier to see). This command

Why It Matters

Resolving #139 improves reliability and developer experience in OpenwaterHealth/openmotion-test-app.

Expected Outcome

A focused pull request addressing #139 with relevant checks or tests verified locally.

Skill Match Breakdown

Log in to compare this issue's requirements against your profile skills. Required concepts: HTTP & REST APIs, CLI & Shell.

Progressive AI Hints

Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.

Log in to receive your free level-adapted Hint #1 grounded in this repository's files.

Skill-Gap Learning

Gap-Targeted
Learn Linux

Shell navigation, process inspection, pipes, and CLI debugging.

Addresses skill gap: CLI & Shell

Hands-On CodeCrafters Practice
Skill-Gap Challenge
Build your own HTTP Server
C

Handle raw TCP connections, HTTP parsing, headers, and concurrent routes.

Practice skill gap: HTTP & REST APIs

Build your own Shell
C

Parse commands, manage PATH lookups, pipes, and process execution.

Practice skill gap: CLI & Shell

Issue Description

When github gets tied up with too many requests from the test app, would be great if at least in the terminal if it could at least display how many more minutes there is to go until it gets freed up (if not have a gui popup that's easier to see).

This command seemed to work for me in Windows: powershell -Command "$r = (Invoke-RestMethod '[https://api.github.com/rate_limit').resources.core](https://api.github.com/rate_limit%27%29.resources.core); $reset = [DateTimeOffset]::FromUnixTimeSeconds($r.reset).LocalDateTime; $mins = [math]::Max(0, [math]::Round(($reset - (Get-Date)).TotalMinutes, 1)); Write-Host ('Remaining: ' + $r.remaining + ' | Resets at: ' + $reset + ' | Wait: ' + $mins + ' mins')"

And this command seemed to work for me on my Mac (I know test app isn't supported but may not hurt to also transfer this to the main app so that end users know how long to wait before it the feature comes back online?): curl -s "https://api.github.com/rate_limit" | python3 -c "import sys, json, time; r = json.load(sys.stdin)['resources']['core']; mins = max(0, round((r['reset'] - time.time()) / 60, 1)); print(f'Remaining: {r[\"remaining\"]} | Wait: {mins} minutes')"

Linked Pull Requests (0)

No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.

GitHub Comments (1)

@dblizinskiCONTRIBUTOR
View comment →

Thanks @bahartl, this is a really useful catch. Not knowing how long to wait when the app gets rate-limited is frustrating, and the Windows and Mac one-liners make it easy to reproduce and check.

A few thoughts on how we could build it in:

  • Read the reset time from responses we already get. Every GitHub API response includes X-RateLimit-Remaining and X-RateLimit-Reset headers. When we hit a 403/429, the app can read X-RateLimit-Reset and show something like "GitHub request limit reached, try again in ~X minutes" in the terminal, and ideally in a GUI popup too. That avoids a separate shell call. (If we do want to check ahead of time, GET /rate_limit works and doesn't count against the quota.)
  • Look at the root cause. Unauthenticated requests are capped at 60/hour, while authenticated ones get 5,000/hour. If we can safely use a token for these calls, most lockouts might go away entirely, and the countdown becomes a fallback.
  • Bring it to the main app. Agreed that end users would benefit too. I'll open a linked issue in the main app repo so it's tracked there as well.

I'm tagging this as enhancement / good first issue since it's nicely scoped. If anyone in the community wants to pick it up, comment here and we'll help you get started.

Peer Help Forum · OpenwaterHealth/openmotion-test-app #139

Issue Troubleshooting Threads (0)

Ask Peers for Help

No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.

PR Verification & Rewards

Sign in and link GitHub to verify your PR against this issue and earn XP + coins.

Sign In

Contribution Workflow

Track your local progress before opening a pull request on GitHub.

Repository Context

Top Repository Paths

[dir] .github
.github/dco.yml
[dir] .github/workflows
.github/workflows/release-build.yml
.gitignore
CLAUDE.md
LICENSE
README.md
[dir] assets
[dir] assets/fonts
assets/fonts/keenicons-outline.svg
assets/fonts/keenicons-outline.ttf
assets/fonts/keenicons-outline.woff
[dir] assets/images
assets/images/OpenwaterLogo.png
assets/images/favicon.ico
assets/images/favicon.png
build_and_zip.ps1
[dir] components
components/ActionButton.qml
components/ConfirmDialog.qml
components/HistogramView.qml
components/IMUWidget.qml
components/IconButton.qml

Advisory PR Assistant

Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.