Open abizer opened 7 years ago
wrt cameras, we probably should probably only store the id, blink_id, name, location of the camera, in the db. Battery health can be found via an API call and cached/refreshed periodically by the server using functionality like this: https://github.com/ocf/ocfweb/blob/master/ocfweb/caching.py, https://github.com/ocf/ocfweb/blob/master/ocfweb/bin/run_periodic_functions.py.
wrt videos, it would need id, blink_id, camera_id, timestamp, s3_link.
and, instead of using django, we can do something very simple like this: http://flask.pocoo.org/docs/0.12/patterns/caching/
wrt cameras, we probably should probably only store the id, blink_id, name, location of the camera, in the db. Battery health can be found via an API call and cached/refreshed periodically by the server using functionality like this: https://github.com/ocf/ocfweb/blob/master/ocfweb/caching.py, https://github.com/ocf/ocfweb/blob/master/ocfweb/bin/run_periodic_functions.py.
wrt videos, it would need id, blink_id, camera_id, timestamp, s3_link.