mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
wip
This commit is contained in:
parent
b282e320cc
commit
13fb9b2d0a
@ -37,7 +37,8 @@ RUN pip3 install \
|
|||||||
voluptuous\
|
voluptuous\
|
||||||
Flask-Sockets \
|
Flask-Sockets \
|
||||||
gevent \
|
gevent \
|
||||||
gevent-websocket
|
gevent-websocket \
|
||||||
|
debugpy
|
||||||
|
|
||||||
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
@ -57,5 +58,6 @@ RUN chmod +x /run.sh
|
|||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
EXPOSE 1935
|
EXPOSE 1935
|
||||||
|
EXPOSE 5678
|
||||||
|
|
||||||
CMD ["/run.sh"]
|
CMD ["/run.sh"]
|
||||||
|
|||||||
@ -35,7 +35,8 @@ RUN pip3 wheel --wheel-dir=/wheels \
|
|||||||
click \
|
click \
|
||||||
setproctitle \
|
setproctitle \
|
||||||
peewee \
|
peewee \
|
||||||
gevent
|
gevent \
|
||||||
|
debugpy
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
|
|||||||
@ -58,6 +58,8 @@ class LocalObjectDetector(ObjectDetector):
|
|||||||
|
|
||||||
edge_tpu_delegate = None
|
edge_tpu_delegate = None
|
||||||
|
|
||||||
|
tf_device = "cpu"
|
||||||
|
|
||||||
if tf_device != "cpu":
|
if tf_device != "cpu":
|
||||||
try:
|
try:
|
||||||
logger.info(f"Attempting to load TPU as {device_config['device']}")
|
logger.info(f"Attempting to load TPU as {device_config['device']}")
|
||||||
|
|||||||
@ -34,8 +34,8 @@ export default function Event({ eventId }) {
|
|||||||
debugger;
|
debugger;
|
||||||
const response = await fetch(`${apiHost}/api/events/${eventId}`, { method: 'DELETE' });
|
const response = await fetch(`${apiHost}/api/events/${eventId}`, { method: 'DELETE' });
|
||||||
debugger;
|
debugger;
|
||||||
const deleteEvent = await response.json();
|
const deleteEvent = await getJSON(response)
|
||||||
|
debugger;
|
||||||
success = deleteEvent.success;
|
success = deleteEvent.success;
|
||||||
debugger;
|
debugger;
|
||||||
setDeleteStatus(success ? FetchStatus.LOADED : FetchStatus.ERROR);
|
setDeleteStatus(success ? FetchStatus.LOADED : FetchStatus.ERROR);
|
||||||
@ -44,6 +44,11 @@ export default function Event({ eventId }) {
|
|||||||
setDeleteStatus(FetchStatus.ERROR);
|
setDeleteStatus(FetchStatus.ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function getJSON(response) {
|
||||||
|
if (response.status === 204) return {success: true};
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
setDeleteStatus(FetchStatus.LOADED);
|
setDeleteStatus(FetchStatus.LOADED);
|
||||||
setShowDialog(false);
|
setShowDialog(false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user