This blog is to help more developer to make use of Sintron Smart device and help developer's business to grow up

Monday, 24 June 2019

Sintron IOT - How to embed Smart Plug & Smart Device into website pages


Demo

Below is one example to show you how to embed the Sintron Smart Device to your webpage. you can click and see how it reacts. this would require you to have some basic HTML skills, and put the javascript in. the html and javascript as below:

Sintron Smart Plug / Outlet Website embeded Click the button to trigger the light from Sintron Smart Plug.









below is a video to show how it works:




Download HTML Sample


please remember to change the turn on and turn off command to be yours:

  function officelighton(){
        var url = "https://sintron.vip/?host=google&username=sintron&auth=81aa151057ed4cd1ba76bb6d54483092&led=D13&pin=D14&action=on"


and

  function officelightoff(){
        var url = "https://sintron.vip/?host=google&username=sintron&auth=81aa151057ed4cd1ba76bb6d54483092&led=D13&pin=D14&action=off"


then copy & paste the code to your website ( in between <body> of html ). then it should work.

Share:

0 comments:

Post a Comment

Sintron

Search This Blog

Powered by Blogger.

Blog Archive

Sintron ST-031 Open Source Smart Controller Instruction - how to DIY your smart plug / device

this is the instruction for Sintron ST-031 Smart controller. with this instruction. you will know how to use ST-031 to remote control with y...

Labels