View lifxScenes.py
#!/usr/bin/env python3 | |
# Get API key/token: https://cloud.lifx.com/settings | |
# PIFX python library: https://github.com/cydrobolt/pifx | |
from pifx import PIFX | |
import pifx | |
import sys | |
import subprocess | |
API_KEY = '<PASTE API TOKEN HERE>' |
View RPi_I2C_driver.py
# -*- coding: utf-8 -*- | |
""" | |
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic | |
Made available under GNU GENERAL PUBLIC LICENSE | |
# Modified Python I2C library for Raspberry Pi | |
# as found on http://www.recantha.co.uk/blog/?p=4849 | |
# Joined existing 'i2c_lib.py' and 'lcddriver.py' into a single library | |
# added bits and pieces from various sources | |
# By DenisFromHR (Denis Pleic) | |
# 2015-02-10, ver 0.1 |
View Example_sensor_data.json
[ | |
{ | |
"id": 1, | |
"name": "DS18B20", | |
"model": "ds18b20", | |
"battery": 254, | |
"deviceType": "0000000D-0001-1000-2005-ACCA54000000", | |
"uuid": "0000000D-0001-1000-2005-ACCA54000000", | |
"data": [ | |
{ |
View Arduino_Uno_LCD-I2c_test.ino
// Note: I recommend connecting SCL and SDA from the LCD to Analog 4 & 5 on the Uno. | |
// You can also use the SCL and SDA ports (near the USB). | |
// In general: 16 chars, 2 or 4 lines of text: 0x27 | |
// 20 chars, 4 lines of text: 0x3F | |
// But remember that most of these i2c adapters are addressable | |
#include <LiquidCrystal_I2C.h> | |
#include <Wire.h> | |
LiquidCrystal_I2C lcd(0x27, 16, 2); |
View Arduino_Yun_LCD_I2C-test.ino
// Note: Connect SCL and SDA from the LCD to SCL & SDA on the Yun (closest to the ethernet port). | |
// You can also use digital 2 and 3, but I won't recommend it if you want a reliable serial port connection. | |
// In general: 16 chars, 2 or 4 lines of text: 0x27 | |
// 20 chars, 4 lines of text: 0x3F | |
#include <LiquidCrystal_I2C.h> | |
#include <Wire.h> | |
LiquidCrystal_I2C lcd(0x27, 16, 2); |
View ledAlert.py
# -*- coding: utf-8 -*- | |
#!/usr/bin/env python | |
# server side script for Raspberry PI | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
import re | |
import argparse | |
import time | |
# Luma.LED_Matrix drivers & library is © 2017 Richard Hull |