Discuss Scratch
- Discussion Forums
- » Suggestions
- » Connecting Scratch to Smart Home
- thegamist
- Scratcher
29 posts
Connecting Scratch to Smart Home
Just like Amazon Fire and Alexa, why not Scratch and Roblox? Smart home would be good! The bad thing would be…You always need an account for this. Sign in to your Scratch account in the machines for them to operate. They will have names, too. Let's say you want to turn on the lights. You also need to put the project's serial number into the machines for them to work with your project. To turn on the lights, follow these steps:
1. Load the script in your project.
2. Install the plugin (binary for Chrome)
3. Plug in your main Scratch Smart Home USB plug into your computer.
4. Sign in to the adapter plugged in to your lamp (real-life)
5. Make sure your script used the right blocks and can be activated.
6. Click the green flag and make sure the computer is signed in to your account.
The system is a network of devices. Your USB plugs into the computer. The devices around your house contain your account, so they can connect. They are named, so in your blocks, you can use their names to do things with them.
Blocks below:
–0%-Off
–100%-On
-Humidity (%) (humidity)
-Temp (Fahrenheit)
-Latitude (deg)
-Longitude (deg)
1. Load the script in your project.
2. Install the plugin (binary for Chrome)
3. Plug in your main Scratch Smart Home USB plug into your computer.
4. Sign in to the adapter plugged in to your lamp (real-life)
5. Make sure your script used the right blocks and can be activated.
6. Click the green flag and make sure the computer is signed in to your account.
The system is a network of devices. Your USB plugs into the computer. The devices around your house contain your account, so they can connect. They are named, so in your blocks, you can use their names to do things with them.
Blocks below:
set [Lamp1] to ()%-Sets a device named by the first input by a percent in the percent input.
–0%-Off
–100%-On
([amps] of [Washer])-Tells how much energy something uses. (amps)
-Humidity (%) (humidity)
-Temp (Fahrenheit)
-Latitude (deg)
-Longitude (deg)
(number of attachments)-Tells how many devices are under your project.
<[Computer] moved?>-Yields a 0 (no) or 1 (yes) if a device in the network has been moved.
set light (2) on device [Speakers] to [#fd0000]-All devices have 5 LEDs. Connects to LED (1st input) on a device to a color.
- bbciplayer
- Scratcher
500+ posts
Connecting Scratch to Smart Home
Wow, I wish this was real, it sounds cool!
Last edited by bbciplayer (June 24, 2018 14:56:32)
i am mostly inactive on this site but still check in ocassionally!
11 years of scratching <3
- wookie184
- Scratcher
100+ posts
Connecting Scratch to Smart Home
it could be an extension in scratch 3.0. that would be cool
Google Chrome Version 76.0.3809.132 (Official Build) (64-bit)
I've been programming with Scratch for over 5 years, more recently i have learned Python and i am currently experimenting with c++
- Jonny_cat
- New Scratcher
1 post
Connecting Scratch to Smart Home
I am working on scratch to philips hue. The hue api uses html GET, PUT, POST, etc. and I think that “Extension” is the way forward. Another few weeks and the grand kids should be programing the lights. Though I don't know if I will like green lights.
- wookie184
- Scratcher
100+ posts
Connecting Scratch to Smart Home
Sounds cool! I am working on scratch to philips hue. The hue api uses html GET, PUT, POST, etc. and I think that “Extension” is the way forward. Another few weeks and the grand kids should be programing the lights. Though I don't know if I will like green lights.
Google Chrome Version 76.0.3809.132 (Official Build) (64-bit)
I've been programming with Scratch for over 5 years, more recently i have learned Python and i am currently experimenting with c++
- NutageGaita
- Scratcher
16 posts
Connecting Scratch to Smart Home
it would be a bit more practical for it to be on ScratchX.
scratchx.org/#scratch
it uses the 2.0 interface
scratchx.org/#scratch
it uses the 2.0 interface
Some of my cool things (coming soon maybe):
Scrat Run Demo 2A
Grid Brick
Ants A Platformer
Click on the links to play!
- cwkelliott47732
- Scratcher
79 posts
Connecting Scratch to Smart Home
when green flag clicked
forever
if <person arrives> then
play sound [Alert v]
end
end
Last edited by cwkelliott47732 (March 8, 2023 22:07:10)
be low contrast
when gf clicked
forever
set [Scratch v] to [#4d97ff]
set [Bad v] to [#855cd6]
end
- cwkelliott47732
- Scratcher
79 posts
Connecting Scratch to Smart Home
It is possible encoding cloud variables to react with video motion and loudness
be low contrast
when gf clicked
forever
set [Scratch v] to [#4d97ff]
set [Bad v] to [#855cd6]
end
- AnAlgorithm
- Scratcher
85 posts
Connecting Scratch to Smart Home
when green flag clickedCan we connect external computers to this via light?
forever
if <[light] = [100]> then
decode (light)
set [message] to (decode(light))
end
end
- @AnAlgorithm
This is my signature. It comes below every post I make.
To see my full signature, select this text and press Shift+Down arrow.
Check out my projects:
☠️ eaten by an evil kumquat…
Last edited by kaj (Tomorrow 00:00:00)
;
- phidgeteer
- New Scratcher
4 posts
Connecting Scratch to Smart Home
Smart home projects can be done with Phidgets. E.g. measure light using a Light Phidget, and turn on a lamp using a Power Plug Phidget. This can be done with the Scratch library by Phidgets: https://www.phidgets.com/education/scratch/
- Jerry2909
- Scratcher
51 posts
Connecting Scratch to Smart Home
Wish this was real in Scratch 4.0, then I could prank my friends on Halloween by flickering the lights
i just love to code-bloop
switch costume to [Pico-a]
- Discussion Forums
- » Suggestions
- » Connecting Scratch to Smart Home