Giter VIP home page Giter VIP logo

Comments (15)

NickM-27 avatar NickM-27 commented on August 16, 2024

The 502 is occurring because swatch is not started. I need to add a warning, but the config there is for reference and not to be copied as it is not compatible with all installs and doesn't have valid values anyway.

A good starting point should be:

objects:
  trash_can:
    color_variants:
      default:
        color_lower: 70, 70, 0
        color_upper: 110, 100, 50
    
cameras:
  GR:
    zones:
      street:
        coordinates: 225, 540, 350, 620
        objects:
          - trash_can

it won't fit your setup but swatch should start so you can get started

from swatch.

ssryan9 avatar ssryan9 commented on August 16, 2024

I updated the config file to the above and I'm seeing the same error in the logs. I rebuilt the HACS add-on, as well as re-starting it. Same error in the logs

from swatch.

NickM-27 avatar NickM-27 commented on August 16, 2024

Thanks, that is interesting, seems the database logic isn't working right. Can you please try manually creating a /swatch folder inside /media (so it looks like /media/swatch/ and that should fix that.

from swatch.

ssryan9 avatar ssryan9 commented on August 16, 2024

I didn't have a /media folder, but I created one and then created a swatch folder inside of it. Still no luck. Rebuilt the add on and restarted it - same error

from swatch.

NickM-27 avatar NickM-27 commented on August 16, 2024

What kind of install are you running? The /media folder should come for free and by default with the HomeAssistant OS install

(to be clear this is outside of /config so it is NOT /config/media/swatch/).

from swatch.

ssryan9 avatar ssryan9 commented on August 16, 2024

Ah thanks for the clarification - just located the media folder and there is already a swatch folder created...

Inside of that folder is a swatch.db folder with nothing in it.

from swatch.

NickM-27 avatar NickM-27 commented on August 16, 2024

Oh, I see, that's me being dumb then. Please delete the swatch.db folder and it should work

Should be a file, not a folder so my logic was a little off

from swatch.

ssryan9 avatar ssryan9 commented on August 16, 2024

Deleted the swatch.db folder and it recreates itself every time I restart or rebuild Swatch in my add-ons section. Still getting the same errors

from swatch.

NickM-27 avatar NickM-27 commented on August 16, 2024

Thanks, I'll get an update out to address this

from swatch.

NickM-27 avatar NickM-27 commented on August 16, 2024

This should be fixed with latest version (out now)

from swatch.

ssryan9 avatar ssryan9 commented on August 16, 2024

That moved the needle! The logs are much cleaner now, but I'm still not getting anything when I click into the WebUI. I've reinstalled, updated to the newest version you just released, as well as restarted my HASS instance.

Edit: I'm no longer getting the bad gateway error, just a blank screen

Logs
[2022-06-08 17:17:00,829]: INFO - Starting SwatchApp [2022-06-08 17:17:00,838]: INFO - Importing SwatchApp Config [2022-06-08 17:17:00,838]: INFO - Verified SwatchApp Config Starting migrations [2022-06-08 17:17:00,842]: INFO - Starting migrations There is nothing to migrate [2022-06-08 17:17:00,849]: INFO - There is nothing to migrate [2022-06-08 17:17:00,851]: INFO - Starting snapshot cleanup [2022-06-08 17:17:00,852]: INFO - Starting Detection Cleanup

from swatch.

NickM-27 avatar NickM-27 commented on August 16, 2024

What address comes up when trying to view? What happens if you view http://{ha ip address}:4500

from swatch.

ssryan9 avatar ssryan9 commented on August 16, 2024

That did the trick!

The address that it's pointing to is http://[ha ip]/69755fa6_swatch/dashboard but if i go to the address above it works.

I really appreciate all the help. Not a big deal to just navigate to this URL. Now that I'm in the UI, is the URL it's asking for for the camera just the RTSP url?

from swatch.

NickM-27 avatar NickM-27 commented on August 16, 2024

It's trying to do the ingress so I probably should disable that as I don't care to support that until I understand it more.

And the url in the config would be a snapshot url (some cameras natively support it some don't)

I might be able to get snapshot from rtsp stream but currently it needs to give a jpg

from swatch.

NickM-27 avatar NickM-27 commented on August 16, 2024

Going to go ahead and close this. If you have any issues with setting up config feel free to create a new issue

from swatch.

Related Issues (20)

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.