Things used in this project

Hardware components:
Google Home
×1
Phpoc blue per 100x1000 euk22wtv9i
PHPoC Blue
×1
Relay board t type jznmyjoo9g
PHPoC 4-Port Relay Expansion Board (T-type)
×1
Light Build
×1
Software apps and online services:
Q8wtlimqnp04fzhtr9v5
IFTTT Maker service

Code

index.phpPHP
This code handles HTTP request from IFTTT applet and turns on/off the light
<?php
	include_once "/lib/sd_spc.php";
	
	$text_ingredient  = _GET("state");
	$is_on = strpos($text_ingredient, "on");
	$is_off = strpos($text_ingredient, "off");
	
	if($is_on !== false || $is_off !== false)
	{
		spc_reset();
		spc_sync_baud(115200);
		if($is_on !== false)
	    		spc_request(14, 4, "set 0 output high");
	    	else
	    		spc_request(14, 4, "set 0 output low");
	}
?>

Credits

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Piano Hero Game Using Android Things
Easy
  • 282
  • 5

Learn to play the piano with a MIDI keyboard and Android Things that includes your favourite nursery rhymes and Disney songs.

Arduino - Web-Based Keypad
Easy
  • 3,941
  • 33

Full instructions

Remotely controlling Arduino by using web-based keypad.

PHPoC - Web-Based Joystick
Easy
  • 545
  • 12

Full instructions

This project shows how to control devices from anywhere using web-based joystick on smartphone and PHPoC.

Web-Based Pattern Unlock for IoT device
Easy
  • 790
  • 14

Full instructions

This project prevents unauthorized people from controlling devices by using unlock pattern.

PHPoC: Web-Based Thermometer
Easy
  • 708
  • 16

Full instructions

This project allows you to check the temperature at home from anywhere using a web browser.

Arduino - Web-Based Gauge
Easy
  • 1,653
  • 16

Full instructions

This project shows how to monitor Arduino using a web-based gauge.

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login