Fridgimon started as a joke. Playing with a Zebra MC18 barcode scanner, I said I should write an app that keeps track of the contents of my fridge, reminding me when stuff goes out of date. So I wrote an app that keeps track of the contents of my fridge, reminding me when stuff goes out of date.
Fridgimon is a webapp in React, with a PHP backend that talks to the database. It also contains the configuration to load this webapp in Zebra's Enterprise Browser, a customised browser environment with full access to the device functionality including the barcode scanner.
- Fridgimon repo on GitHub
- Create the database schema from
src/fridgimon.sql
. - Copy
src/webapp/db.sample.inc.php
tosrc/webapp/db.inc.php
and populate with your MySQL connection details. - Setup an Apache vhost with the document root of
src/webapp
. - Allow the
PUT
andDELETE
methods for thesrc/webapp/api
directory, either in the global apache config, or the vhost entry, e.g.(Note, you cannot add this to<Location /api> AllowMethods GET POST PUT DELETE Require all granted </Location>
.htaccess
) - Open the browser and navigate to
http://yourhost/eb/
, and you should have a page with the Fridgimon title.
(The instructions below assume a device running Android Lollipop that has been reset back to default, but can apply to WinCE with adjustments)
This will require copying files to your MC18 scanner, which can be done via a file manager app on the device itself, or by acquiring or fabricating a USB cable and using ADB and file MTP transfer.
- Update the
StartPage
entry insrc/EnterpriseBrowser/Config.xml
to point to your configured website address. - Backup the contents of
SD card\Android\data\com.symbol.enterprisebrowser
on the device. - Copy the contents of
src/EnterpriseBrowser
toSD card\Android\data\com.symbol.enterprisebrowser
on the device. - Restart EnterpriseBrowser from the launcher, and it should load up to the Fridgimon app.
- Apache 2.3+
- PHP 5.6+
- MySQL
- Zebra MC18 barcode scanner with EnterpriseBrowser 1.8
Licensed under the BSD 3-Clause License. Code copyright (c) 2024, Deanna Earley.