{"id":21928899,"url":"https://github.com/linuxkidd/pyskymasterr2","last_synced_at":"2025-03-22T12:25:43.686Z","repository":{"id":132989602,"uuid":"252061610","full_name":"linuxkidd/pySkyMasterR2","owner":"linuxkidd","description":"Python software for processing Astro-Smart's SkyMaster Pro R2 USB Serial data","archived":false,"fork":false,"pushed_at":"2020-08-03T18:08:45.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T11:50:04.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/linuxkidd.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":"2020-04-01T03:25:26.000Z","updated_at":"2020-08-03T18:08:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"3da55b97-24d8-4fd6-aaed-756427eda44e","html_url":"https://github.com/linuxkidd/pySkyMasterR2","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/linuxkidd%2FpySkyMasterR2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxkidd%2FpySkyMasterR2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxkidd%2FpySkyMasterR2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxkidd%2FpySkyMasterR2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linuxkidd","download_url":"https://codeload.github.com/linuxkidd/pySkyMasterR2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244955572,"owners_count":20537987,"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":[],"created_at":"2024-11-28T22:28:30.216Z","updated_at":"2025-03-22T12:25:43.660Z","avatar_url":"https://github.com/linuxkidd.png","language":"Python","readme":"# SkyMaster R2 Python Processor\nPython software for processing [Astro-Smart's SkyMaster R2](http://astro-smart.com/index.php?p=1_26_Computerized-Sky-Master-Pro-System-SMP-R2-PRO) USB Serial data\n\n\nTested with the no-display version of the SMP-R2-Pro, but should work with SMP-R2-Pro OLED and LCD variants as well.\n\nCan display data direct to console, but intended for normal use bridging data to an MQTT broker.\n\n```\n$ ./smpro.py  --help\nusage: smpro.py [-h] [-p PORT] [-d {0,1,2}] [-m {0,1,2}] [-b BROKER]\n                [-s {0,1}]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -p PORT, --port PORT  commuications port descriptor, e.g /dev/ttyUSB0 or\n                        COM1\n  -d {0,1,2}, --debug {0,1,2}\n                        debug data\n  -m {0,1,2}, --mqtt {0,1,2}\n                        Send to MQTT, 1=Publish, 2=Retain\n  -b BROKER, --broker BROKER\n                        Hostname or IP of MQTT Broker to which to publish.\n  -s {0,1}, --stdout {0,1}\n                        Print on StdOut\n```\n\n### Automatic Install\nThis should work for most deb or rpm based distros.\n\n1: Ensure you have sudo access ( or run the following from the root account )\n```\ngit clone https://github.com/linuxkidd/pySkyMasterR2.git\ncd pySkyMasterR2\n./install.sh\n```\n2: Investigate / correct any reported errors, or plug in the SMPro.\n3: After SMPro is plugged in, the service should start automatically.\n4: Check the service is running with:\n```\nsystemctl status smpro@$PORT\n```\nWhere `$PORT` is likely ttyUSB0 -- you can check dmesg output to confirm which port was assigned.\n\n\n### Manual Install\n1. Clone the repo:\n```\ngit clone https://github.com/linuxkidd/pySkyMasterR2.git\n```\n2. Copy the files to their proper location:\n```\ncd pySkyMasterR2\nsudo cp -a usr etc /\n```\n3. Reload udev rules:\n```\nsudo udvadm control -R\n```\n4. Install Mosquitto ( or other MQTT broker of your choice ):\n    - For debian based distros ( including Ubuntu ):\n      `apt update \u0026\u0026 apt -y install mosquitto`\n    - For RPM based distros ( including RHEL, CentOS, Fedora ):\n      `dnf -y install mosquitto`\n    - For older RPM based distros:\n      `yum -y install mosquitto`\n5. Plug in the SMPro, the service should start automatically.\n6. Check the service is running with:\n```\nsystemctl status smpro@$PORT\n```\nWhere `$PORT` is likely ttyUSB0 -- you can check dmesg output to confirm which port was assigned.\n\n### NOTE:\n- I've observed that the SMPro units sometimes stop responding.\n- A restart of the service usually brings it back to life.\n```\nsystemctl restart smpro@$PORT\n```\n- I'll likely work on an update to catch this condition and respond automatically in the near term.\n\n### Bugs?  Questions?  Comments?\n- Please [file an issue](https://github.com/linuxkidd/pySkyMasterR2/issues).\n\n### Want to contribute code?\n- Please [submit a pull request](https://github.com/linuxkidd/pySkyMasterR2/pulls).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxkidd%2Fpyskymasterr2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxkidd%2Fpyskymasterr2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxkidd%2Fpyskymasterr2/lists"}