{"id":17071816,"url":"https://github.com/fdbeirao/lolcmonitor","last_synced_at":"2026-05-08T04:17:07.922Z","repository":{"id":94365476,"uuid":"99928113","full_name":"fdbeirao/LolcMonitor","owner":"fdbeirao","description":"A simple PoC using Elixir and ELM","archived":false,"fork":false,"pushed_at":"2017-08-10T13:52:06.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T11:29:36.650Z","etag":null,"topics":["elixir-lang","elm-lang","hackaton","realtime"],"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/fdbeirao.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":"2017-08-10T13:48:20.000Z","updated_at":"2017-08-10T13:54:34.000Z","dependencies_parsed_at":"2023-03-23T04:35:00.504Z","dependency_job_id":null,"html_url":"https://github.com/fdbeirao/LolcMonitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fdbeirao/LolcMonitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdbeirao%2FLolcMonitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdbeirao%2FLolcMonitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdbeirao%2FLolcMonitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdbeirao%2FLolcMonitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdbeirao","download_url":"https://codeload.github.com/fdbeirao/LolcMonitor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdbeirao%2FLolcMonitor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271252993,"owners_count":24726918,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"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":["elixir-lang","elm-lang","hackaton","realtime"],"created_at":"2024-10-14T11:37:39.340Z","updated_at":"2026-05-08T04:17:02.879Z","avatar_url":"https://github.com/fdbeirao.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LolcMonitor\n\nThis project was used for the Innovation Experience 2017 event on [eVision](http://www.evision-software.com).\n\n## Prerequisites\n\n**Elixir:** http://elixir-lang.org v. 1.4.2, with Erlang OTP 19.0 (64-bit)\n\n**ELM Platform:** http://elm-lang.org v. 0.18\n\n**node.js** https://nodejs.org v. 7.10.0 64bit\n\n**VSCode:** https://code.visualstudio.com\n  * Extensions:\n    * elm\n    * vscode-elixir\n\n**elm-format** `npm install --global elm-format`\n\n**elm-github-install:**\n```\nnpm install --global elm-github-install\n```\n\n### First execution (on a Windows machine):\n\n```\nmix deps.get\n```\n(Answer **y** on installing **hex**)\n\n\n```\nmix test\n```\n(Answer **y** on installing **rebar**)\n\n\n```\npushd apps\\lolc_monitor_web \u0026\u0026 npm install \u0026\u0026 pushd web\\elm \u0026\u0026 elm-github-install \u0026\u0026 rmdir /Q /S elm-stuff\\packages\\saschatimme\\elm-phoenix\\0.2.1\\example \u0026\u0026 popd \u0026\u0026 popd\n\nmix phoenix.server\n```\n(Allow `erlang` through the firewall)\n\n\n```\nstart http://localhost:4000\nstart http://localhost:4000/v\n```\n\n## Running the tests\n\nTo run all the tests **once**\n```\nmix test\n```\n\nTo run all the tests in **live/watch mode**\n```\nmix test.watch\n```\n\n## Starting the server\n\n```\niex -S mix phoenix.server\n```\n\n## Sending a websocket message from the backend to the browser\n\n```\niex\u003e LolcMonitorWeb.Endpoint.broadcast(\"dashboard:*\", \"valve_updated\", %{ \"some\": \"content\" })\n```\n\n## Creating a new valve\n\n```\niex\u003e LolcMonitorBackend.add_valve(\"VLV-1005\")\n```\n\n## Setting the status of a valve (after adding it)\n\n```\niex\u003e LolcMonitorBackend.set_valve_status(\"VLV-1010\", :normal, :open)\niex\u003e LolcMonitorBackend.set_valve_status(\"VLV-1010\", :normal, :closed)\niex\u003e LolcMonitorBackend.set_valve_status(\"VLV-1010\", :out_of_normal, :open)\niex\u003e LolcMonitorBackend.set_valve_status(\"VLV-1010\", :out_of_normal, :closed)\niex\u003e LolcMonitorBackend.set_valve_status(\"VLV-1010\", :anything, :anything)\n```\n\n## Adding dummy valves\n\n```\niex\u003e LolcMonitorBackend.add_dummy_valves(100)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdbeirao%2Flolcmonitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdbeirao%2Flolcmonitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdbeirao%2Flolcmonitor/lists"}