{"id":18279996,"url":"https://github.com/lordmike/mbw.client.blueriiotapi","last_synced_at":"2025-04-05T05:32:10.494Z","repository":{"id":42208321,"uuid":"259442525","full_name":"LordMike/MBW.Client.BlueRiiotApi","owner":"LordMike","description":"Client implementation for parts of the Blue Riiot pool sensor API","archived":false,"fork":false,"pushed_at":"2023-09-19T21:14:50.000Z","size":80,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T19:47:41.528Z","etag":null,"topics":["blueriiot","pool","reverse-engineered"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LordMike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-04-27T20:20:39.000Z","updated_at":"2023-09-13T19:33:19.000Z","dependencies_parsed_at":"2024-11-05T12:32:07.456Z","dependency_job_id":null,"html_url":"https://github.com/LordMike/MBW.Client.BlueRiiotApi","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Client.BlueRiiotApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Client.BlueRiiotApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Client.BlueRiiotApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Client.BlueRiiotApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LordMike","download_url":"https://codeload.github.com/LordMike/MBW.Client.BlueRiiotApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294443,"owners_count":20915335,"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":["blueriiot","pool","reverse-engineered"],"created_at":"2024-11-05T12:31:59.754Z","updated_at":"2025-04-05T05:32:08.444Z","avatar_url":"https://github.com/LordMike.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MBW.Client.BlueRiiotAPI\n\n[![Generic Build](https://github.com/LordMike/MBW.Client.BlueRiiotApi/actions/workflows/dotnet.yml/badge.svg)](https://github.com/LordMike/MBW.Client.BlueRiiotApi/actions/workflows/dotnet.yml) [![Nuget](https://img.shields.io/nuget/v/MBW.Client.BlueRiiotAPI)](https://nuget.org/packages/MBW.Client.BlueRiiotAPI)\n\n\nReverse engineered client library for Blue Riiots pool API.\n\n## Basic usage\n\n```csharp\nvar bc = new BlueClientBuilder()\n    .UseUsernamePassword(\"user\", \"pass\")\n    .Build();\n\nvar pools = await bc.GetSwimmingPools();\n```\n\n## Using an HTTP Client Factory\n\n```csharp\nvar bc = new BlueClientBuilder()\n    .UseHttpClientFactory(myFactory)\n    ...\n```\n\n## Using an HTTP proxy\n\n```csharp\nvar bc = new BlueClientBuilder()\n    // Add a special HttpClient to control the proxy\n    .UseHttpClient(new HttpClient(new SocketsHttpHandler\n    {\n        // Set a proxy if available. Suggestion: Fiddler.\n        Proxy = new WebProxy(new Uri(\"http://127.0.0.1:8888\"))\n    }))\n    ...\n```\n\n## Using Microsoft DI\n\n\n```csharp\nservices\n    // Note: the AddHttpClient() call is not necessary, but it is possibly to again configure the client here\n    .AddHttpClient(\"blueriiot\")\n    .AddBlueRiiot((provider, builder) =\u003e\n    {\n        IHttpClientFactory httpFactory = provider.GetRequiredService\u003cIHttpClientFactory\u003e();\n\n        // Set required options on the BlueClientBuilder\n        builder\n            .UseUsernamePassword(config.Username, config.Password)\n            // Only necessary if a special HttpClientFactory name is needed\n            .UseHttpClientFactory(httpFactory, \"blueriiot\"); \n    })\n\n// Usage\nvar bc = serviceProvider.GetService\u003cBlueClient\u003e();\nvar pools = await bc.GetSwimmingPools();\n```\n\n# Note on logging\n\nThe library uses Microsofts logging extensions. It is possible to log all requests (and responses), by enabling Trace logging for `MBW.Client.BlueRiiotApi.BlueClient`.\n\n```csharp\nservices.AddLogging(builder =\u003e\n{\n    builder.AddFilter(\"MBW.Client.BlueRiiotApi.BlueClient\", LogLevel.Trace);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordmike%2Fmbw.client.blueriiotapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flordmike%2Fmbw.client.blueriiotapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordmike%2Fmbw.client.blueriiotapi/lists"}