Google Assistant -> IFTTT -> GAS -> IRKitで家電をリモコン操作するためのスクリプト。 @howdy39様のgas-clasp-starterをお借りしています。
git clone https://github.com/s-higuma/irkit-gas.git
cd irkit-gas
npm install
What is scriptId ? https://github.com/google/clasp#scriptid-required
{
"scriptId": <your_script_id>,
"rootDir": "dist"
}
{
"timeZone": "Asia/Tokyo", ## Change timeZone
"dependencies": {
},
"webapp": {
"access": "ANYONE_ANONYMOUS",
"executeAs": "USER_DEPLOYING"
},
"exceptionLogging": "STACKDRIVER",
"executionApi": {
"access": "ANYONE"
}
}
{
"sheet_id": "<your google spread sheet id>",
"post_url": "https://api.getirkit.com/1/messages",
"clientkey": "<your irkit clientkey>",
"deviceid": "<your irkit deviceid>"
}
Go https://getirkit.com/ and check POST /1/keys
API
npm run build
clasp push