Commit graph

107 commits

Author SHA1 Message Date
BroodjeAap
1e29266836 switched to time.RFC3339Nano for timeformat, does something weird on disk, but works otherwise and better accuracy for sub second motionIntervals 2020-08-13 18:00:58 +00:00
BroodjeAap
054ec0e56b changed submit method of the addWatchArea form to POST 2020-08-13 17:55:51 +00:00
BroodjeAap
8b001243c5 switched to 'input' update for motionInterval on add_stream page 2020-08-13 17:44:46 +00:00
BroodjeAap
c19812a181 removed some left over debug prints 2020-08-09 15:39:17 +00:00
BroodjeAap
7900aed983 added nulling of _watchArea to save some memory 2020-08-09 15:26:40 +00:00
BroodjeAap
82031fbce9 also switched to json.Marshal at backend for watchAreas on stream page 2020-08-09 15:25:50 +00:00
BroodjeAap
5978e560f0 creating moments json in backend with json.Marshal instead of looping in template 2020-08-09 15:12:03 +00:00
BroodjeAap
5b26865959 fancied up the slider a bit 2020-08-09 14:50:10 +00:00
BroodjeAap
c9edab1d7d stop the interval when the slider has been used 2020-08-09 14:39:04 +00:00
BroodjeAap
0f19dddb30 working 'play' functionality for a moment 2020-08-06 18:26:20 +00:00
BroodjeAap
5059efb3c9 working interface for selecting different moments 2020-08-06 18:15:11 +00:00
BroodjeAap
e4102dccb9 added basic 'scrolling' through a moment with a range input 2020-08-04 19:53:41 +00:00
BroodjeAap
b6dcd6a93b got basic 'moments' page working, showing the moments when motion was detected 2020-08-04 19:26:29 +00:00
BroodjeAap
ee0f8815fc only accept POSTed watchareas 2020-08-04 19:09:01 +00:00
BroodjeAap
fe23fd2355 in between commit for the 'moments' page 2020-08-02 15:53:24 +00:00
BroodjeAap
65ce667185 cleaned up stream urls in menu a bit 2020-08-02 14:33:07 +00:00
BroodjeAap
8d8853800c added streams to template execution for side menu list 2020-08-02 14:19:08 +00:00
BroodjeAap
506c4d6a15 more css 2020-08-02 13:26:58 +00:00
BroodjeAap
40de52babd some more css changes 2020-08-02 13:14:29 +00:00
BroodjeAap
21a7441b46 moved canvas resizing to seperate function 2020-07-30 18:36:33 +00:00
BroodjeAap
70ff965170 got canvas resizing working with the watcharea coordinates 2020-07-30 18:34:14 +00:00
BroodjeAap
87b50bdeb2 added proper sizing/resizing of stream images with new layout 2020-07-30 18:14:26 +00:00
BroodjeAap
b3959ee720 added content class to base.html 2020-07-28 19:56:58 +00:00
BroodjeAap
e028e90e96 added content class to base.html 2020-07-28 19:37:36 +00:00
BroodjeAap
f6f52673ea started work moving to flexbox layout 2020-07-28 19:32:57 +00:00
BroodjeAap
c871bb564f some css stuff 2020-07-27 20:00:47 +00:00
BroodjeAap
0a2f7ddc61 added js file missing from previous commit 2020-07-26 20:47:22 +00:00
BroodjeAap
63aae590d5 added inputs for interval/motion interval on the addStream page 2020-07-25 13:19:17 +00:00
BroodjeAap
f8b13dc3ef added 'MotionInterval' that is used instead of 'Interval' when motion is detected on a Stream 2020-07-25 12:39:19 +00:00
BroodjeAap
3e2e9a8182 removed some commented out code 2020-07-25 12:16:33 +00:00
BroodjeAap
b0a900f36f added exponential sleep time if there is a timeout for a stream 2020-07-25 12:08:52 +00:00
BroodjeAap
ddf6ffb4c8 removed most 'Fatal' usage, so that things keep going when something goes wrong 2020-07-25 11:24:33 +00:00
BroodjeAap
fd287d7ab8 removed filelock from json 2020-07-25 11:18:58 +00:00
BroodjeAap
27d0297c80 moved loading Streams from json to a function 2020-07-25 11:16:40 +00:00
BroodjeAap
3579788727 Switching to map[string]*Stream and making all Stream methods (s * Stream) worked 2020-07-14 19:57:11 +00:00
BroodjeAap
f9a6c37350 mostly working addWatchArea system, somehow wont actually add the watcharea to the WatchAreas list in a Strea, goroutine problem? 2020-07-12 19:54:05 +00:00
BroodjeAap
a88837f90f watcharea rows match color of watcharea 2020-07-12 18:48:27 +00:00
BroodjeAap
a6864c1928 added existing watchareas to canvas 2020-07-12 18:43:59 +00:00
BroodjeAap
7206c087d5 renamed 'rectangles' class and variables to WatchArea 2020-07-12 18:32:19 +00:00
BroodjeAap
b159278efe switched a Rectangle class in javascript 2020-07-12 18:27:59 +00:00
BroodjeAap
d4d0ba593d frontend of watchareas mostly done 2020-07-12 18:17:46 +00:00
BroodjeAap
cef301d7f4 added 'head' section to add_stream.html 2020-07-12 17:04:44 +00:00
BroodjeAap
e774c1d21d refactored a bunch of http endpoints to static file access (previous/debug/next etc) 2020-07-12 15:11:50 +00:00
BroodjeAap
9707f46259 added 'head' tag to base.html, moved stream.js import there for stream.html 2020-07-12 14:44:58 +00:00
BroodjeAap
1a4f3e8227 refactored to single area per WatchArea 2020-07-12 14:43:32 +00:00
BroodjeAap
eb11a50d08 display watches on stream page 2020-07-12 14:07:22 +00:00
BroodjeAap
91f042e1bb can draw rects on the canvas 2020-07-12 13:53:23 +00:00
BroodjeAap
8a8285240a currentColor stream display is now in a canvas 2020-07-12 13:38:04 +00:00
BroodjeAap
664fe5c22d updated to name based ID for streams instead of url 2020-07-12 12:33:14 +00:00
BroodjeAap
5d99649696 added 'addStream' page 2020-07-12 12:04:44 +00:00