{"id":51031019,"url":"https://github.com/dreamfactorysoftware/df-iot","last_synced_at":"2026-06-22T00:30:55.066Z","repository":{"id":142731742,"uuid":"57987470","full_name":"dreamfactorysoftware/df-iot","owner":"dreamfactorysoftware","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-06T22:36:32.000Z","size":62,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-05T00:35:02.171Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dreamfactorysoftware.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}},"created_at":"2016-05-03T17:21:24.000Z","updated_at":"2019-07-13T06:39:47.000Z","dependencies_parsed_at":"2023-12-06T23:28:59.686Z","dependency_job_id":"47f29046-b4ac-412b-b4c9-9a46b5dfdfe8","html_url":"https://github.com/dreamfactorysoftware/df-iot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dreamfactorysoftware/df-iot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamfactorysoftware%2Fdf-iot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamfactorysoftware%2Fdf-iot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamfactorysoftware%2Fdf-iot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamfactorysoftware%2Fdf-iot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreamfactorysoftware","download_url":"https://codeload.github.com/dreamfactorysoftware/df-iot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamfactorysoftware%2Fdf-iot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34630753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-06-22T00:30:54.950Z","updated_at":"2026-06-22T00:30:55.056Z","avatar_url":"https://github.com/dreamfactorysoftware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# df-iot\n\nRequirements:\n\n* an instance of Redis running on localhost\n\nTo setup:\n\n```\ngit clone git@github.com:dreamfactorysoftware/df-iot.git\ncd df-iot\nnpm install\nnpm install mqtt -g\n```\n\nThe sessionToken inside `config.json` is created with:\n\n```\ncurl -i -k -3 -X POST \"http://localhost:8080/api/v2/system/admin/session\" -d '{ \"email\" : \"user@example.com\", \"password\" : \"pass123\", \"remember_me\": true }' -H \"Content-Type: application/json\"\n```\n\nTo launch:\n\n```\nnode index.js --config config.json\n```\n\nTo test, one one shell:\n\n```\nmqtt sub -u Fan1 -P Fan1 -v -t '#'\n```\n\nOn another shell:\n\n```\nmqtt pub -u TempSensor1 -P TempSensor1 -v -t 'hello' -m '{ \"hello\": \"world\" }'\n```\n\nYou can also use an HTTP endpoint to publish:\n\n```\ncurl -v -X POST -H 'content-type: application/json' -H 'X-DF-DEVICEID: TempSensor1' -H 'X-DF-DEVICETOKEN: TempSensor1' -d '{ \"some\": \"data\" }'  http://localhost:3000/p/hello\n```\n\nYou can also set the `X-DF-RETAIN` header to `true` to set the message\nas retained. The `X-DF-QOS` value can be used to set the MQTT QoS level\n(0 or 1 are supported).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamfactorysoftware%2Fdf-iot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreamfactorysoftware%2Fdf-iot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamfactorysoftware%2Fdf-iot/lists"}