func (sys *SystemConfig) GetCamera(ID string) *Camera {
	cxn := sys.getDB()
	defer cxn.Close()

	row := cxn.QueryRow("select Name, ID, AspectRatio, Address, Diurnal, Dewarp, Latitude, Longitude, Timelapse, ImageURL, RTSPURL, Private from Cameras where ID=?", ID)

	c := &Camera{}
	err := row.Scan(&c.Name, &c.ID, &c.AspectRatio, &c.Address, &c.Diurnal, &c.Dewarp, &c.Latitude, &c.Longitude, &c.Timelapse, &c.StillURL, &c.RTSPURL, &c.Private)
	if err == sql.ErrNoRows {
		return nil
	}
	if err != nil {
		panic(err)
	}
	return c
}
// GetCamera fetches a specific Camera instance. If it returns a nil pointer but no error, that
// means there is no Camera associated with the provided ID.
GetCamera fetches a specific Camera instance. If it returns a nil pointer but no error, that
means there is no Camera associated with the provided ID.
// GetCamera fetches a specific Camera instance . If it returns a nil pointer but no error that // means there is no Camera associated with the provided ID .
func (sys *SystemConfig) GetCamera(ID string) *Camera {
	cxn := sys.getDB()
	defer cxn.Close()
	row := cxn.QueryRow("select Name, ID, AspectRatio, Address, Diurnal, Dewarp, Latitude, Longitude, Timelapse, ImageURL, RTSPURL, Private from Cameras where ID=?", ID)
	c := &Camera{}
	err := row.Scan(&c.Name, &c.ID, &c.AspectRatio, &c.Address, &c.Diurnal, &c.Dewarp, &c.Latitude, &c.Longitude, &c.Timelapse, &c.StillURL, &c.RTSPURL, &c.Private)
	if err == sql.ErrNoRows {
		return nil
	}
	if err != nil {
		panic(err)
	}
	return c
}
func ( sys * SystemConfig ) GetCamera ( ID string ) * Camera { cxn := sys . getDB ( ) defer cxn . Close ( ) row := cxn . QueryRow ( " " , ID ) c := & Camera { } err := row . Scan ( & c . Name , & c . ID , & c . AspectRatio , & c . Address , & c . Diurnal , & c . Dewarp , & c . Latitude , & c . Longitude , & c . Timelapse , & c . StillURL , & c . RTSPURL , & c . Private ) if err == sql . ErrNoRows { return nil } if err != nil { panic ( err ) } return c }
GetCamera fetches a specific Camera instance.
GetCamera fetches a specific Camera instance .