Commit graph

  • 3c727ffd66 added goreport badge master BroodjeAap 2020-10-25 11:47:22 +01:00
  • af35dd44c9 fixed two ineffassign warnings BroodjeAap 2020-10-25 11:45:47 +01:00
  • f8c6d7fc4d ran gofmt -s BroodjeAap 2020-10-25 11:42:56 +01:00
  • 1697cbf1c7 added Dockerfile (that doesn't build) BroodjeAap 2020-08-18 19:06:27 +00:00
  • fc6c54c834 removed some unused functions from util BroodjeAap 2020-08-18 19:05:57 +00:00
  • 62ac74c782 added some more comments to stream.go BroodjeAap 2020-08-18 19:02:41 +00:00
  • 31aaa3db30 removed base64 field from Stream struct because it was unused BroodjeAap 2020-08-18 18:40:21 +00:00
  • e1e4df6ad5 fixed a bug where the last moment wasn't added to the moment list BroodjeAap 2020-08-18 18:39:26 +00:00
  • 0c7a34db51 removed filelock field from Stream BroodjeAap 2020-08-18 18:25:26 +00:00
  • 8c29d47eeb added some comments to main.go BroodjeAap 2020-08-18 18:23:08 +00:00
  • bbb4392783 added go.mod again, but with pinned 0.23.0 gocv BroodjeAap 2020-08-18 17:46:58 +00:00
  • 54e514a4c1 added starting message BroodjeAap 2020-08-15 14:54:37 +00:00
  • 2d6634db29 removed go.mod, messes eeeverything up, don't want to figure that out... BroodjeAap 2020-08-13 18:46:25 +00:00
  • d046454654 added go.mod BroodjeAap 2020-08-13 18:18:18 +00:00
  • 1e29266836 switched to time.RFC3339Nano for timeformat, does something weird on disk, but works otherwise and better accuracy for sub second motionIntervals BroodjeAap 2020-08-13 18:00:58 +00:00
  • 054ec0e56b changed submit method of the addWatchArea form to POST BroodjeAap 2020-08-13 17:55:51 +00:00
  • 8b001243c5 switched to 'input' update for motionInterval on add_stream page BroodjeAap 2020-08-13 17:44:46 +00:00
  • c19812a181 removed some left over debug prints BroodjeAap 2020-08-09 15:39:17 +00:00
  • 7900aed983 added nulling of _watchArea to save some memory BroodjeAap 2020-08-09 15:26:40 +00:00
  • 82031fbce9 also switched to json.Marshal at backend for watchAreas on stream page BroodjeAap 2020-08-09 15:25:50 +00:00
  • 5978e560f0 creating moments json in backend with json.Marshal instead of looping in template BroodjeAap 2020-08-09 15:12:03 +00:00
  • 5b26865959 fancied up the slider a bit BroodjeAap 2020-08-09 14:50:10 +00:00
  • c9edab1d7d stop the interval when the slider has been used BroodjeAap 2020-08-09 14:39:04 +00:00
  • 0f19dddb30 working 'play' functionality for a moment BroodjeAap 2020-08-06 18:26:20 +00:00
  • 5059efb3c9 working interface for selecting different moments BroodjeAap 2020-08-06 18:15:11 +00:00
  • e4102dccb9 added basic 'scrolling' through a moment with a range input BroodjeAap 2020-08-04 19:53:41 +00:00
  • b6dcd6a93b got basic 'moments' page working, showing the moments when motion was detected BroodjeAap 2020-08-04 19:26:29 +00:00
  • ee0f8815fc only accept POSTed watchareas BroodjeAap 2020-08-04 19:09:01 +00:00
  • fe23fd2355 in between commit for the 'moments' page BroodjeAap 2020-08-02 15:53:24 +00:00
  • 65ce667185 cleaned up stream urls in menu a bit BroodjeAap 2020-08-02 14:33:07 +00:00
  • 8d8853800c added streams to template execution for side menu list BroodjeAap 2020-08-02 14:19:08 +00:00
  • 506c4d6a15 more css BroodjeAap 2020-08-02 13:26:58 +00:00
  • 40de52babd some more css changes BroodjeAap 2020-08-02 13:14:29 +00:00
  • 21a7441b46 moved canvas resizing to seperate function BroodjeAap 2020-07-30 18:36:33 +00:00
  • 70ff965170 got canvas resizing working with the watcharea coordinates BroodjeAap 2020-07-30 18:34:14 +00:00
  • 87b50bdeb2 added proper sizing/resizing of stream images with new layout BroodjeAap 2020-07-30 18:14:26 +00:00
  • b3959ee720 added content class to base.html BroodjeAap 2020-07-28 19:56:58 +00:00
  • e028e90e96 added content class to base.html BroodjeAap 2020-07-28 19:37:36 +00:00
  • f6f52673ea started work moving to flexbox layout BroodjeAap 2020-07-28 19:32:57 +00:00
  • c871bb564f some css stuff BroodjeAap 2020-07-27 20:00:47 +00:00
  • 0a2f7ddc61 added js file missing from previous commit BroodjeAap 2020-07-26 20:47:22 +00:00
  • 63aae590d5 added inputs for interval/motion interval on the addStream page BroodjeAap 2020-07-25 13:19:17 +00:00
  • f8b13dc3ef added 'MotionInterval' that is used instead of 'Interval' when motion is detected on a Stream BroodjeAap 2020-07-25 12:39:19 +00:00
  • 3e2e9a8182 removed some commented out code BroodjeAap 2020-07-25 12:16:33 +00:00
  • b0a900f36f added exponential sleep time if there is a timeout for a stream BroodjeAap 2020-07-25 12:08:52 +00:00
  • ddf6ffb4c8 removed most 'Fatal' usage, so that things keep going when something goes wrong BroodjeAap 2020-07-25 11:24:33 +00:00
  • fd287d7ab8 removed filelock from json BroodjeAap 2020-07-25 11:18:58 +00:00
  • 27d0297c80 moved loading Streams from json to a function BroodjeAap 2020-07-25 11:16:40 +00:00
  • 3579788727 Switching to map[string]*Stream and making all Stream methods (s * Stream) worked BroodjeAap 2020-07-14 19:57:11 +00:00
  • f9a6c37350 mostly working addWatchArea system, somehow wont actually add the watcharea to the WatchAreas list in a Strea, goroutine problem? BroodjeAap 2020-07-12 19:54:05 +00:00
  • a88837f90f watcharea rows match color of watcharea BroodjeAap 2020-07-12 18:48:27 +00:00
  • a6864c1928 added existing watchareas to canvas BroodjeAap 2020-07-12 18:43:59 +00:00
  • 7206c087d5 renamed 'rectangles' class and variables to WatchArea BroodjeAap 2020-07-12 18:32:19 +00:00
  • b159278efe switched a Rectangle class in javascript BroodjeAap 2020-07-12 18:27:59 +00:00
  • d4d0ba593d frontend of watchareas mostly done BroodjeAap 2020-07-12 18:17:46 +00:00
  • cef301d7f4 added 'head' section to add_stream.html BroodjeAap 2020-07-12 17:04:44 +00:00
  • e774c1d21d refactored a bunch of http endpoints to static file access (previous/debug/next etc) BroodjeAap 2020-07-12 15:11:50 +00:00
  • 9707f46259 added 'head' tag to base.html, moved stream.js import there for stream.html BroodjeAap 2020-07-12 14:44:58 +00:00
  • 1a4f3e8227 refactored to single area per WatchArea BroodjeAap 2020-07-12 14:43:32 +00:00
  • eb11a50d08 display watches on stream page BroodjeAap 2020-07-12 14:07:22 +00:00
  • 91f042e1bb can draw rects on the canvas BroodjeAap 2020-07-12 13:53:23 +00:00
  • 8a8285240a currentColor stream display is now in a canvas BroodjeAap 2020-07-12 13:38:04 +00:00
  • 664fe5c22d updated to name based ID for streams instead of url BroodjeAap 2020-07-12 12:32:48 +00:00
  • 5d99649696 added 'addStream' page BroodjeAap 2020-07-12 12:04:44 +00:00
  • 97bbceea8a got watch areas working with current frames being copied to directories BroodjeAap 2020-07-11 20:07:33 +00:00
  • f4099dc4f5 moved areas to a seperate Watch struct BroodjeAap 2020-07-11 15:30:38 +00:00
  • 1582a4714d UpdateInterval called instead of Update on first stream run BroodjeAap 2020-07-11 14:46:06 +00:00
  • 30d693d0fe added motion detection in areas, move to Area structs probably BroodjeAap 2020-07-11 14:38:17 +00:00
  • 308b966119 debug IMReadColor broodjeaap 2020-07-11 16:06:44 +02:00
  • f71fb6a14a added a map of area name -> area list to Stream BroodjeAap 2020-07-11 13:15:00 +00:00
  • 409556604e fixed a bug in first start where CurrentColor was IMRead when it didn't exist yet BroodjeAap 2020-07-11 12:59:47 +00:00
  • 35d1a75eda got a area display working with overlapping contours highlighted BroodjeAap 2020-07-11 12:53:20 +00:00
  • c383046fa2 rearranged stream page layout BroodjeAap 2020-07-11 11:32:30 +00:00
  • 0d7faa4397 added debug endpoint that gets a debug.jpg BroodjeAap 2020-07-11 11:27:53 +00:00
  • dd86398394 removed instant update stuff from stream BroodjeAap 2020-07-11 11:15:07 +00:00
  • 280b3327bf grey scale is now properly saved to disk as current BroodjeAap 2020-07-11 11:06:08 +00:00
  • a0ae04c494 updated Update() doc BroodjeAap 2020-07-09 19:59:39 +00:00
  • 0583189645 added http endpoints for previous/current/currentColor from disk BroodjeAap 2020-07-09 19:57:30 +00:00
  • 79273b2c0d added base html template BroodjeAap 2020-07-09 19:31:00 +00:00
  • df08e944b9 added global vars for templates BroodjeAap 2020-07-09 19:13:28 +00:00
  • 69d30587cb added mutex to SaveStreamInstant to prevent weirdness BroodjeAap 2020-07-09 19:03:38 +00:00
  • 8f4d46bc3f Update now gets a new instant (not with GetStreamInstant) and uses SaveStreamInstant to save BroodjeAap 2020-07-09 19:01:49 +00:00
  • 4a196a21b2 GetStreamInstant returns a Mat now BroodjeAap 2020-07-09 18:42:58 +00:00
  • eb8b0d4d61 removed URL parameter from GetStreamInstant BroodjeAap 2020-07-09 18:24:17 +00:00
  • 40fafe91e5 update ticks are started at startup and when a new stream is added BroodjeAap 2020-07-07 20:14:25 +00:00
  • 863d9e3577 have a server struct with a map of streams that update based on their interval BroodjeAap 2020-07-07 20:05:45 +00:00
  • 94c248ba7a moved GetStreamDir to util BroodjeAap 2020-07-07 19:37:39 +00:00
  • 79c7e03620 more cleanup BroodjeAap 2020-07-07 19:04:12 +00:00
  • 93f416403e more stuff to Stream BroodjeAap 2020-07-07 18:38:20 +00:00
  • b8ea9750bf fixed naming of 'last' to 'next' BroodjeAap 2020-07-07 18:23:55 +00:00
  • d3f79abcae added streams dir to air exclude BroodjeAap 2020-07-07 18:14:35 +00:00
  • 2086989d58 moved some more stuff to the Stream struct BroodjeAap 2020-07-07 18:13:41 +00:00
  • bf1f49302e moved some stuff around, added Stream struct/class BroodjeAap 2020-07-07 17:58:06 +00:00
  • 914210f644 added a Stream struct with the meta data of a stream BroodjeAap 2020-07-06 20:02:05 +00:00
  • 1afed82777 made saving the stream instant async BroodjeAap 2020-07-06 19:50:36 +00:00
  • bd69f7b914 cleaned up some code BroodjeAap 2020-07-06 19:49:48 +00:00
  • 7a8a7dc631 got basic motion detection working BroodjeAap 2020-07-06 18:42:38 +00:00
  • 9b93c889eb removed badge, testing is broken... BroodjeAap 2020-07-06 18:01:36 +00:00
  • 197be0b570 fix test with new image (?) BroodjeAap 2020-07-06 17:51:10 +00:00
  • b208dfab32 fix test with new image (?) BroodjeAap 2020-07-06 17:49:35 +00:00