- Install Python 2.7
- Install Pip
- Install Flask: pip install -U Flask
- Install Flask-RESTful: pip install flask-restful
- Open a shell and navigate to root of project
- Run `npm install`
- npm run start-backend
- Run
npm start
- Test with the endpoint
Parameters:
device_uuid (required)
end_time (epoch timestamp of the last time we want to return, default now)
window_time (window in seconds, default 60 seconds)
num_windows (number of windows i.e., data points, to return, default 10)
For example,
device_uuid = "abc", end_time = 1546300800, window_time = 60, num_windows = 10
would return 10 data points (timestamp, value) where each value would be the sum of bytes in that 60 second window, with the last window ending on 1546300800 (Jan 1st 2019 GMT).