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
/* CodeZine: Grove IoT Starter Kit for SORACOM <grove-ultrasonic-ranger_soracom-harvest.ino> */ | |
#include <stdio.h> | |
#include <WioLTEforArduino.h> | |
WioLTE Wio; | |
#include <Ultrasonic.h> | |
#define ULTRASONIC_PIN (WIOLTE_D38) | |
#define INTERVAL (3000) | |
#define RECEIVE_TIMEOUT (10000) |
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
/* CodeZine: Grove IoT Starter Kit for SORACOM <grove-buzzer-with-mqtt-and-soracom-beam.ino> */ | |
#include <WioLTEforArduino.h> | |
#include <WioLTEClient.h> | |
#include <PubSubClient.h> // https://github.com/knolleary/pubsubclient | |
#include <stdio.h> | |
#define APN "soracom.io" | |
#define USERNAME "sora" | |
#define PASSWORD "sora" |
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
/* TemperatureAndHumidity Class for DHT11 ==== */ | |
class TemperatureAndHumidity | |
{ | |
public: | |
TemperatureAndHumidity(int pin); | |
bool Read(float* temperature, float* humidity); | |
private: | |
int _pin; | |
void DHT11Init(int pin); | |
void DHT11Start(int pin); |
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
""" | |
INPUT: API Gateway | |
required ENVs; | |
- OUTGOING_TOKEN: Slack's Outgoing Webhook Token | |
""" | |
import json | |
import logging | |
logger = logging.getLogger() |
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
""" | |
`event` is; | |
{ | |
"transition_wating_sec": <sec:Integer>, | |
"thing_name": <thingName:String> | |
} | |
""" | |
import json | |
import logging |
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
""" | |
required ENVs; | |
- INCOMING_WEBHOOK: Slack's Incoming Webhook URL | |
- PARSON_(SINGLE|DOUBLE|LONG): JSONfy String | |
{"name": <Display name and Thing name:String>, | |
"slack_id": <Slack member ID (see profile):String>} | |
e.g.) {"name":"max","slack_id":"UC0RVEWBZ"} | |
""" | |
import 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Call monitor</title> | |
<script src="//unpkg.com/vue/dist/vue.js"></script> | |
<script src="//unpkg.com/vue-i18n/dist/vue-i18n.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/aws-sdk/2.404.0/aws-sdk.min.js"></script> |
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
/* | |
* Copyright (c) 2019 Kohei "Max" MATSUSHITA (ma2shita+git@ma2shita.jp) | |
* Released under the MIT license | |
* https://opensource.org/licenses/mit-license.php | |
*/ | |
#include <string.h> | |
#include <stdio.h> | |
#include <WioLTEforArduino.h> | |
WioLTE Wio; | |
#include <WioLTEClient.h> |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>MQTT console for AWS IoT Core with MQTT over WebSocket</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/aws-sdk/2.404.0/aws-sdk.min.js" integrity="sha256-5j5NcghceMlKBa2qXSGw6l24mOkiXOsdi9sB21pBips=" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.2/mqttws31.min.js" integrity="sha256-UplsBBNj5zR16Nyo1bVLLVd0ndtLYs0A5c4WrbK/etU=" crossorigin="anonymous"></script> | |
<script>/* from https://docs.aws.amazon.com/ja_jp/iot/latest/developerguide/protocols.html */ | |
/** |
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 <M5Stack.h> | |
#include <string.h> | |
#define TINY_GSM_MODEM_UBLOX | |
#include <TinyGsmClient.h> | |
TinyGsm modem(Serial2); /* Serial2 is Modem of 3G Module */ | |
TinyGsmClient ctx(modem); | |
void modem_enabler(); | |
void print_bottom_menu(); |