This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import app from 'firebase/app' | |
import 'firebase/firestore' | |
import TimeAgo from 'javascript-time-ago' | |
// Load locale-specific relative date/time formatting rules. | |
import en from 'javascript-time-ago/locale/en' | |
// Add locale-specific relative date/time formatting rules. | |
TimeAgo.addLocale(en) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vision from '@google-cloud/vision' | |
import Jimp from 'jimp'; | |
import { unlinkSync } from 'fs'; | |
const PHOTOS_DIR = './photos' | |
const MOTION_PERCENT_THRESHOLD = .005 | |
// Maybe put this in some timed loop as imagse come in |