{"id":18078379,"url":"https://github.com/techgaun/xmart-things-demo","last_synced_at":"2025-04-05T20:40:39.528Z","repository":{"id":147049145,"uuid":"76067737","full_name":"techgaun/xmart-things-demo","owner":"techgaun","description":"A demo app in Phoenix for https://github.com/techgaun/xmart-things","archived":false,"fork":false,"pushed_at":"2018-07-15T20:17:22.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-11T21:51:14.899Z","etag":null,"topics":["demo","phoenix","smartapp"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/techgaun.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":"2016-12-09T20:23:59.000Z","updated_at":"2018-07-15T20:17:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d6ce621-7cc5-4bfb-a51a-a6dda6c8d3c3","html_url":"https://github.com/techgaun/xmart-things-demo","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/techgaun%2Fxmart-things-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fxmart-things-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fxmart-things-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fxmart-things-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techgaun","download_url":"https://codeload.github.com/techgaun/xmart-things-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399898,"owners_count":20932876,"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":["demo","phoenix","smartapp"],"created_at":"2024-10-31T12:13:50.451Z","updated_at":"2025-04-05T20:40:39.501Z","avatar_url":"https://github.com/techgaun.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xmart-things-demo\n\nThis is a sample application that uses [xmart_things](https://github.com/techgaun/xmart-things) to interact with Web Services SmartApp.\n\n![UI](priv/smartapp/ui.png)\n\n- [Sample Web Services SmartApp groovy script](priv/smartapp/lock.groovy)\n- [Auth Controller](web/controllers/auth_controller.ex) has callback route and stores smartthings access token and smartthings endpoint URI for SmartApp in user session.\n- [Page Controller](web/controllers/page_controller.ex) has lock related routes and handles listing lock devices and also turning the locks on and off.\n\nTo start your Phoenix app:\n\n  * Install dependencies with `mix deps.get`\n  * Install Node.js dependencies with `npm install`\n  * Start Phoenix endpoint with `mix phoenix.server`\n\nNow you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\n## Configuration\n\nYou have to configure `xmart_things` configuration by setting appropriate environment variables. Look at the [config](config/config.exs#L21-L25)\n\nOn the SmartThings side, configure a new app using [Sample Web Services SmartApp groovy script](priv/smartapp/lock.groovy).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fxmart-things-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechgaun%2Fxmart-things-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fxmart-things-demo/lists"}