Wemo

This extension allows you to turn a smart plug on and off and control anything else that is connected to it, things like a disco ball or a bubbles machine. This extension was inspired by Kreg Hanning's Wemo 2.0 Scratch Extension but the code was modified for Scratch 3.0 and adapted especially for Cognimates project's needs.

More about the Wemo extension

  • Just like Smart Lights, to control a wemo switch, you will need to open codelab with Chrome's "incognito mode". Follow these steps to do so:

    1. First, open a new icognito window.

    2. Second, copy and paste this into the browser: codelab.cognimates.me



    3. If your browser looks like the image above, then you have opened codelab in http successfully! Note that you cannot use your camera or microphone on the http version of the codelab. This is a rule set by Google Chrome for security reasons.

  • You will also have to download and run this server file to connect to your Wemo Switch: wemoSwitch.js You can run this file using the command "node wemoSwitch.js". For instructions for installing Node into your computer, click this link here.

  • After running the above command, if you see the following text: Server running on localhost:3000 followed by Wemo Device Found, then congrats! You have set up wemo correctly and can now use it with Cognnimates.