{"id":18082054,"url":"https://github.com/rubenfer/reeswift","last_synced_at":"2025-04-05T22:29:32.882Z","repository":{"id":230063735,"uuid":"378160614","full_name":"Rubenfer/REESwift","owner":"Rubenfer","description":"Librería de Swift para obtener los precios de la electricidad usando la API de Red Eléctrica de España.","archived":false,"fork":false,"pushed_at":"2021-12-24T08:50:24.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T04:17:58.525Z","etag":null,"topics":["electricidad","esios","luz","precio","ree","swift"],"latest_commit_sha":null,"homepage":"https://precioluz.app","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rubenfer.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":"2021-06-18T13:33:58.000Z","updated_at":"2022-09-30T06:31:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"24ce51ef-7b0c-4ba7-b023-fe680c28d538","html_url":"https://github.com/Rubenfer/REESwift","commit_stats":null,"previous_names":["rubenfer/reeswift"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubenfer%2FREESwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubenfer%2FREESwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubenfer%2FREESwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rubenfer%2FREESwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rubenfer","download_url":"https://codeload.github.com/Rubenfer/REESwift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411241,"owners_count":20934650,"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":["electricidad","esios","luz","precio","ree","swift"],"created_at":"2024-10-31T13:18:06.507Z","updated_at":"2025-04-05T22:29:32.861Z","avatar_url":"https://github.com/Rubenfer.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# REESwift\n\nREESwift permite integrar de forma sencilla la API de Red Electrica Española (REE) para obtener los precios de la electricidad en tarifas del mercado regulado PVPC y mercado spot.\n\nSi quieres consultar los precios directamente en tu dispositivo, sin necesidad de crear tu propia aplicación, puedes hacerlo con [Precio Luz España](https://apps.apple.com/es/app/precio-luz-españa/id1487330692), disponible para iPhone, iPad, Apple Watch y Mac de forma gratuita. \n\n1. [Versiones](#versiones)\n2. [Integración](#integración)\n3. [Uso](#uso)\n    - [Obtener precios consumidor](#obtener-precios-consumidor)\n    - [Obtener precios mercado spot](#obtener-precios-mercado-spot)\n4. [Licencia de uso y contribución con el proyecto](#licencia-de-uso-y-contribución-con-el-proyecto)\n\n## Versiones\n\nSi estás utilizando Xcode 12 o anterior debes utilizar la versión 0.1.x.\nSi ya utilizas Xcode 13+ puedes utilizar la versión 1.x.x.\n\n## Integración\n\nPuedes añadir REESwift a tu proyecto a través de Swift Package Manager: https://github.com/Rubenfer/REESwift\n\n## Uso\n\n```swift\nimport REESwift\n```\n\n### Obtener precios consumidor\n\n```swift\nfunc consumerPrices(startDate: Date, endDate: Date, geo: GEO, completion: @escaping (Result\u003c[Value], Error\u003e) -\u003e Void)\nfunc consumerPrices(date: Date, geo: GEO, completion: @escaping (Result\u003c[Value], Error\u003e) -\u003e Void)\nfunc consumerPrices(startDate: Date, endDate: Date, geo: GEO) -\u003e AnyPublisher\u003c[Value], Error\u003e\nfunc consumerPrices(date: Date, geo: GEO) -\u003e AnyPublisher\u003c[Value], Error\u003e\nfunc consumerPrices(startDate: Date, endDate: Date, geo: GEO) async throws -\u003e [Value]\nfunc consumerPrices(date: Date, geo: GEO) async throws -\u003e [Value]\n```\n\n### Obtener precios mercado spot\n\n```swift\nfunc spotPrices(startDate: Date, endDate: Date, geo: GEO, completion: @escaping (Result\u003c[Value], Error\u003e) -\u003e Void)\nfunc spotPrices(date: Date, geo: GEO, completion: @escaping (Result\u003c[Value], Error\u003e) -\u003e Void)\nfunc spotPrices(startDate: Date, endDate: Date, geo: GEO) -\u003e AnyPublisher\u003c[Value], Error\u003e\nfunc spotPrices(date: Date, geo: GEO) -\u003e AnyPublisher\u003c[Value], Error\u003e\nfunc spotPrices(startDate: Date, endDate: Date) async throws -\u003e [Value]\nfunc spotPrices(date: Date) async throws -\u003e [Value]\n```\n\n## Licencia de uso y contribución con el proyecto\n\nEste proyecto se encuentra bajo la licencia GNU GPLv3. Antes de utilizarlo, [consulta las limitaciones de dicha licencia](https://github.com/Rubenfer/REESwift/blob/main/LICENSE).\n\nSi deseas contribuir con el proyecto todo Pull request es bienvenido. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenfer%2Freeswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenfer%2Freeswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenfer%2Freeswift/lists"}