{"id":15971170,"url":"https://github.com/glurp/mivisu-sim","last_synced_at":"2025-04-04T15:43:19.907Z","repository":{"id":141875064,"uuid":"166824365","full_name":"glurp/mivisu-sim","owner":"glurp","description":"SSIL V2 simulator","archived":false,"fork":false,"pushed_at":"2019-01-24T22:47:07.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T01:37:56.995Z","etag":null,"topics":["api-server","bindata","dsl","ruby","simulation"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/glurp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-01-21T14:05:59.000Z","updated_at":"2019-01-24T22:47:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"a07fec98-d5ad-463c-8057-57a795227b81","html_url":"https://github.com/glurp/mivisu-sim","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/glurp%2Fmivisu-sim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glurp%2Fmivisu-sim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glurp%2Fmivisu-sim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glurp%2Fmivisu-sim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glurp","download_url":"https://codeload.github.com/glurp/mivisu-sim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208018,"owners_count":20901568,"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":["api-server","bindata","dsl","ruby","simulation"],"created_at":"2024-10-07T20:08:36.585Z","updated_at":"2025-04-04T15:43:19.887Z","avatar_url":"https://github.com/glurp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"2w\r\n==\r\nExemple of ruby connector TCP/IP, which transport some binary data.\r\nAll coded with  (internal) DSL, Ruby based.\r\n\r\nTODO: include a GUI, with gui DSL of cource :)\r\n\r\nPresentation\r\n============\r\n\r\nSimule le comportement d'un connecteur SSIL V2 de mivisu.\r\naccessoirement, fournit un client SSIL 'generique'.\r\n\r\nFonctions :\r\n* emission mesures, toutes les 20 secondes \r\n* reception login\r\n* TODO emission etat eqp ( ETAT_SYS...)\r\n\r\nUsage:\r\n```\r\n\u003e ruby rad.rb 2200   config.rb process.rb  # lance un serveur SSIL sur localhost:2200\r\n\u003e ruby client.rb localhost 2200 # lance un client SSIL generique, pour tester le simulateur...\r\n```\r\nSources associées:\r\n\r\n* config.rb : represent un script qui doit creer la variable $conf, contenant la config à simuler.\r\n on trouvera en exemple miniconf.rb et config_from_saia.rb\r\n* process.rb : doit lancer un thread qui agira sur des varables globale $value... referencées dans la config\r\n  on trouve en exemple : process.rb , process_manque_mesure.rb, process_mesures.nomove.rb\r\n\r\n\r\n\r\nPrerequis\r\n==========\r\n\r\ninstaller ruby 2.3 ou superieur.\r\n\r\ninstaller les dependances :\r\n\u003e gem install bindata minitcp\r\n\r\n**Bindata** : definie un DSL permettant de creer des classes Codeur/Decodeur de trames binaire : voir\r\n https://github.com/dmendel/bindata/wiki\r\n\r\n**Minitcp**:  DSL pour faire du TCP : voir  https://github.com/glurp/minitcp\r\n\r\nFichiers\r\n========\r\n\r\n* rad.rb    :\t serveur SSIL, emission mesure RAD ( QTV ) pour un ensemble de station/capteurs\r\n* model.rb  :  class codec des trames SSIL mivisu, basé sur bindata, auto-test integré\r\n* config-from-saia.rb :  extraction d'une config RRTDB saia (scada) pour generer la config a simuler\r\n* client.rb :\t client SSIL, print tous ce qui passe (pas de login...)\r\n\r\n* config*.rb\r\n* process*.rb\r\n\r\n\r\nLicense\r\n======\r\n\r\nThe MIT License\r\nCopyright (c) 2019 Regis d'Aubarede,\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglurp%2Fmivisu-sim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglurp%2Fmivisu-sim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglurp%2Fmivisu-sim/lists"}