GithubHelp home page GithubHelp logo

nickm-27 / swatch-hass-addon Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 46 KB

Color detection in images to capture presense of known objects.

License: Apache License 2.0

Dockerfile 30.36% Shell 69.64%
ai camera home-assistant home-assistant-addons home-automation object-detection

swatch-hass-addon's Introduction

Hi there ๐Ÿ‘‹ I'm Nick

I am a mobile (Android, Flutter, iOS), Docker & python developer who is very passionate about what he does and loves creating new and useful things that people enjoy to use!

Anurag's GitHub stats

My Favorite Projects

I am a mobile & full stack developer. I contribute to a handful of open source projects related to Home Automation / AI and also have released quite a few apps on both the App Store and Google Play. Below are my favorite projects that I have worked on which show what I am all about.

Frigate


Frigate is an AI Network Video Recorder deployed via docker and written in Python. I am an active contributor and have really enjoyed working on this project. I also contribute to the Frigate-HomeAssistant Integration.



Albatross for Twitter


Albatross for Twitter is a clean Twitter client for Android and iOS which contains many unique features that add value to the typical Twitter experience. It is inspired by material design and is very intuitive to use while also being quite versatile and customizable to fit your style of browsing Twitter.


Link Preview

Link Preview is an open source library that is an Android view which can accept a String and parse any links that are contained in it and then show an image and the article title and link to easily show a user where a link leads.

Swatch



Color detection in images to capture presence of known objects.



Texpert & Texpert Sync



Texpert is an Android SMS client which adds high value features like scheduled messages and machine learning informed suggestions into a clean material design SMS client. Texpert Sync adds on to the experience by letting you text from your other Android and iOS devices without needing to get your phone from the other room.


Where I have worked

I have many years of experience.

ADT - Senior Android Developer (October 2020 - Present)

I work with many teams on lots of awesome projects including ADT+, ADT Blue, ADT Pulse

Fitplan Technologies - Mid Level Android Developer (May 2019 - November 2020)

Fitplan is a tech startup where I am an Android / Mobile engineer.

My social accounts

If you want to support what I do

If you would like to make a donation to support development, please use GitHub Sponsors.

Buy Me A Coffee

swatch-hass-addon's People

Contributors

nickm-27 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

corylandfair

swatch-hass-addon's Issues

[Feature Request] Add config file editor to the add-on configuration

If having a valid config.yml is a requirement for Swatch to start, there really should be a text area configuration editor in the Configuration tab of the add-on.

I know that this config is mounted into the container, but it might not be clear to someone new to Home Assistant how to get the config into the add-on.

Thanks for making this, and making it open source!

Error starting addon v3.1.0-b0c06b9

Hi,

I am unable to start the addon.

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

Supervisor logs:

22-07-16 13:16:54 ERROR (SyncWorker_5) [supervisor.docker.interface] Container addon_69755fa6_swatch is not running
22-07-16 13:17:01 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 0.0.0.0:4500 ssl:default [Connect call failed ('0.0.0.0', 4500)]
22-07-16 13:17:03 ERROR (SyncWorker_3) [supervisor.docker.interface] Container addon_69755fa6_swatch is not running
22-07-16 13:17:17 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with 69755fa6_swatch!
22-07-16 13:17:17 INFO (SyncWorker_3) [supervisor.docker.interface] Cleaning addon_69755fa6_swatch application
22-07-16 13:17:17 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on crzynik/swatch with version None
22-07-16 13:17:19 INFO (SyncWorker_4) [supervisor.docker.interface] Cleaning addon_69755fa6_swatch application
22-07-16 13:17:20 INFO (SyncWorker_4) [supervisor.docker.addon] Starting Docker add-on crzynik/swatch with version None
22-07-16 13:17:20 ERROR (SyncWorker_7) [supervisor.docker.interface] Container addon_69755fa6_swatch is not running
22-07-16 13:17:20 ERROR (SyncWorker_6) [supervisor.docker.interface] Container addon_69755fa6_swatch is not running
22-07-16 13:17:47 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with 69755fa6_swatch!
22-07-16 13:17:47 INFO (SyncWorker_5) [supervisor.docker.interface] Cleaning addon_69755fa6_swatch application
22-07-16 13:17:47 INFO (SyncWorker_5) [supervisor.docker.addon] Starting Docker add-on crzynik/swatch with version None
22-07-16 13:18:13 ERROR (SyncWorker_5) [supervisor.docker.interface] Container addon_69755fa6_swatch is not running
22-07-16 13:18:17 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with 69755fa6_swatch!
22-07-16 13:18:17 INFO (SyncWorker_3) [supervisor.docker.interface] Cleaning addon_69755fa6_swatch application
22-07-16 13:18:18 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on crzynik/swatch with version None
22-07-16 13:18:48 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with 69755fa6_swatch!
22-07-16 13:18:48 INFO (SyncWorker_4) [supervisor.docker.interface] Cleaning addon_69755fa6_swatch application
22-07-16 13:18:48 INFO (SyncWorker_4) [supervisor.docker.addon] Starting Docker add-on crzynik/swatch with version None```

/api/colortest/values not working

Hi,
I'm seeing this error in the addon logs when I send the POST request:

  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1519, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1517, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1503, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/opt/swatch/swatch/http.py", line 91, in test_colors
    main_color, palette = current_app.image_processor.parse_colors_from_image(
AttributeError: 'ImageProcessor' object has no attribute 'parse_colors_from_image'

Addon version: 3.1.0-2717ec6

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.