{"id":27633776,"url":"https://github.com/djaus2/googleiothub","last_synced_at":"2025-09-17T12:04:37.580Z","repository":{"id":42987282,"uuid":"473485710","full_name":"djaus2/GoogleIoTHub","owner":"djaus2","description":"An Azure IoT Hub D2C Console app that can be activated by TRIGGERcmd to get telemetry from an Azure IoT Hub, form a speakable string from it and then forward it to a Google Nest.","archived":false,"fork":false,"pushed_at":"2022-03-30T06:07:29.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T18:19:29.936Z","etag":null,"topics":["csharp","google","iot","iothub"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djaus2.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}},"created_at":"2022-03-24T06:38:06.000Z","updated_at":"2023-03-16T15:48:45.000Z","dependencies_parsed_at":"2022-09-06T12:10:55.647Z","dependency_job_id":null,"html_url":"https://github.com/djaus2/GoogleIoTHub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FGoogleIoTHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FGoogleIoTHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FGoogleIoTHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FGoogleIoTHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djaus2","download_url":"https://codeload.github.com/djaus2/GoogleIoTHub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250487536,"owners_count":21438612,"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":["csharp","google","iot","iothub"],"created_at":"2025-04-23T18:19:33.500Z","updated_at":"2025-09-17T12:04:32.509Z","avatar_url":"https://github.com/djaus2.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoogleIoTHub\nAn Azure IoT Hub D2C Console app that can be activated by TRIGGERcmd to get telemetry from an Azure IoT Hub, \nforming a speakable string from it and then forwarding it to a Google Nest for enunciation.\n\nThis is a work in progress:\n\n- D2C Console app **GoogleIoTHubD2C** that writes last telemetry send to Azure IoT Hub to temp file.\n  - Optional arg: true/false(default true) if true runs app for just the next received telemetry only, false viz.\n  - _2Do: Each time app runs it reads all telemetry sent in last 24hrs. Better to have a service locally that serves up last sent msg only. ... later_\n- Device Simulator Console App **simulated-device**\n  - Optional args: period(default 10sec)  deviceconnectionstring\n    - deviceconnectionstring: defaults to environment value\n    - Can Use dots to use defaults, as place holders\n- Extracted single generic telemetry send to class library **SendTelemetry2Hub**\n  - Added **simulated-device-local** console app that uses it locally.:  \n    ```await DeviceSendTelemetryToHub.SendDeviceToCloudMessageAsync(telemetryData, deviceconnectionString);```\n    - ```deviceconnectionstring``` is the Device Connection String for the IOY Hub\n    -  ```telemetryData``` is of dynamic type eg:  \n```\n    double currentTemperature = minTemperature + rand.NextDouble() * 15;\n    double currentHumidity = minHumidity + rand.NextDouble() * 20;\n\n    // Create JSON message\n    var telemetryData = new\n    {\n        temperature = currentTemperature,\n        humidity = currentHumidity\n    };\n\n```\n- Published lib to Nuget as [SendTelemetery2Hub](https://www.nuget.org/packages/SendTelemetry2Hub/)\n  - Added **simulated-device-nuget** console app that uses Nuget package.\n    - Optional args: period(default 10sec)  deviceconnectionstring\n      - deviceconnectionstring: defaults to environment value\n      - Can Use dots to use defaults, as place holders\n- **bme280-device-local** Console app that reads telemetry from a BME280 and sends that telemetry.\n  - Optional args: period(default 10sec)  deviceconnectionstring\n    - deviceconnectionstring: defaults to environment value\n    - Can Use dots to use defaults, as place holders\n  - [Typical Circuit](https://github.com/djaus2/DNETCoreGPIO/blob/master/DNETCoreGPIO/Circuits/rpi-bmp280_i2c.png)\n    - [More info from line 42 here](https://github.com/djaus2/DNETCoreGPIO/blob/master/DNETCoreGPIO/BMX280Sampler.cs)\n- **dht22-1-wire-device-local** Console app that reads telemetry from a DHT22 1-Wire and sends that telemetry\n  - Optional args: period(default 10sec)  deviceconnectionstring dht22Gpio(default 26)\n    - deviceconnectionstring: defaults to environment value\n    - Can Use dots to use defaults, as place holders \n  - [Typical circuit](https://github.com/djaus2/DNETCoreGPIO/blob/master/DNETCoreGPIO/Circuits/dht22.png) \n    - Nb: In that diagram to pinouts are Pwr-Signal-nc-Gnd  Pwr = 5V\n    - On my (red) device they are Gnd-Pwr-Signal  I use Pwr = 3.3V\n- **bme280**  is now option 31 for [djaus2/DNETCoreGPIO](https://github.com/djaus2/DNETCoreGPIO)\n  - Parameters there are: 31 . \\\u003cPeriod\\\u003e \\\u003cDeviceConnectionString\\\u003e\n  - The second parameter is a dot as a place holder as bme280 doesn't use GPIO. It uses I2C.\n- [Integrations with Triggercmd](https://github.com/djaus2/TRIGGERcmdRPi)\n  - Coming","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjaus2%2Fgoogleiothub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjaus2%2Fgoogleiothub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjaus2%2Fgoogleiothub/lists"}