Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivia app to demonstrate HTTP requests #166

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

ldab
Copy link
Collaborator

@ldab ldab commented Nov 29, 2023

Easy trivia app getting questions from https://opentdb.com/api_config.php

  1. It demonstrates the HTTP request thru Gadgetbridge
  2. Adds a cool app

Todo:

  • It only works once for some reasonit is just slow, may take more questions in one request
  • Merge the ble changes to BLE enhancements #124
  • Prompt when iOS user tries it
  • Handle errors
  • Handle html format for example '

2023-11-29_12-14

@jakkra
Copy link
Owner

jakkra commented Nov 29, 2023

Haha this is so cool! Awesome work!
I think parsing HTTP responses is a reason to turn on Zephyr JSON module to be able to build some more advanced stuff using the HTTP api in GB: https://docs.zephyrproject.org/apidoc/latest/group__json.html

Not needed now, but it's something to add together with a generic HTTP API that maps to GB

@jakkra jakkra merged commit ca02bb1 into jakkra:main Nov 29, 2023
8 checks passed
@ldab ldab deleted the trivial-http branch November 29, 2023 14:57
@Kampi
Copy link
Collaborator

Kampi commented Nov 29, 2023

Haha this is so cool! Awesome work! I think parsing HTTP responses is a reason to turn on Zephyr JSON module to be able to build some more advanced stuff using the HTTP api in GB: https://docs.zephyrproject.org/apidoc/latest/group__json.html

Not needed now, but it's something to add together with a generic HTTP API that maps to GB

Then we also could replace the self-made JSON parsing for Gadgetbridge :)

@jakkra
Copy link
Owner

jakkra commented Nov 29, 2023

we also could replace the self-made JSON pa

Yep if we want to since it will be there anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants