Discuss Scratch

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:
setLamp1to%
-Sets a device named by the first input by a percent in the percent input.
–0%-Off
–100%-On
ampsofWasher
-Tells how much energy something uses. (amps)
-Humidity (%) (humidity)
-Temp (Fahrenheit)
-Latitude (deg)
-Longitude (deg)
numberofattachments
-Tells how many devices are under your project.
Computermoved?
-Yields a 0 (no) or 1 (yes) if a device in the network has been moved.
setlight2ondeviceSpeakersto
-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)

wookie184
Scratcher
100+ posts

Connecting Scratch to Smart Home

it could be an extension in scratch 3.0. that would be cool
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

Jonny_cat wrote:

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.
Sounds cool!
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
cwkelliott47732
Scratcher
79 posts

Connecting Scratch to Smart Home

whenclickedforeverifpersonarrivesthenplaysoundAlert

Last edited by cwkelliott47732 (March 8, 2023 22:07:10)

cwkelliott47732
Scratcher
79 posts

Connecting Scratch to Smart Home

It is possible encoding cloud variables to react with video motion and loudness
AnAlgorithm
Scratcher
85 posts

Connecting Scratch to Smart Home

whenclickedforeveriflight=100thendecodelightsetmessagetodecodelight
Can we connect external computers to this via light?
Animation_Cloud
Scratcher
2 posts

Connecting Scratch to Smart Home

Wow last post 2020
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

Powered by DjangoBB