Skip to content

Data Models

lelandmiller edited this page Sep 18, 2014 · 8 revisions

This page contains an overview of various data models used by the SlugCam network software.

Video

The video model exists in the videos collection of the database

{
    "cam": camera_name,
    "id": video_id,
    "videoUploaded": bool,
    "uploadTime": datetime
}

Camera

The camera module is used in the cameras collection and describes a camera node.

{
    "name": camera_name,
    "lat": camera_latitude,
    "lng": camera_longitude,
    "lastMessage": datetime,
    "lastVideo": datetime
}

Clone this wiki locally