Go to file
Mark Cotton cc4d33d91e pulling in changes from EE-downloader-v3, trying to solve unauthenticated response on first request after login 2023-08-31 06:28:56 -05:00
static added a new demo movie on the landing page 2023-08-07 17:22:22 -06:00
templates fixes #14 2023-08-24 14:40:11 -05:00
.gitignore ignoring settings.py and tweaking routes output 2023-08-29 14:51:50 -05:00
Dockerfile docker-izing it so it can be deployed 2023-07-14 12:06:57 -05:00
LICENSE added MIT license 2023-08-09 07:33:52 -06:00
README.md moving some configuration values into settings file 2023-07-27 22:57:17 -06:00
app.py pulling in changes from EE-downloader-v3, trying to solve unauthenticated response on first request after login 2023-08-31 06:28:56 -05:00
docker-compose.yaml docker-izing it so it can be deployed 2023-07-14 12:06:57 -05:00
requirements.txt using the new url escaping in EagleEyev3 0.0.18 2023-08-30 09:01:40 -05:00
startup.sh docker-izing it so it can be deployed 2023-07-14 12:06:57 -05:00
tests.py added some additional methods, and ChatGPT tests 2023-05-29 16:33:44 -05:00
wsgi.py docker-izing it so it can be deployed 2023-07-14 12:06:57 -05:00

README.md

EE-status-v3

Summary

This is a python webapp for getting status history for your cameras.

Settings File

There is file settings.py that is needed to run. It should look similar to this:

config = {

	# Set up your application and get client id/secrete first
	# https://developerv3.eagleeyenetworks.com/page/my-application
	"client_id": "",
	"client_secret": "",

	# you will need to add approved redirect_uris in your application
	# this examples assumes you've added http://127.0.0.1:3333/login_callback
	# change the following variables if you did something different
	# Note: do not use localhost for server_host, use 127.0.0.1 instead
	"server_protocol": "http",
	"server_host": "127.0.0.1", 
	"server_port": "3333",
	"server_path": "login_callback",

	# preferences
	"days_of_history": 1,
	"log_level": "INFO"
}

You can create your application and setup credentials at: [https://developerv3.eagleeyenetworks.com/page/my-application-html](my applications). You can also reach out to api_support@een.com for help.

Ideas on how to use

I encluded an example Flask server in app.py. You can run it locally with python flask run -p 3333 --debug

It uses server sessions to track your instance of the EagleEyev3 class but doesn't have any other storage. It uses the API as the source of truth.