{"id":28303676,"url":"https://github.com/mariolpantunes/rpi_iot","last_synced_at":"2026-05-17T17:03:19.987Z","repository":{"id":143503396,"uuid":"427026346","full_name":"mariolpantunes/rpi_iot","owner":"mariolpantunes","description":"Example code used at the 11th of November 2021 workshop.","archived":false,"fork":false,"pushed_at":"2021-11-22T14:52:15.000Z","size":1263,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-12T22:27:43.205Z","etag":null,"topics":["adafruit","iot","mqtt","python","rpi"],"latest_commit_sha":null,"homepage":"","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/mariolpantunes.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-11-11T14:15:38.000Z","updated_at":"2021-11-22T14:52:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"552ac372-6cc3-4eaf-9f73-beb7df3074ff","html_url":"https://github.com/mariolpantunes/rpi_iot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mariolpantunes/rpi_iot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariolpantunes%2Frpi_iot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariolpantunes%2Frpi_iot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariolpantunes%2Frpi_iot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariolpantunes%2Frpi_iot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariolpantunes","download_url":"https://codeload.github.com/mariolpantunes/rpi_iot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariolpantunes%2Frpi_iot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["adafruit","iot","mqtt","python","rpi"],"created_at":"2025-05-23T23:11:34.833Z","updated_at":"2026-05-17T17:03:19.982Z","avatar_url":"https://github.com/mariolpantunes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IoT (RPI)\n\nExample code used at the 25th of November 2021 workshop (slides [here](presentation/Internet-of-cheap-Things.pdf)).\n\n# Usage\n\n1. Install the git client and clone this repository\n\n```bash\nsudo apt install git\nmkdir ~/git\ncd ~/git\ngit clone https://github.com/mariolpantunes/rpi_iot.git\n```\n\n2. Install Mosquitto (MQTT broker)\n\n```bash\nsudo apt install mosquitto mosquitto-clients\n```\n\n3. Stop the broker and edit the configuration file\n\n```bash\nsudo systemctl stop mosquitto\nsudo nano /etc/mosquitto/mosquitto.conf\n```\n\n4. Add the following lines:\n\n```\nallow_anonymous true\nlistener 1883 0.0.0.0\n\nlistener 9001 0.0.0.0\nprotocol websockets\n```\n\n5. Restart the broker\n\n```bash\nsudo systemctl start mosquitto\n```\n\n6. Install nginx to display the webpage\n\n```\nsudo apt install nginx-light\ncd /var/www/html/\nsudo ln -s /home/pi/git/rpi_iot/web/index.html index.html\n```\n\n7. Create a virtual enviroment and run the code\n\n```bash\ncd ~/git/rpi_iot/\npython3 -m venv venv\nsource venv/bin/activate\nCFLAGS=\"-fcommon\" pip install -r rpi/requirements.txt\npython rpi/main.py\n```\n\n8. Explore the MQTT messages with the application [MQTT5-Explorer](https://github.com/Omniaevo/mqtt5-explorer)\n\n## Authors\n\n* **Mário Antunes** - [mariolpantunes](https://github.com/mariolpantunes)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariolpantunes%2Frpi_iot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariolpantunes%2Frpi_iot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariolpantunes%2Frpi_iot/lists"}