{"id":16599676,"url":"https://github.com/hagemt/net-pet-feeder","last_synced_at":"2026-04-23T09:36:52.176Z","repository":{"id":140005691,"uuid":"398958456","full_name":"hagemt/net-pet-feeder","owner":"hagemt","description":"I \"fixed\" my old Petnet SmartFeeder w/ a custom script in Python, foot pedal to send a \"feed\" event, cron jobs, and separate web front-end using Vercel's NextJS","archived":false,"fork":false,"pushed_at":"2021-11-16T22:26:48.000Z","size":106,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-08T10:57:52.913Z","etag":null,"topics":["feeder","petnet","portfolio"],"latest_commit_sha":null,"homepage":"https://nextjs.org","language":"JavaScript","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/hagemt.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":"2021-08-23T03:08:37.000Z","updated_at":"2024-05-23T21:49:40.000Z","dependencies_parsed_at":"2023-05-01T03:46:41.737Z","dependency_job_id":null,"html_url":"https://github.com/hagemt/net-pet-feeder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hagemt/net-pet-feeder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagemt%2Fnet-pet-feeder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagemt%2Fnet-pet-feeder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagemt%2Fnet-pet-feeder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagemt%2Fnet-pet-feeder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hagemt","download_url":"https://codeload.github.com/hagemt/net-pet-feeder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hagemt%2Fnet-pet-feeder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32175014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"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":["feeder","petnet","portfolio"],"created_at":"2024-10-12T00:12:15.066Z","updated_at":"2026-04-23T09:36:52.162Z","avatar_url":"https://github.com/hagemt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Homebrew revives defunct Petnet SmartFeeder Gen 1/2\n\nFeed cats, but for Internet. Cloud not required. (self-hosted, just ngrok/ssh with Raspberry Pi)\n\n\u003cimg width=\"453\" alt=\"image\" src=\"https://user-images.githubusercontent.com/593274/130391582-253bd6c1-1b51-408f-b308-0bfefbfa7067.png\"\u003e\n\n## Install\n\nClone this repo to your Pi or VPS--configured so your Pi can start an SSH tunnel back to it.\n\n* Copy the `teh` folder to `/opt/teh` on your `pi` and `sudo chown -vR pi:pi /opt/teh`\n* Set up your `id_rsa.pem` in `~/.ssh/config` for easy tunnel between Pi and w/e.\n* Install `env EDITOR=$(which nano) crontab -e` with auto-feed schedule, etc.\n\nVia ssh, run: `make` to bring up the site, and add `ngrok` if needed.\n\n## Notes for later\n\nhttps://gist.github.com/ubergesundheit/7bdb6bdc818028a34a190363aed4d00a\n\n### Wait, what is this?\n\n\u003e He took his defunct Petnet SmartFeeder, wired the motor to a relay board, then did basic magic with Raspberry Pi.\n\nYou can figure out most of the hardware stuff on your own, or read my bad code to understand which pin(s) to pick. Start with the `cats.py` script, which is the only thing that actually interacts with GPIO. The `mice.py` script assumes a USB mouse-like device is attached directly to the Pi. The API is HTTP GET/POST to obtain logs or activate the feed.\n\nIn all seriousness, this project is full of cheap hacks; it was fun though. No, I won't post URLs to feed my cat.\n\n* There is a (dumb) front-end for the script.\n* There are cron jobs to run on the Raspberry Pi.\n* There's a USB foot pedal (mouse) to \"feed\" ad hoc.\n\nThe foot pedal is completely optional; I bought the relay board and \"mouse\" foot pedal from some guy in China.\n\nSee also: https://github.com/hagemt/footswitch\n\n### Sorry, I still don't get it.\n\nYou're SOL, dude. I'm not saying you should use this to feed your pet. I'm just saying I did it, and it works for us.\n\nIt's a mid/moderate intensity (few days) maker project: https://www.reddit.com/r/Petnet/comments/p9tjy7/so_i_made_my_own/\n\nOnly extra hardware: Pi, and Songle 5V DC relays from Amazon (e.g. JBtek or SunFounder board) plus some various wires. You do need to spend ~$10 total, but no solder (screw terminals) if you just want to drive the feed motor for brief intervals using the unit's original power supply wired as pictured below.\n\n![pi](https://user-images.githubusercontent.com/593274/130497191-386e5d14-2117-41c6-871f-2edf0d53c9c6.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhagemt%2Fnet-pet-feeder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhagemt%2Fnet-pet-feeder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhagemt%2Fnet-pet-feeder/lists"}