This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding=utf-8 | |
import time | |
import json | |
import requests | |
#wiolink api配置 | |
wiolink_api = "https://cn.iot.seeed.cc/v1/node/GroveTempHumD0/temperature" | |
wiolink_token = "xxx" #请填入你的wiolink的token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# turn on relay with Grove_Relay | |
import requests | |
token = "your device token" # from you API on phone | |
url = "https://iot.seeed.cc/v1/node/GroveRelayD0/onOff/1?=access_token=%s" %token | |
r = request.post(url) | |
print r.json() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: task | |
version: 1 | |
worker: tornado |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# copyright 2015 seeed, [email protected] | |
import requests | |
import random | |
import time | |
indoor_access_token = "your indoor wiolink token" | |
outdoor_access_token = "your outdoor wiolink token" | |
INDOOR_DISPLAY_API = "https://cn.iot.seeed.cc/v1/node/GroveLedWs2812_Digital1/segment/" | |
OUTDOOR_DISPLAY_API = "https://cn.iot.seeed.cc/v1/node/GroveLedWs2812_Digital2/segment/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include <stdio.h> | |
void mian() | |
{ | |
printf("Hello world!"); | |
} |