{"id":15595472,"url":"https://github.com/cdimascio/rx-ballparks-services","last_synced_at":"2025-03-29T11:28:30.391Z","repository":{"id":83296777,"uuid":"66224869","full_name":"cdimascio/rx-ballparks-services","owner":"cdimascio","description":null,"archived":false,"fork":false,"pushed_at":"2017-01-01T01:33:49.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T10:57:20.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/cdimascio.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":"2016-08-21T23:08:22.000Z","updated_at":"2016-08-21T23:32:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffada659-62a7-4cee-a372-733c1ac0622f","html_url":"https://github.com/cdimascio/rx-ballparks-services","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"9f0fbd8c969a93a50f8f9660d7ec8d536a9791a0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Frx-ballparks-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Frx-ballparks-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Frx-ballparks-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Frx-ballparks-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdimascio","download_url":"https://codeload.github.com/cdimascio/rx-ballparks-services/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246177290,"owners_count":20735936,"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":[],"created_at":"2024-10-03T01:00:24.803Z","updated_at":"2025-03-29T11:28:30.365Z","avatar_url":"https://github.com/cdimascio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#rx-ballpark-services\n\nSimple set of services used to fetch basic information and weather data about Major Baseball Parks.\n\nWeather Data is provided by Weather Company Data for IBM Bluemix\n\n## Usage\n\n###Initialize\n\n```javascript\nimport RxBallparkServices from 'rx-ballpark-services';\n\nconst rbs = RxBallparkServices({\n  weather: {\n    apiRoot: \u003cbluemix-weather-api-url\u003e\n  }\n});\n```\n\n###Initialize (try mode)\n\n*Bluemix account 'not required'*\n\n*Weather Company Data for IBM Bluemix 'not required'*\n\n\n```javascript\nimport RxBallparkServices from 'rx-ballpark-services';\n\nconst rbs = RxBallparkServices({\n  weather: {\n    apiRoot: 'dummy',\n    useMockData: true\n  }\n});\n```\n\n## Apis\n\n### Fetch all ballparks with Weather\n\n```javascript\nrbs.BallparksWeatherService\n      .all()\n      .subscribe(r =\u003e /* do something */, /* handle error */);\n```\n\n### Fetch a ballpark by id\n\n```javascript\nrbs.BallparksService\n  .byId(req.params.id)\n  .subscribe(r =\u003e /* do something */, /* handle error */);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Frx-ballparks-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdimascio%2Frx-ballparks-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Frx-ballparks-services/lists"}