###ソフトウェアアップデート
sudo apt-get update
sudo apt-get upgrade
Raspberry PiをWi-Fiに接続する sudo vi /etc/network/interfaces
start | |
test | |
end |
// エラー処理は終了にしているのでforeverなどでプロセス監視してください | |
var keyword = 'せにょ|セニョ' | |
var device = '通知するデバイス。登録したメールアドレスならすべてのデバイスに通知' | |
var PushBullet = require('pushbullet'); | |
var pusher = new PushBullet('PushBulletのAccess Token'); | |
var twitter = require('ntwitter'); | |
var twit = new twitter({ | |
consumer_key: 'dev.twitter.comで作ったconsumer_key', | |
consumer_secret: 'dev.twitter.comで作ったconsumer_secret', | |
access_token_key: 'dev.twitter.comで作ったaccess_token_key', |
sudo yum update -y | |
# ひとまず | |
sudo yum install epel-release | |
sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm | |
# 必要なレポジトリを登録 | |
sudo yum install -y R mecab mecab-ipadic mecab-devel | |
# 解析環境をインストール 依存環境含めていろいろインストールされる。 |
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Say voice="woman" language="ja-jp"> | |
サーバーに障害が発生しました。 | |
</Say> | |
</Response> |
Raspbianでユーザー名piでhomebridgeをインストールした前提のお話
https://datahotel.io/archives/725
https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi
ssh pi.local
sudo nano /etc/init.d/homebridge
[次のコードをコピペ]
#!/usr/bin/env python | |
import collections | |
import snowboydetect | |
import time | |
import wave | |
import os | |
import logging | |
import aiy.audio |
#!/usr/bin/env python3 | |
# Copyright 2017 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
#!/usr/bin/env python | |
# Copyright 2017 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
#!/bin/sh | |
# | |
# Reference Web sites: | |
# http://d.hatena.ne.jp/anmino/20091029/1256806944 | |
# http://www.geocities.jp/abandonment_cat/cygwin/bshell/read.html | |
# http://www.ibm.com/developerworks/jp/aix/library/au-learningtput/ | |
# | |
declare -i x_position=`expr \`tput lines\` / 3` | |
declare -i y_position=`expr \`tput cols\` / 3` |