{"id":13563953,"url":"https://github.com/lacion/iothub","last_synced_at":"2026-01-18T04:54:21.112Z","repository":{"id":72125685,"uuid":"76915262","full_name":"lacion/iothub","owner":"lacion","description":"IoT Hub for things","archived":false,"fork":false,"pushed_at":"2016-12-25T00:52:33.000Z","size":18,"stargazers_count":17,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-01T13:30:25.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/lacion.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}},"created_at":"2016-12-20T02:26:38.000Z","updated_at":"2023-09-06T02:21:20.000Z","dependencies_parsed_at":"2023-07-09T09:45:35.848Z","dependency_job_id":null,"html_url":"https://github.com/lacion/iothub","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/lacion%2Fiothub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lacion%2Fiothub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lacion%2Fiothub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lacion%2Fiothub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lacion","download_url":"https://codeload.github.com/lacion/iothub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223030791,"owners_count":17076504,"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-08-01T13:01:24.977Z","updated_at":"2026-01-18T04:54:21.097Z","avatar_url":"https://github.com/lacion.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# iothub\n\nIoT Hub for things\n\n\nthis project is a multiroom echo server using websockets, you could have \nany sensor sending data to a room and have any other device join that room to read\nthe data in realtime\n\n## Getting started\n\nThis project requires Go to be installed. On OS X with Homebrew you can just run `brew install go`.\n\nRunning it then should be as simple as:\n\n```console\n$ make\n$ ./bin/iothub\n```\n\nRunning with -version will get you the current version and git commit hash for the binary\n\n```console\n$ ./bin/iothub -version\n```\n\n### Configuration\n\nIoT Hub uses environment variables for configuration all of them are prefixed with IOTHUB.\n\n- IOTHUB_JSON_LOGS defaults to false, if true it will output log in json format.\n- IOTHUB_LOGLEVEL defaults to debug\n- IOTHUB_MODE this sets the gin mode, defaults to debug, other options are release and test\n- IOTHUB_LISTEN_ADDRESS defaults to \":5000\"\n- IOTHUB_SECRET defaults to \"887yff9898yfhuiew3489fy3hewfuig239f8ghew32yfh\" it is higly recomended to change this\n- IOTHUB_SECURE defaults to false (this will enable SSL and requires to have cert_file and key_files set)\n- IOTHUB_READ_TIMEOUT defaults to 10 seconds \"0m10s\"\n- IOTHUB_WRITE_TIMEOUT defaults to 10 seconds \"0m10s\"\n- IOTHUB_MAX_HEADER_BYTES defaults to 1mb 1048576 bytes\n\nwhen IOTHUB_SECRET is set to true the following is also required\n\n- IOTHUB_CERT_FILE SSL certificate file path\n- IOTHUB_KEY_FILE SSL Key file path\n\na note on logging, debug is very verbose as it outputs all the messages the server receives\n\n### SSL\n\nyou can generate your certificates using [lego](github.com/xenolf/lego)\n\n```console\n$ openssl req  -nodes -new -x509 -newkey rsa:4096 -keyout ssl/server.key -out ssl/server.crt\n```\n\n### Testing\n\n``make test``\n\n## Features\n\n- base project created with [cookiecutter-golang](https://github.com/lacion/cookiecutter-golang)\n- Uses [gin](https://github.com/gin-gonic/gin) for http/s\n- Uses [melody](github.com/olahol/melody) for websockets\n- Uses [logrus](https://github.com/Sirupsen/logrus) for logging\n- Uses [viper](https://github.com/spf13/viper) for config","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flacion%2Fiothub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flacion%2Fiothub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flacion%2Fiothub/lists"}