A well-stocked fridge is essential to the efficient running of a well-ordered home, and no-one wants to open the larder to find shelves dripping with expired and moldy produce.
Grocy is a self-hosted stock-management app you can host on a Raspberry Pi, to help you keep track of your consumables, plan meals, and efficiently manage housework.

Why Manage Your Groceries With Grocy on Raspberry Pi?
Everybody hates waste. Whether it’s because foodstuffs go past their use-by dates because you didn’t check them in time, or making unnecessary trips to the store because you didn’t plan your meals ahead of time, waste is bad for the environment and bad for your mental health.
Grocy is open-source software that’ll help you keep an accurate inventory of your consumables, so you can plan ahead of time, minimize wastage, and save money.

How to Install Grocy on Raspberry Pi
Before you begin, you should follow our guide toset up your Raspberry Pi as a web server. While you won’t need MariaDB or PHP for this project, you may find them useful for other awesome Raspberry Pi self-hosting projects. Make sure you alsohave the latest version of Docker Compose installed.
Once that’s completed, connect to your Pi using Secure Shell (SSH):

Use Apt to update and upgradeall installed packages:
Now create new directories for Grocy and Grocy data, anduse thecdcommandto move into the new Grocy directory:

Use the nano text editor to create a new file:
Add the following lines to it:
Save and exit nano withCtrl + OthenCtrl + X, then bring up Docker Compose in detached mode with:
Visithttp://your-pi-local-IP-address:9283in a web browser, and enteradminas the username andadminas the password.

You’ll land in the Grocy main screen, and should immediately clickadmin > Change password, to change your username and password, as well as set a suitable profile picture.
With the admin credentials secured, it’s time to connect your Grocy instancy to the outside world. In a browser, visit your domain registrar and create a newArecord. Set thehostto@, and the value to your domestic IP address. Set the Time To Lease (TTL) to the minimum value, then save.
Back on the command line, create a new config file for Apache:
In the new file, paste:
Save and exit nano withCtrl + OthenCtrl + X.
Enable the site and restart Apache2:
You canuse Certbot to fetch and deploy SSL certificates and keys:
If it’s the first time you’ve run Certbot, you’ll be asked to enter your email address, and to support the Electronic Frontier Foundation. Don’t feel obliged to do either. Select your domain name from a list, and hitEnter.
You can access Grocy by entering your domain name in your browser, and your connection will be upgraded toHTTPS.
Connect Grocy to Your Phone
While you can enter information directly in your browser, it’s much easier to start with Grocy if you use the mobile apps available for Android and iOS.
Download:Grocy forAndroid|iOS(Free)
Once you’ve installed the mobile app, click onOwn Serverin it—a QR scanner window will appear. From your computer web browser, click the spannericon thenManage API Keys > Add. A QR code will appear on your screen; scan it with the Grocy app, to connect to your instance and log into your account.
Use Grocy to Manage Your Kitchen Stock!
With the server, the web interface, and the mobile app up and running, it’s time to inventory your goods!
From theStock Overviewsection of the app, click on the checkerboard icon to launch the barcode scanner. Use this to scan barcodes on your items, and enter the necessary details. You’ll need to add a name for the item, the expiry date, and location.
ClickSavewhen done, and the item will appear on your server. You can optionally add information such as price, which makes it easier to generated priced shopping lists for when you need to restock. This step is incredibly time-consuming, but worth it if you usually buy the same brands.
When you consume a product, you simply need to scan the barcode again to have it disappear from your inventory. And when you unload your shopping after a trip to the store, just scan the items as you store them and add the expiry date. Because Grocy already associates the barcode with a product, you won’t need to re-enter the name, price, or location.
Grocy also features a basic recipe manager that helps you to create meals using the stock you have. It assists you in documenting the process, and you can even add the completed product as an item in your inventory.
To create a new recipe, clickRecipes > Add, Give your recipe a name, then fill in the servings count, recipe steps and ingredients. Grocy will provide you with a barcode you can print out and slap on your jar of homebrewed chicken stock.
If you’re especially organized, you can use Grocy’s meal planner to plan your meals weeks in advance. ClickMeal Planner, then for each day, click+(plus) and select your chosen recipe from a list. Grocy will check that you have the necessary ingredients in stock.
Grocy Manages More Than Just Food
Running a household is about more than the fresh ingredients in your fridge, and Grocy can help you with an unimaginable range of tasks.
UnderManage Master Data, you can define every chore that should take place in your home, along with a description. If you have other people living with you, you can add them as users on Grocy, and assign them to do chores from the app or from the web interface. This simplifies and tracks who’s responsible for the dishes, vacuuming, or walking the dogs. Your family will appreciate the reduction in friction through misunderstanding.
You’ll also find sections for batteries, levels of charge, purchase, and charge dates.
Get Organized With Grocy!
Grocy is squarely aimed at people who feel the need to be super-organized, and have control over every aspect of their lives, without having to consciously think about it.
Once you have Grocy set up, you can integrate it into your daily routine and know at a glance what options are available to you.
If planning ahead is important to you, why not try a day planner app to help you achieve consistent daily productivity?
Q: Where Is the Config File on a Raspberry Pi?
You can find the config file on a Raspberry Pi in the/bootdirectory. There are multipleways to edit the boot/config file on a Raspberry Piif your project requires doing so.
Q: How Do I Transfer Data From a Raspberry Pi to a PC?
you may transfer files via email, cloud storage, or USB. These are a few of the ways you cancopy data from a Raspberry Pi to your PC.