チャンネルIDの取得方法 [Slack]

チャンネルを右クリックし、Copy linkをクリック。
すると以下のようなリンクを取得できる。
このリンクの末尾の記号がチャンネルIDである。
TWELITE 2525Aで玄関ドアの開閉を検知

今回は、小型加速度センサTWELITE 2525A (以下2525Aと呼ぶ) を玄関のドアに貼り付けることによって、誰かが入ってきたことが検知できるようにする。
環境Raspi3B+MONOSTICK
TWELIT ...
PythonでOnedriveにフォルダをアップロード[Odrive]

Python経由でOnedriveにアップロードする方法として、Microsoftが作成したOnedrive SDKの利用が考えられるが、このSDKは少し扱いにくい。そこで他の方法を探したところ、Odriveというウェブサービスを使っ ...
ベリオロスがまさかの良モンス化 [氷刃佩くベリオロス][MHW:IB]

ディベロッパーズダイヤリーで出た際、注目を集めた「氷刃佩くベリオロス」がいよいよ本日(8/7 9:00)に登場。
モンハンファンの筆者としては、とても楽しみにしていたアップデート。早速一狩り行ってきた。
マップ ...
PythonがTorを使っているかどうかを確認

Torを使っているか否かをブラウザで確認することができるサイトを利用し、PythonでTorを使っているかどうかを確認するスクリプトを作成。
import urllib.request, urllib.errorfrom bs4 ...Torで接続元を匿名化しスクレイピング [Python]

Python 3.8.2
現在のIPアドレスを確認
torを導入する前に、現在のIPアドレスを確認してみる。
現在のIPアドレスの取得については、過去記事でまとめたので、参考にされた ...
現在のグローバルIPアドレスを確認(複数のサイトから) [Python]

「Python IPアドレス」などで検索すると、IPを取得する方法がたくさん出てくるのだが、多くのサイトは、ひとつのサイトからの情報をあてにしているものが多い。
ひとつのサイトからの取得だと、IPアドレスを取得するサイトが ...
ModuleNotFoundError: No module named ‘di_i2c’

GrovePiのサンプルプログラムを動作させる際のエラーの解決法を記録する。
ただ単に、sudo python grove_pir_motion_sensor.py で実行すれば良いだけだった。
CounterをDictionary(辞書)に変換[Python]

matplotlibのx軸を縦書き(90度回転)にする[Python]

マイナス値を入れることも可能