Unofficial CLI command for mornin'+ (mornin' plus) smart curtain.
Requirements: Python 3, bluepy 3.2+, pycryptodome 3.6+
| const tf = require('@tensorflow/tfjs-node'); | |
| const Jimp = require('jimp'); | |
| // Directory path for model files (model.json, metadata.json, weights.bin) | |
| // NOTE: It can be obtained from [Export Model] -> [Tensorflow.js] -> [Download my model] | |
| // on https://teachablemachine.withgoogle.com/train/image | |
| const MODEL_DIR_PATH = `${__dirname}`; | |
| // Path for image file to predict class | |
| const IMAGE_FILE_PATH = `${__dirname}/example.jpg`; |
| airi-totoki | 十時愛梨 | passion | |
|---|---|---|---|
| akane-hino | 日野茜 | passion | |
| aki-yamato | 大和亜季 | cool | |
| anasutashia | アナスタシア | cool | |
| anzu-futaba | 双葉杏 | cute | |
| arisu-tachibana | 橘ありす | cool | |
| asuka-ninomiya | 二宮飛鳥 | cool | |
| ayame-hamaguchi | 浜口あやめ | passion | |
| chie-sasaki | 佐々木千枝 | cool | |
| chieri-ogata | 緒方智絵里 | cute |
Unofficial CLI command for mornin'+ (mornin' plus) smart curtain.
Requirements: Python 3, bluepy 3.2+, pycryptodome 3.6+
| // ESP8266 + 積層信号灯 (3色) | |
| // https://gist.github.com/mugifly/ | |
| #include <ESP8266WiFi.h> | |
| #include <ESP8266WebServer.h> | |
| #include <timer.h> | |
| // 設定 - Wi-Fi | |
| #define WLAN_SSID "XXXXXX" |
| // ESP8266 + DS18B20 One-Wire Temperature Sensor (Works with Hass.io) | |
| // https://gist.github.com/mugifly/8e5a0aa81ca4a2485b2c2b46e0968fc6 | |
| #include <ESP8266WiFi.h> | |
| #include <WiFiClientSecure.h> | |
| #include <OneWire.h> | |
| #include <DallasTemperature.h> | |
| #include <timer.h> | |
| /** | |
| * Simplest API Server for Google Home Notifier | |
| * https://gist.github.com/mugifly/22af0d55ccf4099becd44165f6500196/ | |
| * Thanks for https://github.com/noelportugal/google-home-notifier | |
| **/ | |
| 'use strict'; | |
| // Language to speak |
| #!/bin/bash | |
| ip=` ip --oneline --family inet address show dev wlp8s0 | cut -d' ' -f7 | cut -d '/' -f1` | |
| echo "-- Watching on ${ip}:6666 --" | |
| nc -u -l -p 6666 |
| #!/bin/bash | |
| set -e | |
| echo -e "Image Converter for Slack Emoji\nNOTICE: The image will be overwritten." | |
| if [ $# -lt 1 ]; then | |
| echo "USAGE:" | |
| echo -e " ${0} IMG_FILE [IMG_FILE...]\n" | |
| echo "IMG_FILE:" |