Skip to content

Instantly share code, notes, and snippets.

function irucaAutoLogout() {
var iruca_room_code = "XXX";
var slack_url = "https://hooks.slack.com/services/XXX/XXX/XXX";
var data = JSON.parse(UrlFetchApp.fetch("https://iruca.co/api/rooms/" + iruca_room_code + "/members", {'method':'get', 'muteHttpExceptions':true}));
var update_flg = false;
var urlFetchOption = {};
var update_members = "";
var SLACK_API_TOKEN = PropertiesService.getScriptProperties().getProperty('SLACK_API_TOKEN');
var OUTGOING_TOKEN = PropertiesService.getScriptProperties().getProperty('OUTGOING_TOKEN');
var SPREADSHEET_ID = PropertiesService.getScriptProperties().getProperty('SPREADSHEET_ID');
var RECORD_SHEET_NAME = 'record';
var MEMBER_SHEET_NAME = 'member';
function doPost(e) {
if(OUTGOING_TOKEN == e.parameter.token && e.parameter.trigger_word == 'iine'){
#include <Nefry.h>
#define DELAY_TIME1 3400
#define DELAY_TIME2 460
#define DELAY_TIME3 570
#define DELAY_TIME4 510
#define PIN_MAGNET D2
#define PIN_BUZZER D4
#include <Nefry.h>
#define PIN_INSIDE D2
#define PIN_OUTSIDE D4
int state_inside;
int state_outside;
int state_inside_temp;
int state_outside_temp;
@ya-ma-cho
ya-ma-cho / doi.png
Last active February 23, 2018 10:16
innocafe_images_gist
doi.png
@ya-ma-cho
ya-ma-cho / innocafe35
Last active April 23, 2018 07:24
innocafe35
We couldn’t find that file to show.
InnoCAFE36
#include <M5Stack.h>
#include <WiFi.h>
#include <WiFiClient.h>
WiFiClient client;
// WiFi設定
const char* ssid = "*****";
const char* password = "*****";
#include <M5Stack.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>
WiFiClientSecure client;
//WiFi設定
const char* ssid = "******";
const char* password = "*****";