This file contains hidden or 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
<?php | |
/************************************************************************* | |
* home-api (History of Nature Remo Senser) | |
* Home Tools for private. Using IFTTT and Google Home etc | |
* | |
* PHP 5 or later | |
* | |
* @category Home IoT | |
* @author Miki | |
* @url https://www.miki-ie.com/ |
This file contains hidden or 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
<?php | |
/************************************************************************* | |
* home-api (Weather) | |
* Home Tools for private. Using IFTTT and Google Home etc | |
* | |
* PHP 5 or later | |
* | |
* @category Home IoT | |
* @author Miki | |
* @url https://www.miki-ie.com/ |
This file contains hidden or 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
import urllib.request | |
#params for IFTTT | |
ifttt_api_key = '/with/key/@アクセスキー@' | |
url_base = 'https://maker.ifttt.com/trigger/' | |
#EVENT name for IFTTT | |
ifttt_event = 'test' | |
url = url_base + ifttt_event + ifttt_api_key | |
params = {'value1': 123,'value2': 123,'value3': 123,} |
This file contains hidden or 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
<?php | |
/************************************************************************* | |
* sendgrid-api (MAIN) | |
* Home Tools for private. Using IFTTT and Google Home etc | |
* | |
* PHP 5 or later | |
* | |
* @category Home IoT | |
* @author Miki | |
* @url https://www.miki-ie.com/ |
This file contains hidden or 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
<?php | |
require "twitteroauth/autoload.php"; | |
use Abraham\TwitterOAuth\TwitterOAuth; | |
define("TARGET_TWEET",0); | |
##TARGET_TWEET 0 is newest record | |
$host_name = '127.0.0.1:3307'; | |
$user_name = '@DB_User@'; | |
$password = '@DB_Pass@'; | |
$database_name ='@DB_Name@'; | |
$table_name = '@DB_Table@'; |
This file contains hidden or 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
import requests | |
from requests.auth import HTTPDigestAuth | |
TV_IP = "xxx.xxx.xxx.xxx" | |
TV_USER = "user" | |
TV_PASS = "pass" | |
TV_VOLUME_DOWN = "40BF1E" | |
TV_BOTTON_8 = "40BF08" | |
def execjanken(key): |
This file contains hidden or 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
#!/usr/bin/env python | |
# coding: utf-8 | |
target_model = "yolov3-tiny-janken_final.weights" | |
target_config = "yolov3-tiny-janken.cfg" | |
import cv2 as cv | |
import numpy as np | |
MODEL = "./janken_cfg/" + target_model |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib.request | |
import json | |
url = 'https://janken.miki-ie.com/jankenApi.php' | |
headers = { | |
'Authorization': 'Bearer @@API_KEY@@', |
This file contains hidden or 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
function updatePredict($date, $times, $predict,$api_key){ | |
$post_data = [ | |
"mod" => "updatePredict", | |
"date" => $date, | |
"times" => $times, | |
"predict" => $predict | |
]; | |
//curl実行 | |
$curl = curl_init("https://janken.miki-ie.com/jankenApi.php"); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer