mjehrhart / viewu

The Viewu App is a compact, user-friendly iOS application designed to integrate seamlessly with Frigate NVR systems.
https://www.viewu.app
GNU General Public License v3.0
53 stars 1 forks source link

Issues connecting to frigate. #44

Open Newklngjames opened 1 month ago

Newklngjames commented 1 month ago

I posted this on Reddit and was asked to post my config file here. Please let me know if there is anything else you need from me.

Issues connecting to frigate

I am hoping someone here can help me out. I tried installing viewu and I am having some issues. Mqtt is showing connected. In my timeline I am seeing several notifications per minute, but there is nothing for me to view. It is showing that I am connected to in nvr settings to my domain via cloud flair. Don’t need a port to access home assistant. I have also tried to add an entry for frigate to its port. However, there are no cameras listed. Is there something that I am missing? I can’t select all of the logs at once, but here are a couple plus some screenshots. I can do more if needed. Thanks in advance for the help!

table "events" already exists (code: 1)

duplicate column name: subLabel (code: 1)

duplicate column name: currentZones (code: 1)

duplicate column name: enteredZones (code: 1)

duplicate column name: frigtePlus (code: 1)

dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character '<' around line 1, column 1." UserInfo={NSDebugDescription=Unexpected character '<' around line 1, column 1., NSJSONSerializationErrorIndex=0})))

dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character '<' around line 1, column 1." UserInfo={NSJSONSerializationErrorIndex=0, NSDebugDescription=Unexpected character '<' around line 1, column 1.})))

Error Domain=NSCocoaErrorDomain Code=3840 "Invalid value around line 1, column 0." UserInfo={NSDebugDescription=Invalid value around line 1, column 0., NSJSONSerializationErrorIndex=0}

dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character '<' around line 1, column 1." UserInfo={NSDebugDescription=Unexpected character '<' around line 1, column 1., NSJSONSerializationErrorIndex=0})))

dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character '<' around line 1, column 1." UserInfo={NSJSONSerializationErrorIndex=0, NSDebugDescription=Unexpected character '<' around line 1, column 1.})))

frigate config file: mqtt: host: core-mosquitto

port: 1883

topic_prefix: frigate client_id: frigate user: mqtt password: nZ7fTGuIT92q221

stats_interval: 60

test

database: path: /config/frigate.db

snapshots: enabled: true clean_copy: true bounding_box: true crop: true height: 500 retain: default: 5 objects: track:

cameras: driveway: # <------ Name the camera enabled: true ffmpeg: inputs:

doorbell: # <------ Name the camera

enabled: true

ffmpeg:

inputs:

- path: rtsp://192.168.1.199:34031/34679ef6fb2ed3e4 # <----- The stream you want to use for detection

roles:

- detect

- record

detect:

enabled: true # <---- disable detection until you have a working camera feed

fps: 5

record:

enabled: true

retain:

days: 3

events:

retain:

default: 30

mode: active_objects

zones:

walk:

coordinates: 1044,495,1227,511,1186,720,445,720,443,572

objects:

- person

- dog

- cat

- mouse

zones:
  Nope:
    coordinates: 0.016,0.525,1,0.546,1,1,0.016,0.95
    loitering_time: 0
    objects: mouse
review:
  alerts:
    required_zones: Nope
  detections:
    required_zones: Nope

detectors: coral: type: edgetpu device: usb

version: 0.14 camera_groups: Front: order: 1 icon: LuCar cameras:

partytimeexcellent commented 2 weeks ago

I love how the dude quickly responds to Reddit comments but is completely absent here. He did the same to me. I also never got this working with FQDN (Cloudflare Tunnel). Seems abandoned, aside from the weird Reddit activity.