{"id":22753961,"url":"https://github.com/slaclab/pycaserver","last_synced_at":"2025-10-22T10:54:34.623Z","repository":{"id":147199367,"uuid":"58754058","full_name":"slaclab/pycaserver","owner":"slaclab","description":"Python-based Channel Access Websockets Server","archived":false,"fork":false,"pushed_at":"2016-11-19T21:03:22.000Z","size":49,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T15:45:29.197Z","etag":null,"topics":["bottle","epics","python","websockets"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/slaclab.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,"zenodo":null}},"created_at":"2016-05-13T16:01:23.000Z","updated_at":"2021-07-07T15:37:20.000Z","dependencies_parsed_at":"2023-05-20T09:30:48.888Z","dependency_job_id":null,"html_url":"https://github.com/slaclab/pycaserver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slaclab/pycaserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaclab%2Fpycaserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaclab%2Fpycaserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaclab%2Fpycaserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaclab%2Fpycaserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slaclab","download_url":"https://codeload.github.com/slaclab/pycaserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaclab%2Fpycaserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280424212,"owners_count":26328462,"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-10-22T02:00:06.515Z","response_time":63,"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":["bottle","epics","python","websockets"],"created_at":"2024-12-11T06:14:47.353Z","updated_at":"2025-10-22T10:54:34.617Z","avatar_url":"https://github.com/slaclab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pycaserver\nA Python-based Channel Access WebSockets Server\n\nThis is a tiny web server for getting channel access data via a WebSockets connection.  Useful if you want to make a website that displays a real-time updating value of some PVs.  Built with Bottle, PyEpics, and Geventwebsockets.\n\n### How to use\nFirst, establish a WebSockets connection to the server's '/monitor' URL.\n```javascript\nvar ws = new WebSocket(\"ws://localhost:8888/monitor\");\n```\n\nSend messages to the server to connect to PVs:\n\n```javascript\nsocket.send({\"action\":\"connect\", \"pv\":\"myPVName\"});\n```\n\nSit back and wait for messages to roll in.  The messages are JSON dictionaries with this format:\n```javascript\n{ \"msg_type\": \"monitor\", \"pvname\": pvname, \"value\": value, \"count\": count, \"timestamp\": timestamp }\n```\n\nIf you want to stop listening to a PV, send the server a disconnect message:\n```javascript\nsocket.send({\"action\":\"disconnect\", \"pv\":\"myPVName\"});\n```\n\nThat is pretty much it.  For more details, see the [wiki](https://github.com/slaclab/pycaserver/wiki).  Have fun!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaclab%2Fpycaserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslaclab%2Fpycaserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaclab%2Fpycaserver/lists"}