Skip to main content

The Virtual Bean Counter

Prior to the trip to buy groceries each week, the tedious chore of wandering round the house checking how much of all the consumables that a household requires is actually present must be completed. Everywhere there is a stash; upstairs, downstairs, all the cupboards, the fridge, the freezer, etc., etc. I could try to do it from memory, but who has the available headspace to remember how many tins of beans you have at any particular moment and, even if you do try to use this method, how many extra tins of corned beef or jars of mustard is it reasonable to have to buy just to save yourself from the weekly traipse around the house doing a stock-check?

What I need is a Bean Counter.

I want to be able to scan in the barcode on a tin of beans when I buy it and when I use it scan it out again and have the stock level reflect that fact. Then, on shopping day, I can just look at the stock levels from my desk. Or even better it could just tell me when I need to buy more beans again.

Of course this is a really basic function for most businesses and there are whole suites of software for stock management, but this is a household not Amazon. Fortunately a nice person called Bernd Bestel has already solved this problem and the solutions' name is Grocy.

It is supposedly a whole ERP (Enterprise Resource Planning) system designed for the household. It sits on a central server (ie computer) and you or your SO can use a phone as a barcode scanner to interface with that server. Perfect. I don't need the whole ERP shebang, but if it can solve the bean problem then I am willing to give it a try.

Let's set it up.

The first task is to set up the main software on a server that, ideally, should be on all the time, or at least all the times that you want to be using or buying things. I could do this on my main PC but I don't necessarily trust Windows to be able to properly uninstall the package if I decide it isn't going to do what I want. However, if I do decide that it is the right solution, I would prefer to run it on a lower power consumption device as it is going to be on all the time, for example a Small Form Factor device like a Raspberry Pi. In addition, I have also been looking at home automation and wondering whether it is worth getting involved and this too would require an always-on device.

Happily, Grocy has already been integrated into Home Assistant (the leading open source platform for home automation). So I could kill two birds with one stone (a horrible metaphor, btw) and I do have a Raspberry Pi somewhere. But as to where exactly I don't know and really can't be bothered to go a-hunting for it. The answer, then, is to virtualise a Raspberry Pi and install the system on that while I determine whether it is a keeper or not.

Virtualise? I'll leave Copilot to explain that;

Virtualization in computing refers to the process of creating a simulated, or virtual, computing environment rather than a physical one. Virtualization uses software to create an abstraction layer over physical computer hardware. This layer allows for the division of a single computer’s components (such as processors, memory, and storage) into multiple virtual machines. Each virtual machine runs its own operating system and behaves like an independent computer, even though it shares the underlying hardware.

In short I can create one computer inside my desktop PC - like blowing a bubble inside a bigger bubble - then set up Home Assistant and Grocy and if I don't like it I can just trash the whole system rather than trying to uninstall a chunk of programs and any alterations they have made to my PC. Simples!

OK, but how? VirtualBox (VB) from Oracle is my preferred software - other virtualisation software or hypervisors are available, but A) I haven't used them before and B) they are normally more complex than VB, not that VB is exactly user friendly.

Setting up VB is not too taxing though, just download the right one for Windows 11, currently v7.1.4, and install it. To test it out I decided to set up a Linux system, Ubuntu 22.04 LTS, obtained from here. As why not have access to Linux on my desktop?

Unfortunately it was not to be that simple as VirtualBox started with error messages as soon as I tried to get Ubuntu running.

VERR_SVM_DISABLED error message from VirtualBox

Let's debug.

Comments

Popular posts from this blog

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...

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 ...

Alexander Aircraft Company

And here we are at the Alexander Aircraft Company , a start-class rated article about a defunct aeronautical engineering company from the USA in the 1920's. As this is a subject with more interest to me I spent a little longer than usual on this article, giving it a top-to-tail polish. Starting with the lead paragraph , which consisted of a grand total of twelve words on arrival, I expanded it, if only by a bit, so at least there are now two sentences. The associated book citation was limited so this was expanded as well. Founding and Disaster subsections received a heavy dose of wiki-linking and the single reference provided across both subsections was dead, requiring a trip to The Wayback Machine to search for the given URL. The Wayback Machine is part of The Internet Archive , which is a not-for-profit set up back in the early days of the web to archive the nascent internet, as it was recognised that the content was not anywhere near as permanent as the previous forms of...