{"id":20597683,"url":"https://github.com/giovannirizzi/centralina","last_synced_at":"2026-05-26T13:42:37.455Z","repository":{"id":105442723,"uuid":"243733953","full_name":"giovannirizzi/centralina","owner":"giovannirizzi","description":"Emulazione di un sistema di domotica, progetto d'esame di sistemi operativi 1","archived":false,"fork":false,"pushed_at":"2020-02-29T14:21:30.000Z","size":354,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T01:09:45.973Z","etag":null,"topics":["c","fifo-ipc","inter-process-communication","named-pipes","pipes","signals","syscalls","unitn","university-project"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/giovannirizzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-02-28T10:15:25.000Z","updated_at":"2020-02-29T14:21:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"16e15c73-c102-4a95-b1c9-27addc1ab499","html_url":"https://github.com/giovannirizzi/centralina","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giovannirizzi%2Fcentralina","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giovannirizzi%2Fcentralina/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giovannirizzi%2Fcentralina/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giovannirizzi%2Fcentralina/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giovannirizzi","download_url":"https://codeload.github.com/giovannirizzi/centralina/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242231442,"owners_count":20093636,"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":["c","fifo-ipc","inter-process-communication","named-pipes","pipes","signals","syscalls","unitn","university-project"],"created_at":"2024-11-16T08:23:28.150Z","updated_at":"2026-05-26T13:42:32.414Z","avatar_url":"https://github.com/giovannirizzi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Centralina\nEmulazione di un sistema di domotica, progetto d'esame di Sistemi Operativi 1.\n[Leggi il compito assegnato per ulteriori informazioni](LabSO--2018_2019--PROGETTI_I.pdf)\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n  1. **Clone** this repo on your host using [Git](https://git-scm.com)\n\n     ```console\n     $ git clone https://github.com/giovannirizzi/centralina.git\n     ```\n\n  2. **Change** current working **directory**\n\n     ```console\n     $ cd centralina/project\n     ```\n  3. **Compile** all the executables with [GNU Make](https://www.gnu.org/software/make/)\n\n     ```console\n     $ make build\n     ```\n\n## Run\nAll binaries are under `./bin/` folder\n\n  1. **controller**\n\n     \u003e Used to control all the devices automatically and manage the entire system.\n\n     ```console\n     $ ./bin/controller\n     ```\n\n  2. **manualcontrol**\n\n     \u003e Used to simulate manual control of devices.\n\n     ```console\n     $ ./bin/manualcontrol\n     ```\n\n## Commands\n- ### Controller\n```\nUsage: controller\navailable commands: \n    - list: show the list of available and active devices\n            usage: \u003clist\u003e\n    - add: add a new device to the system\n            usage: \u003cadd\u003e \u003cdevice\u003e\n    - del: remove the identified device from the system\n            it also remove connected devices, if its a control device\n            usage: \u003cdel\u003e \u003cid\u003e\n    - link: connect the first device to the second\n            usage: \u003clink\u003e \u003cid\u003e \u003cid\u003e\n    - switch: turn on/off the related switch of the device \n            usage: \u003cswitch\u003e \u003cid\u003e \u003cswitch name\u003e \u003con/off\u003e\n    - set: set the register of the identified device \n            usage: \u003cset\u003e \u003cid\u003e \u003cregister\u003e \u003cvalue\u003e\n    - info: show details of the identified device \n            usage: \u003cinfo\u003e \u003cid\u003e\n    - exit: close the controller\n            usage: \u003cexit\u003e\n```\n\n-  ### Manualcontrol\n```\nUsage: manualcontrol [COMMAND] [ARGS]\navailable commands: \n    - set: set value of the identified device\n            usage: \u003cset\u003e \u003cid\u003e \u003cregistry\u003e \u003cvalue\u003e\n    - whois: return pid of the identified device\n            usage: \u003cwhois\u003e \u003cid\u003e\n    - switch: turn on/off the identified device\n            usage: \u003cswitch\u003e \u003cid\u003e \u003clabel\u003e \u003con/off\u003e\n    - help: show available commands\n            usage: \u003chelp\u003e\n```\n\n## Authors\n- **Giovanni Rizzi**\n- **Omar Battan**\n- **Marco Menapace**\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n\u0026copy; Centralina 2020\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiovannirizzi%2Fcentralina","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiovannirizzi%2Fcentralina","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiovannirizzi%2Fcentralina/lists"}