Skip to main content

Getting to grips with Grocy

After only a few hiccoughs along the way we are entering the final stage of the Grocy set-up procedure. Getting barcode scanning working should markedly streamline the process of dealing with products.

As this was a test of the Grocy system it was definite that I was going to use the camera on my phone as a barcode scanner. But there are options around this choice if everything works as required and the system progresses into an installation phase.

Although use of a phone camera is by far the simplest method of capturing barcodes, it is not the one suggested by Grocy's creator, Bernd Bestel. He recommends the use of a dedicated barcode scanner. These days they are not that expensive and a basic wired model can be found for as low as £12. Not that I think that this is a good idea unless you want to lose the mobility that we have just set up. For twice the price (still not that much if you are using Grocy routinely) you can get a wireless version, which should retain your freedom of access to the system. However, there are some other differences between the two types of scanner beyond the presence or absence of a cable.

Undeniably a dedicated barcode scanner will do a more reliable job of capturing barcodes. But set against this is that it is another system that requires hardware/software maintenance and you will need to be able to interface it with Grocy. These issues aren't insurmountable however, a barcode scanner typically operates in the same manner as a keyboard for instance. Conversely neither are they requirements prior to operating the system. Indeed, if your barcode scanner is not operational the ability to fall back to phone use is really useful if you want a resilient system. You can hardly push pause on eating and drinking while you wait for your barcode scanner to become functional again, even if it has only run out of charge.

So, with the above in mind, let's review the three options for mobile Grocy access; the Android browser, the Home Assistant (HA) app and the Grocy app.

But first we need to associate a barcode with our test product. To do this return to Manage master data > Products and select Edit this item (teal icon circled).

On the PC browser interface you can see the section for Barcodes. Grocy provides a pre-generated "Grocycode" for use in cases when the product does not have one already (eg local bakers' or home-made items). As products come in different pack sizes and from different shops multiple barcodes can be associated with each product. OK, not so commonly for Heinz Baked Beanz, but a kilo of flour is the same thing even though it comes with a different barcode from each shop you buy it from. Clicking Add (circled) brings up the Create Barcode dialogue.

Our test beans are coming from Tesco (Shop) and in a single tin (Amount = 1). The Barcode field can be typed into directly. At this point I found out that my tins of beans didn't have a barcode (as they were part of a multipack) so I had to use a stunt-tin of tomatoes.

Clicking the blue photo icon brings up another dialogue allowing you to Scan a barcode, which, if there had been a camera (or a barcode scanner) on my PC, allows you to scan the barcode in directly.

With a barcode registered to the beans in Grocy it was time to move onto testing the mobile access options.

When I tried to scan in the barcode using both the Android browser and Home Assistant app interfaces for Grocy neither came up with an image of the barcode as there was no access to the camera. I discovered later that this was probably due to HA not using a secure connection (https:) for Grocy, as described here. I could have worked out how to re-install HA with SSL in order to see if these access options would work, but I only needed to confirm that barcode scanning works. If I decide that using either of these options is important for future use I can always return to this, unless the Grocy app doesn't work either...

Fortunately there were no issues with the Grocy app. Using Purchase as a test for the scanner, I simply tapped on the barcode icon, held the red line over the barcode and the app read it and brought up the correct product details from the Grocy database.

And that concluded the testing of the Grocy system; this last test showed that the criteria I set out in the first post of this series were met. The next task was to move from testing the system's functionality to testing it operationally, ie it works, but is it useful?

Comments

Popular posts from this blog

How-to: Setting up a Blogger account with a non-Google e-mail address

As I've set up an e-mail address for the blog it makes sense to be able to post from it too. To do that I will need to set up an account with Blogger for the new e-mail address. At the same time I'll create a gmail account to both manage the blog and give access to the Google apps suite without the monthly fee. Skullcinema@gmail.com is already taken (as there is nothing new under the sun), but I can take a related e-mail address. I won't publish it here as the first address will generate enough spam as it is. Setting up a gmail account really doesn't require a guide, but it is covered here if you need one. So, off to set up an account  through Blogger . First of all though, log out of Google and/or Chrome or it will pull you straight through to Blogger on the account you are logged in on. Choose SIGN IN in the top right-hand corner of the Blogger home page, and then select  Use another account underneath the list of your current Google accounts. Now ...

HMRC a-no-go

A few years ago I set up a new company in the UK. The government here has invested quite heavily in digital services so this can be almost entirely completed on-line. You begin the process by notifying Companies House , the venerable UK registrar for companies (for 180 years this year), that you have set up a company. In order for you to do that on-line the Government needs to have some sort of user registration system and one that is a bit more secure than your regular website. Enter the Government Gateway , a government-wide ID system launched in 2001. It was initially designed to be a one-stop-shop that would provide a log-on solution for all of the UK government's on-line services. Whether you were a business/organisation or an individual citizen, with security credentials backed up by GCHQ no less. The Companies House process was exceptionally straightforward and a Government Gateway ID (GG ID) was set up by Companies House for the business. No problems. Another early task...

Evri-thing, Evri-where, All Over the Place

You have to wonder why Hermes went through the hassle of rebranding themselves to Evri, then you get a parcel delivered by them. Only a year ago in a desperate, and cynical, attempt to shed their woeful reputation as the worst parcel delivery company in the UK Hermes rebranded themselves as Evri. On the 14 th March 2022 they rolled out their corporate PR machine and made promises . "The new brand will also see a significant investment in its customer service as part of its commitment to ensuring that its customer service remains responsive, knowledgeable and helpful. This will include Evri opening a fully UK-based customer service team and adding 200 experts who will be based in local depots, closer to where potential issues are. It will also be upgrading its chatbot and releasing more phone lines for those who prefer to speak directly to someone." So was it a surprise when I got an e-mail about a parcel I was expecting? Well, most other couriers don't do this an...