{"id":14988542,"url":"https://github.com/sanwebinfo/alexa-score","last_synced_at":"2026-01-04T09:02:46.453Z","repository":{"id":223636781,"uuid":"761081065","full_name":"sanwebinfo/alexa-score","owner":"sanwebinfo","description":"Get live Cricket Score Update by reloading the web page using Websocket and Alexa.","archived":false,"fork":false,"pushed_at":"2024-05-22T21:13:03.000Z","size":141,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-22T22:27:54.307Z","etag":null,"topics":["alexa","alexa-trigger","autovoice","bulma","cricket","cricket-api","cricket-score","css","express","expressserver","html","javascript","nodejs","tasker","trigger","websocket","websocket-server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanwebinfo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-21T07:49:17.000Z","updated_at":"2024-05-30T03:43:40.913Z","dependencies_parsed_at":"2024-03-01T07:27:50.349Z","dependency_job_id":"0d889f90-2c8f-4363-a62f-ba3bf997c2db","html_url":"https://github.com/sanwebinfo/alexa-score","commit_stats":null,"previous_names":["sanwebinfo/alexa-score"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Falexa-score","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Falexa-score/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Falexa-score/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanwebinfo%2Falexa-score/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanwebinfo","download_url":"https://codeload.github.com/sanwebinfo/alexa-score/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244561142,"owners_count":20472361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alexa","alexa-trigger","autovoice","bulma","cricket","cricket-api","cricket-score","css","express","expressserver","html","javascript","nodejs","tasker","trigger","websocket","websocket-server"],"created_at":"2024-09-24T14:16:54.309Z","updated_at":"2026-01-04T09:02:41.416Z","avatar_url":"https://github.com/sanwebinfo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alexa Cricket Score\n\n![connect-test](https://github.com/sanwebinfo/alexa-score/workflows/connect-test/badge.svg)  \n\nA Simple Static Site With WebSocket for Getting Real-time Live Cricket Score Updates.  \n\n\u003e Get live Cricket Score Update by reloading the web page using Websocket and Alexa.  \n\n## Usage and Concept\n\n- Cricket API: \u003chttps://github.com/sanwebinfo/cricket-api\u003e\n- Express JS for API and WebSocket Connection\n- EJS Template Engine\n- Use WebSocket to trigger the static page Refresh in real time\n- Using Tasker and Alexa to trigger a WebSocket server to send a message to the client  \n- Token-based API - JWT token and Custom Header Key-based Authorization\n- Create JWT Token for Authorize to Pass messages to the Clients **(it will be expired in 5mins - Due to security reasons using short-lived JWT tokens)**\n\n```sh\ncurl --request GET   --url http://localhost:6007/api/token   --header 'x-api-key: YOUR_TOKEN_HERE\n```\n\n```sh\n\n## Use this at API Clients (it only accept the Request if the message contain 'reload')\n\ncurl --request POST   --url http://localhost:6007/api/message   --header 'authorization: YOUR_JWT_TOKEN_HERE'   --header 'content-type: application/json'   --data '{\"message\": \"reload\"}'\n\n```\n\n- Alexa Voice command API\n\n```sh\n\n## It supports and accepts any voice commmand message with 500 Text limit\n## If you passing the voice command 'reload' then it will reload the score data\n## Rest voice commanding words will display as alert on the client page\n\ncurl -X POST -H \"Content-Type: application/json\" -H 'authorization: YOUR_JWT_TOKEN_HERE' -d '{\"alexamessage\": \"HI from Alexa\"}' http://localhost:6007/api/alexa\n\n```\n\n- Cricket API URL\n\n```sh\nhttp://localhost:6007/api/score?id=123456\n```\n\n- Example `env`\n\n```env\nAPI=https://cricket.example.com/score?id=\nXAPIKEY=YOUR_TOKEN_HERE\nJWTKEY=your_secret_key\nUSERID=123456\nUSERNAME=exampleuser\n```\n\n- Home page: `/view/home.hbs` for displaying the Live Cricket Score\n- Bash script to send message to the clients\n\n```sh\n\n#.env example\nAPI_URL=https://example.com/api\nAPI_KEY=YOUR_AUTH_KEY\n\n\nchmod a+x send.sh\n./send.sh\n\n```\n\nhttps://github.com/sanwebinfo/alexa-score/assets/10300271/edcc972e-ba89-49d2-8f12-f149f7edffc9\n\n## Much Needed Apps\n\n- Alexa Echo device or Alexa on Mobile App\n- Tasker for send HTTP request and access alexa voice command\n- Autovoice to listen the voice command from alexa `alexa ask autovoice to write reload`\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanwebinfo%2Falexa-score","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanwebinfo%2Falexa-score","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanwebinfo%2Falexa-score/lists"}