{"id":20696882,"url":"https://github.com/araobp/device-simulator","last_synced_at":"2026-04-07T08:01:52.966Z","repository":{"id":145719153,"uuid":"122329078","full_name":"araobp/device-simulator","owner":"araobp","description":"HTML5/CSS3/AngularJS-based device simulator","archived":false,"fork":false,"pushed_at":"2018-03-03T21:48:43.000Z","size":6423,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T02:48:39.205Z","etag":null,"topics":["angularjs","html5","mosquitto","mqtt","websocket"],"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/araobp.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":"2018-02-21T11:41:32.000Z","updated_at":"2018-02-21T12:05:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"990053f9-55ea-4145-ab68-0c0dc5d712b6","html_url":"https://github.com/araobp/device-simulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/araobp/device-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/araobp%2Fdevice-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/araobp%2Fdevice-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/araobp%2Fdevice-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/araobp%2Fdevice-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/araobp","download_url":"https://codeload.github.com/araobp/device-simulator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/araobp%2Fdevice-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31504897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["angularjs","html5","mosquitto","mqtt","websocket"],"created_at":"2024-11-17T00:15:47.548Z","updated_at":"2026-04-07T08:01:52.947Z","avatar_url":"https://github.com/araobp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Device simulator based on HTML5 and AngularJS\n\n## Prerequisite\n\n- [mosquitto](https://mosquitto.org) is runnig somewhere, for example, on RasPi.\n- The mosquitto has been made(compiled) with WebSockets option enabled.\n- angular.min.js and browserMqtt.js is accesible from a simulator.\n\nRefer to the following links for mosquitto and browserMqtt.js:\n- [obtaining mosquitto with WebSockets enabled](https://xperimentia.com/2015/08/20/installing-mosquitto-mqtt-broker-on-raspberry-pi-with-websockets/)\n- [building browserMqtt.js](https://github.com/mqttjs/MQTT.js/)\n\n## Architecture\n\n```\n   HTTP GET to download the HTML5 page\n        + - - - - - - - - - - - - - -[HTTP server]\n        |\n        v\n[Device simulator]---mqtt/WebSocket---[mosquitto]---mqtt---[mqtt client as remote controller]\n     (HTML5)\n```\n\n### Hello World\n\n[sample](./index.html)\n\n### Display\n\n[display](./display.html)\n\n### Image \n\n[image](./display.html)\n\n### Video \n\n[video](./video.html)\n\n### Elevator\n\n[elavator](./elevator.html)\n\n## Working with one-liner HTTP server\n\nAssuming that mosquitto is running on RasPi and all the files above are also on RasPi, use one-liner HTTP server to use the simulator on another PC.\n\nInstallation\n```\n$ npm install -g http-server\n```\n\nUsage\n```\n$ http-server\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faraobp%2Fdevice-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faraobp%2Fdevice-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faraobp%2Fdevice-simulator/lists"}