由於現在Internet of Thing(物聯網)發展快速,希望設備資訊狀態能透過通訊能隨時監測的狀況下,也越來越多的雲端IOT資料平台,例如現在要用的ThingSpeak,把Raspberry Pi上的溫濕度透過網路傳送到ThingSpeak網站上,然後就可以透過網站就可以即時知道目前Raspberry Pi的溫濕度狀況,接下來先申請ThingSpeak的帳號
channel建立好了,接下來就是要傳送資料到這個channel,在功能列的地方,選「API Keys」,會看到Write API Keys及Read API Keys,右下角有一個「API Requests」區塊,已經提供可以馬上使用的API網址,就可以透過網址,填入key及field的值就可以把資料上傳,當然要上傳資料就要使用「Update a Channel Feed」這串網址「https://api.thingspeak.com/update?api_key=Q8BGENDUC797GENI&field1=0 」,另外這個key值非常重要,api只認key,不認使用者帳號,所以key值給了別人,就可以對該key值的channel做更新,如果要更換key值,只要在點選key值下方的「Generate) New ... API Key」就可以產生新的key值