Giter VIP home page Giter VIP logo

barcodebuddy-homeassistant's Introduction

BarcodeBuddy Homeassistant Docker Image

Supports aarch64 Architecture Supports amd64 Architecture Supports armhf Architecture Supports armv7 Architecture Supports i386 Architecture

This is the docker repo optimized for Home Assistant of BarcodeBuddy.

Install Home Assistant

  1. Click context menu in addon section
  2. Add custom repo url and point to this repo https://github.com/Forceu/barcodebuddy-homeassistant

Contributors

License

The MIT License (MIT)

Based on: https://github.com/linuxserver/docker-grocy

Donations

As with all Free software, the power is less in the finances and more in the collective efforts. I really appreciate every pull request and bug report offered up by BarcodeBuddy's users, so please keep that stuff coming. If however, you're not one for coding/design/documentation, and would like to contribute financially, you can do so with the link below. Every help is very much appreciated!

paypal LiberaPay

barcodebuddy-homeassistant's People

Contributors

cfenner avatar forceu avatar fredrikbaberg avatar panoramiac avatar tom-winkler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

barcodebuddy-homeassistant's Issues

Won't Start Anymore

Clicking Start in HA will make the plugin look like its starting, but then after refreshing the page its stopped again.
Tried reinstalling plugin, no luck.

