AiFeeder is an Android application designed to assist in maintaining your pet's feeding schedule. The app uses your phone’s camera to periodically check the bowl of an automatic pet feeder and ensures that it never runs out of food.
https://zenn.dev/progate/articles/29a32338e4fa11
-
Automated Bowl Monitoring
- The app periodically takes a picture of the pet feeder's bowl using the phone’s camera.
- It uses the Gemini API to analyze the image and determine whether the bowl needs refilling.
-
Automatic Food Dispensing
- If the Gemini API detects that the food is insufficient, the app triggers the feeder to dispense more food.
-
Gemini API Key
- Before running the app, add your Gemini API key to the
local.properties
file in the following format:ReplaceGEMINI_API_KEY=xxx
xxx
with your actual Gemini API key.
- Before running the app, add your Gemini API key to the
-
Network Request File
- The app requires a
feedPet.har
file in the project root directory to control the pet feeder. - Every time food needs to be dispensed, the app will send a network request identical to the one defined in the
feedPet.har
file.
- The app requires a
- Clone the repository.
- Add the
GEMINI_API_KEY
to thelocal.properties
file. - Place the
feedPet.har
file in the project root directory. - Build and run the app on an Android device with a working camera.