Comments (15)
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.
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.
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.
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.
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.
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.
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.
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.
Thanks, I'll get an update out to address this
from swatch.
This should be fixed with latest version (out now)
from swatch.
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.
What address comes up when trying to view? What happens if you view http://{ha ip address}:4500
from swatch.
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.
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.
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)
- Update frontend to support viewing detections
- [Support]: Database error after updating to 2.2.0 as running a home assistant addon HOT 12
- [Support]: Possible Config Issues/ No Detections Firing HOT 12
- [Bug]: Events are not deleted from DB when event snapshots are deleted
- Can't install HOT 11
- Image normalization to account for lighting conditions, by using a color reference zone HOT 1
- [Support]: still image HOT 1
- Share app to determine coordinate format or leverage frigate's zone/mask format for non-rectangular zones. HOT 1
- [Support]: Error when trying to setup Swatch HOT 1
- [Support]: colortest API fails with an internal error (500) HOT 11
- [Support]: I'm very lost HOT 5
- [Support]: HOT 8
- [Support]: Container will not start HOT 3
- [Support]: Help debugging matches/misses, previous snapshots
- [Support]: Color Playground
- [Support]: Frontend doesn't work when passing through a reverse proxy
- [Support]: can't figure out what's wrong HOT 1
- [Support]: What's the current best way to install this ?
- [Support]: Bright red bin lid cant be detected HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swatch.