Logs in the plugin are empty.
Logs in supervisor show this:

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:125
Integration: Home Assistant Supervisor ([documentation](https://www.home-assistant.io/integrations/hassio), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+hassio%22))
First occurred: 20:43:44 (16 occurrences)
Last logged: 21:09:59

Failed to to call /addons/d44967b1_bbuddy-grocy/stats - Container addon_d44967b1_bbuddy-grocy is not running
Failed to to call /addons/d44967b1_bbuddy-grocy/stats -

Physical barcode scanner on homeassistant add-on

I'm looking for a way to connect a physical barcode scanner (/dev/input/event0)

I saw this issue #47 about a work-around using keyboard_remote + Node-RED to make an api call to barcodebuddy. Is this the only way to make it work or does the add-on support it directly now?

I noticed in the startup log:

[EnvParser] Parsing environment variables
[EnvParser] ATTACH_BARCODESCANNER not set, disabling input grabber

Redis cannot connect?

Hello,
I just discovered this add-on and thought I would try it. I've managed to make it connect to my Grocy instance (through disabling SSL, still trying to make it work with SSL).

I see the following error for Redis Cache: "Cannot connect to Rediscache! Connection refused". I assume that should not happen. Any suggestions how to fix this, other than disabling Redis Cache?

Missing persistent storage in Dockerfile / no data saved

The addOn doesn't store data in a persistent storage, leading to loosing all data after a shutdown/restart.

As far as I know there should be a WORKDIR in the Dockerfile to set this up.

Reproduce:

  • install addOn
  • configure it (user, API key)
  • restart addOn
  • all data is missing including the first user

BCB Grocy addon not showing up in HA Supervised

Followed the steps that you have in the Read me, by adding the the repository to the Supervise /Add-on/Repositories directory. I then saved and reloaded. The BCB add-on did not show up. I did a system restart and still not add-on. Has the repository changed by any chance? Can you please take a look into this

Unable to connect to API: Invalid API key

Trying out barcodebuddy for the first time, set up the username/password but stuck on the API screen.

I have Grocy as well as this barcodebuddy-homeassistant both installed in my Home Assistant running in a VM behind a Nginx reverse proxy.

Per the documentation, I added 9192 to the grocy configuration

Using
http://192.168.0.x:9192/api
Unable to connect to API: Invalid response. Are you using the correct URL?

https://192.168.0.x:9192/api
Unable to connect to API: Invalid SSL certificate!
If you are using a self-signed certificate, you can disable the check in config.php

I have both curl_allow_insecure_ssl_ca as well as curl_allow_insecure_ssl_host enabled.

In Grocy > wrench > REST API BROWSER

I am presented with https://redacted.duckdns.org/api/hassio_ingress/REALLYlongString/api/

Entering the API key I generated, I get
Unable to connect to API: Invalid API key

I believe this means this install of barcodebuddy is communicating with my install of Grocy. But there may be a disconnect with the GUI configuration in Home Assistant or I may be doing something wrong.

The log is fantastically dull especially with debug enabled.
Barcode Buddy for Grocy
Barcode Buddy supervisor started

Initialising container
File permissions set
Using SSL keys found in /config/keys
Parsing environment variables
ATTACH_BARCODESCANNER not set, disabling input grabber
Setting timezone to America/Los_Angeles
Starting Nginx
Starting Websocket Server
Starting Redis
Starting PHP-fpm8

s6-overlay-suexec: fatal: can only run as pid 1

Hello,

I'm trying to install this addon on HA 2023.3.4 and when I try to run this addon I'm getting in logs:

s6-overlay-suexec: fatal: can only run as pid 1

Any idea how to fix it?

Thanks

Error preventing use

Just attempted to install this add-on and got an error when I try to enter the web UI.

Error as follows:

FS Error DATA_PATH_NOT_WRITABLE: Database file cannot be created, as folder or database file is not writable. Please check your permissions.
Have a look at this link to find out how to do this: How do I make files and folders writable for the web server?

not clear which folder I need to add permissions to as the linked instructions are for a folder that does not exist.

Edit to add running

Home Assistant 2023.1.4
Supervisor 2022.12.1
Operating System 9.4
Frontend 20230110.0 - latest

Can not install the Addon

Homeassistant version: 2023.3.1
Running on: rpi4 (Arm64)
Using an external SSD

I can not install the Addon into my Homeassistant installation (I uninstalled it recently when i migrated back from an x86 device as the addon made issues with full backups). Now on my PI I wanted to set it up again and get this error when I try to inatall the Addon:

23-03-09 08:42:30 ERROR (SyncWorker_4) [supervisor.docker.addon] Can't build d44967b1/aarch64-addon-bbuddy-grocy:dev-docker-based: no matching manifest for linux/arm64 in the manifest list entries
23-03-09 08:42:30 ERROR (SyncWorker_4) [supervisor.docker.addon] Build log: 
Step 1/13 : ARG BUILD_FROM
Step 2/13 : FROM ${BUILD_FROM}

Any suggestion what I can do, do others also have this issue?

Files are stored directly in config folder of Home Assistant

I noticed that the addon stores files directly in /config in Home Assistant. This makes it more difficult to clean up after uninstalling and clutters the directory.

Would it be possible to use a subfolder such as "barcodebuddy"?

I think this is related to #4.

Cant access the web ui

Not sure why but the addon installs fine and the log says its working but I cant seem to connect. The port is forwarded to home assistant server as well. It just says the site cant be reached.
Any ideas?

AddOn doesn't run after installation with fatal error

I tried to install the addOn, the log gives a success message, but if I try to start the addOn it throws an error in the addOn log.

HA Supervior log:

21-02-28 04:19:03 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/d44967b1_bbuddy-grocy
21-02-28 04:19:03 INFO (SyncWorker_4) [supervisor.docker.addon] Starting build for d44967b1/armv7-addon-bbuddy-grocy:dev-docker-based
21-02-28 04:19:10 INFO (SyncWorker_4) [supervisor.docker.addon] Build d44967b1/armv7-addon-bbuddy-grocy:dev-docker-based done
21-02-28 04:19:10 INFO (MainThread) [supervisor.addons] Add-on 'd44967b1_bbuddy-grocy' successfully installed
21-02-28 04:19:49 INFO (SyncWorker_4) [supervisor.docker.addon] Starting Docker add-on d44967b1/armv7-addon-bbuddy-grocy with version dev-docker-based

If I try to start the addOn, it gives an error in the addOn log:

[FATAL tini (7)] exec /init failed: Exec format error

There are no other error messages, but the addOn doesn't start.

My system is a Pi4, with the following specs:


Version | core-2021.2.3
-- | --
Installationstyp | Home Assistant Supervised
Entwicklung | false
Supervisor | true
Docker | true
Virtuelle Umgebung | false
Python-Version | 3.8.7
Betriebssystemfamilie | Linux
Betriebssystem-Version | 5.10.11-v7l+
CPU-Architektur | armv7l

Host-Betriebssystem | Raspbian GNU/Linux 10 (buster)
-- | --
Update-Channel | stable
Supervisor-Version | supervisor-2021.02.11
Docker-Version | 20.10.3
Speicherplatz gesamt | 109.5 GB
Speicherplatz genutzt | 18.0 GB
Healthy | true
Unterstützt | Unsupported
Supervisor-API | ok
Versions-API | ok

Any ideas where to look at? A (very) short search showed the error message in combination with some armv7 architecture, but that's unfortunately outside my knowledge. Thanks for any help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.