{"id":23383578,"url":"https://github.com/niewidzialny84/pirest","last_synced_at":"2026-05-18T09:33:30.441Z","repository":{"id":116623759,"uuid":"294448333","full_name":"Niewidzialny84/PiREST","owner":"Niewidzialny84","description":"A raspberry pi things","archived":false,"fork":false,"pushed_at":"2020-09-11T16:03:54.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T05:41:39.718Z","etag":null,"topics":["lan","python","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Niewidzialny84.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-09-10T15:25:29.000Z","updated_at":"2021-03-29T15:18:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"92a96c3a-15ee-47fd-97ba-1c38e1a27807","html_url":"https://github.com/Niewidzialny84/PiREST","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Niewidzialny84/PiREST","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niewidzialny84%2FPiREST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niewidzialny84%2FPiREST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niewidzialny84%2FPiREST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niewidzialny84%2FPiREST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Niewidzialny84","download_url":"https://codeload.github.com/Niewidzialny84/PiREST/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niewidzialny84%2FPiREST/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33172603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["lan","python","raspberry-pi"],"created_at":"2024-12-21T22:28:06.369Z","updated_at":"2026-05-18T09:33:30.425Z","avatar_url":"https://github.com/Niewidzialny84.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PiREST\nI have created an extention to my network using RaspberryPi 4 and also wanted to check the status of pi so I have made this python api. It is more like a cheat sheet for me for some later uses or when i forgot something.\n\n### Sharing Wifi Through LAN\nHow i made my WiFi signal recived by Pi to be shared by LAN:\n* Install dnsmasq\n```bash\nsudo apt-get install dnsmasq\n```\n* Open /etc/dhcpcd.conf \n```bash\nsudo nano /etc/dhcpcd.conf \n```\n* Add two lines at the bottom and save\n```conf\ninterface eth0\nstatic ip_address=192.168.4.1/24\n```\n* Make a backup of orginal dnsmasq.conf\n```bash\nsudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig\n```\n* Open /etc/dnsmasq.conf\n```bash\nsudo nano /etc/dnsmasq.conf\n```\n* Add two lines and save\n```conf\ninterface=eth0\ndhcp-range=192.168.4.8,192.168.4.250,255.255.255.0,12h\n```\n* Open /etc/sysctl.conf\n```bash\nsudo nano /etc/sysctl.conf\n```\n* Uncomment or add this line inside a file\n```conf\nnet.ipv4.ip_forward=1\n```\n* Open /etc/rc.local\n```bash\nsudo nano /etc/rc.local\n```\n* Add this line above just above `exit 0`\n```bash\niptables -t nat -A  POSTROUTING -o wlan0 -j MASQUERADE\n```\n* Reboot the Pi\n\n### Rest api setup\n* Creating a virtual enviroment named `rest` using python\n```bash\npython3 -m venv rest\n```\n* Activating virtual enviroment \n```bash\n#Pi version\nsource rest/bin/activate\n#Windows testing version\nrest\\Scripts\\activate\n```\n* Installing needed dependency using pip\n```bash\n#Installing\npip install -r requirements.txt\n#Exporting fixed version\npip freeze \u003e requirements.txt\n```\n* Exporting flash app and running it\n```bash\n#On Windows use set instead of export\nexport FLASK_APP=main.py\nflask run --host=0.0.0.0\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniewidzialny84%2Fpirest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniewidzialny84%2Fpirest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniewidzialny84%2Fpirest/lists"}