Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import picamera
import time
import requests
import json
import sys
from senio_config import SenioConfig
config = SenioConfig()
$ ./post_pi_cam.py
----- CONFIG -----
url: https://www.senio.io/publish/rpi
key: c866226b-b6f4-49ad-8da6-aa9fea99d0e6
-------------------
Status: 202
Content: b'{"msg":"accepted for processing"}'
$ ./check_config.py
----- CONFIG -----
url: https://www.senio.io/publish/rpi
key: c866226b-b6f4-49ad-8da6-aa9fea99d0e6
-------------------
Status: 200
Content: b'{"name":"rpi","fields":{"cam1":{"type":"motion","threshold":5}}}'
$ cat senio.ini
[sensor]
name=rpi
key=c866226b-b6f4-49ad-8da6-aa9fea99d0e6
camera_field=cam1
$ git clone https://github.com/bjnortier/senio-client.git
Cloning into 'senio-client'...
remote: Counting objects: 74, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 74 (delta 0), reused 0 (delta 0), pack-reused 71
Unpacking objects: 100% (74/74), done.
Checking connectivity... done.
$ cd senio-client
$ cp senio.ini.UPDATE_ME_WITH_SENSOR_VALUES senio.ini

Keybase proof

I hereby claim:

  • I am bjnortier on github.
  • I am bjnortier (https://keybase.io/bjnortier) on keybase.
  • I have a public key whose fingerprint is BA5A AA0C 802F 6DD8 E0AA 95C3 2BA5 8F12 E9FD AC22

To claim this, I am signing this object:

Verifying that +bjnortier is my blockchain ID. https://onename.com/bjnortier
1) Use build_flymake.sh to compile flymake.erl into the eflymake script.
2) Replace your existing eflymake script with the newly built one.
NOTE: Don't forget to make a back up copy of your original eflymake in case this one has bugs!