The MIT License (MIT)
Copyright (c) 2018 Massachusetts Institute of Technology

Author: Cody Rude
This software has been created in projects supported by the US National
Science Foundation and NASA (PI: Pankratius)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


In [1]:
%matplotlib inline

In [2]:
import matplotlib.pyplot as plt
plt.rcParams['figure.dpi'] = 150

Access Webcams from the MIT Sailing Pavilion
http://sailing.mit.edu/webcam.php


In [3]:
import numpy as np

In [4]:
from skdaccess.framework.param_class import *
from skdaccess.engineering.webcam.mit_sailing.stream import DataFetcher as SailDF

In [5]:
df = SailDF()

In [6]:
dw = df.output()


Downloading http://sailing.mit.edu/img/E/latest.jpg [Done]
Downloading http://sailing.mit.edu/img/SE/latest.jpg [Done]
Downloading http://sailing.mit.edu/img/SW/latest.jpg [Done]
Downloading http://sailing.mit.edu/img/W/latest.jpg [Done]

In [7]:
for label, data in dw.getIterator():
    fig = plt.figure()
    plt.title(label);
    plt.imshow(data);



In [ ]: