{"id":21377224,"url":"https://github.com/softchef/workshop","last_synced_at":"2025-03-16T09:44:36.730Z","repository":{"id":104151405,"uuid":"208946933","full_name":"SoftChef/Workshop","owner":"SoftChef","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-18T03:50:15.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T21:45:25.505Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SoftChef.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","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-09-17T03:02:13.000Z","updated_at":"2019-09-18T03:50:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8bef174-713f-4890-949f-417f399b440c","html_url":"https://github.com/SoftChef/Workshop","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/SoftChef%2FWorkshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftChef%2FWorkshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftChef%2FWorkshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftChef%2FWorkshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SoftChef","download_url":"https://codeload.github.com/SoftChef/Workshop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243852432,"owners_count":20358270,"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-22T09:19:37.741Z","updated_at":"2025-03-16T09:44:36.706Z","avatar_url":"https://github.com/SoftChef.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"HKPC Workshop\n=====\nhttps://docs.google.com/presentation/d/1HaaZnJyDwmkY9jQIGIVPQMNGPL5MAGeQJ_zyRxLQ3E4/edit#slide=id.g5fe9e099e6_0_170\n\n### Wifi連線\n\nhttps://weworkweplay.com/play/automatically-connect-a-raspberry-pi-to-a-wifi-network/\n\n### 新的映像檔環境建置完整指令紀錄\n\n使用 2018-11-02-ubuntu-16.04-mate-desktop-preview-bpi-m64-aarch64-sd-emmc.img \n\nsudo -H pip install --upgrade pip\n\nnano /usr/bin/pip\n\nsudo -H pip3 install --upgrade pip\n\nnano /usr/bin/pip3\n\n**Wrong**\n```\nfrom pip import main\nif __name__ == '__main__':\n    sys.exit(main())\n```\n\n**Changed**\n```\nfrom pip import __main__\nif __name__ == '__main__':\n    sys.exit(__main__._main())\n```\n\n```bash\ncurl https://seeed-studio.github.io/pi_repo/public.key | sudo apt-key add -\nsudo add-apt-repository ppa:mraa/mraa\necho \"deb https://seeed-studio.github.io/pi_repo/ stretch main\" | sudo tee /etc/apt/sources.list.d/seeed.list\nsudo apt update\nsudo apt-get install libupm-dev libupm-java python-upm python3-upm node-upm upm-examples python-mraa\ngit clone https://github.com/LeMaker/RPi.GPIO_BP -b bananapi\nsudo apt-get update\nsudo apt-get install python-dev\ncd RPi.GPIO_BP\nsudo python setup.py install\ngit clone https://github.com/Seeed-Studio/grove.py\ncd grove.py\nsudo python setup.py install\ncd ~/Download\ncurl \"https://s3.amazonaws.com/aws-cli/awscli-bundle.zip\" -o \"awscli-bundle.zip\"\nunzip awscli-bundle.zip\nsudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws\n\naws configure\n\nAWS Access Key ID [None]:\nAWS Secret Access Key [None]:\nDefault region name [None]:\nDefault output format [None]: json\n```\n\nTroubleshooting\n=====\n\n### ImportError: No module named upm.pyupm_mcp9808\n\n加入mraa源庫並更新apt\n\n```\nsudo add-apt-repository ppa:mraa/mraa\nsudo apt update\n```\n\n安裝python mraa和upm 相關套件\n\n```\nsudo apt-get install libupm-dev libupm-java python-upm python3-upm node-upm upm-examples python-mraa\n```\n\n### Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?\n```\nsudo rm /var/lib/dpkg/lock\nsudo dpkg --configure -a\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftchef%2Fworkshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftchef%2Fworkshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftchef%2Fworkshop/lists"}