{"id":19923597,"url":"https://github.com/sukarnascience/pingu_bot","last_synced_at":"2026-06-07T18:32:08.032Z","repository":{"id":205548049,"uuid":"714507876","full_name":"Sukarnascience/Pingu_Bot","owner":"Sukarnascience","description":"Its A User friendly Robot runs on Raspberry Pi 3B+ 32Bit, Due to limitaion of resources we will go with Cloud Robotics Concept.","archived":false,"fork":false,"pushed_at":"2024-01-04T00:51:36.000Z","size":9652,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T00:16:53.687Z","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/Sukarnascience.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}},"created_at":"2023-11-05T03:44:56.000Z","updated_at":"2023-11-15T15:41:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"efb3a057-8f17-4761-99d5-057093d34df7","html_url":"https://github.com/Sukarnascience/Pingu_Bot","commit_stats":null,"previous_names":["sukarnascience/pingu_bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sukarnascience%2FPingu_Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sukarnascience%2FPingu_Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sukarnascience%2FPingu_Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sukarnascience%2FPingu_Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sukarnascience","download_url":"https://codeload.github.com/Sukarnascience/Pingu_Bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241349166,"owners_count":19948324,"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-12T22:14:50.146Z","updated_at":"2025-11-24T01:06:41.935Z","avatar_url":"https://github.com/Sukarnascience.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Document Process\n\u003e Its A User friendly Robot runs on Raspberry Pi 3B+ 32Bit, Due to limitaion of resources we will go with Cloud Robotics Concept.\n\n\n## Issue with Pi Updates\n```sh\nmybot@mybot:~ $ sudo apt-get update\nHit:1 http://raspbian.raspberrypi.com/raspbian bookworm InRelease              \nHit:2 http://archive.raspberrypi.com/debian bookworm InRelease  \nReading package lists... Done                                   \nW: http://raspbian.raspberrypi.com/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.\n```\n*Still issue is not fixed*\n\n## Issue with Local \n_ERROR LOOK LIKE THIS_:\n\n```sh\n/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\n/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\n```\n\n_TO FIX_ :\n\nIt seems like the issue is persistent, and the locale settings are still not being set as desired. In this case, we can try a more manual approach to set the locale directly:\n\n1. Open the locale configuration file:\n\n```bash\nsudo nano /etc/environment\n```\n\n2. Add the following lines:\n\n```plaintext\nLANG=en_GB.UTF-8\nLC_ALL=en_GB.UTF-8\nLANGUAGE=en_GB:en\n```\n\nSave the file and exit the text editor.\n\n3. Reboot your Raspberry Pi:\n\n```bash\nsudo reboot\n```\n\nAfter the reboot, check if the issue is resolved. This approach sets the locale environment variables globally. If the problem persists, there may be other system-specific issues that need further investigation.\n\n## Issue with Python\nI am running all this stuffs in 32Bit SBC (Raspberry Pi 3b+) so i was facing issue with ```pip``` ,I was getting error something like this:\n\n```sh\nerror: externally-managed-environment\n\n× This environment is externally managed\n╰─\u003e To install Python packages system-wide, try apt install\n    python3-xyz, where xyz is the package you are trying to\n    install.\n    \n    If you wish to install a non-Debian-packaged Python package,\n    create a virtual environment using python3 -m venv path/to/venv.\n    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make\n    sure you have python3-full installed.\n    \n    For more information visit http://rptl.io/venv\n\nnote: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.\nhint: See PEP 668 for the detailed specification.\n```\n\nSo, to fix this i am running my eniter code inside virtual environment\n\n## Autostart the code\n\u003e i maid a ```start_bot.sh``` file which will help me to start all the responsible code to run the robot\n\nGot it. Let's modify the service file accordingly:\n\n1. Open the service file for editing:\n\n    ```bash\n    sudo nano /etc/systemd/system/my_script.service\n    ```\n\n2. Update the content to reflect the correct path:\n\n    ```ini\n    [Unit]\n    Description=My Script Service\n    After=network.target\n\n    [Service]\n    ExecStart=/home/your_username/Documents/pingu_bot/start_bot.sh\n    WorkingDirectory=/home/your_username/Documents/pingu_bot\n    StandardOutput=inherit\n    StandardError=inherit\n    Restart=always\n    User=your_username\n\n    [Install]\n    WantedBy=multi-user.target\n    ```\n\n    - Replace `your_username` with your actual username.\n\n3. Save the file and exit the editor.\n\n4. Reload systemd:\n\n    ```bash\n    sudo systemctl daemon-reload\n    ```\n    \u003e when ever you change something you shoud reload it\n\n5. Enable the service:\n\n    ```bash\n    sudo systemctl enable my_script.service\n    ```\n\n6. Start the service:\n\n    ```bash\n    sudo systemctl start my_script.service\n    ```\n\nNow, your `start_bot.sh` script should run automatically on boot. Remember to replace `your_username` with your actual username.\n\n\nREBOOT \n```sudo apt install libraspberrypi-dev libffi-dev```\nhttps://circuitdigest.com/microcontroller-projects/how-to-install-python-opencv-on-raspberry-pi#comment-31289\n```sudo apt-get install libopencv-dev python3-opencv```\n```sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng-dev libwebp-dev libopenexr-dev\nsudo apt-get install libhdf5-dev libhdf5-103\nsudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libatlas-base-dev gfortran\n```\n\n1. PORT:5001 for Camera\n2. PORT:5500 for Head + RGB Status LED (Pingu)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsukarnascience%2Fpingu_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsukarnascience%2Fpingu_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsukarnascience%2Fpingu_bot/lists"}