{"id":17694613,"url":"https://github.com/bailuk/halocode-tools","last_synced_at":"2025-03-30T23:26:28.583Z","repository":{"id":128791242,"uuid":"474729674","full_name":"bailuk/halocode-tools","owner":"bailuk","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-30T08:01:21.000Z","size":1965,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T05:12:51.096Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bailuk.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":"2022-03-27T18:50:49.000Z","updated_at":"2022-06-07T21:05:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9ccffa0-7669-468e-85f5-1f58ebb167f7","html_url":"https://github.com/bailuk/halocode-tools","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/bailuk%2Fhalocode-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fhalocode-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fhalocode-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fhalocode-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bailuk","download_url":"https://codeload.github.com/bailuk/halocode-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246394365,"owners_count":20770112,"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-10-24T13:49:16.430Z","updated_at":"2025-03-30T23:26:28.559Z","avatar_url":"https://github.com/bailuk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# halocode-tools\n\nUpload and log script for the [makeblock halocode MFF-K00-01](https://en.wikipedia.org/wiki/Makeblock#1.6_Makeblock_Halocode)   \nSource code has been extracted from this [project](https://github.com/FFtust/mu)\n\n\n## Upload python scripts and show console log\n\n```bash\n# on linux\n./upload.py samples/test.py \n\n# on windows\npython upload.py samples\\test.py \n\n```\n\n\n## Code snippets for VS Code\n\nCopy `.vscode\\python.code-snippets` to directory `.vscode/` of your project. Generate code snippets with [api/transform.awk](api/transform.awk).\n\n\n## Run with python embedded\n\n- Download Python embedded: https://www.python.org/downloads/release/python-3104/\n- Unzip to `halocode-tools/python`\n- Download Serial module: \n- Install Serial module to halocode-tools/python/Lib/site-packages: `python\\python.exe setup.py install`\n- Add `Lib`  and `Lib/site-packages` to `halocode-tools/python/pythonXX._pth`\n- Run `python\\python.exe upload.py samples\\test.py`\n\n\n## Message Broadcasting\n\nhalocode uses  [MQTT (Message Queuing Telemetry Transport)](https://mqtt.org/) to broadcast messages:  \nBroker -\u003e Server  \nClient -\u003e Send and receive  \nSubscribe -\u003e Topic  \n\n```bash\n# install server\napt install mosquitto\n\n# edit /etc/mosquitto/mosquitto.conf:\n---------------------\nallow_anonymous true\nlistener 1883 0.0.0.0\n---------------------\n\n# start server\nsystemctl status mosquitto \nsystemctl start mosquitto \n\n# install clients\napt install mosquitto-clients\n\n# subscribe to test\nmosquitto_sub -t \"test\"\n\n# publish message\nmosquitto_pub -t \"test\" -m \"test\n```\n\nsamble script: [samples/wlan.py](samples/wlan.py)\n\n\n## Links\n\n- [Python Mu Editor for halocode](http://docs.makeblock.com/halocode/en/tutorials/use-python-mu.html)\n- [Python Mu Editor original](https://codewith.mu/)\n- [halocode API reference](http://docs.makeblock.com/halocode/en/block-reference/block-reference.html)\n\n\n## Picture\n\n![halocode](halocode.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbailuk%2Fhalocode-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbailuk%2Fhalocode-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbailuk%2Fhalocode-tools/lists"}