This file contains 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/python | |
# https://raspberrytips.nl/lcd-scherm-20x4-i2c-raspberry-pi/ | |
import sys | |
import smbus | |
import time | |
import datetime | |
import subprocess | |
I2C_ADDR = 0x3F # I2C device address |
This file contains 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 | |
# TCRT5000 tracking sensor | |
# https://raspberrytips.nl/tcrt5000 | |
import RPi.GPIO as GPIO | |
TrackingPin = 11 | |
def setup(): |
This file contains 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 | |
# Tripwire met laser module en lichtsensor | |
# https://raspberrytips.nl/tripwire-laser | |
from datetime import datetime | |
import RPi.GPIO as GPIO | |
import os, time | |
SensorGPIO = 23 |
This file contains 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
# | |
# Manufacturer: Motorola, Arcadyan, Arris | |
# Model: KPN Mediabox | |
# | |
# Keywords: lirc configuration, IR codes | |
# Remark: Should work the following devices: (often used by KPN and TELFORT) | |
# | |
# Arcadyan HMB2260 | |
# Motorola VIP 1853 | |
# Motorola VIP 1963 |
This file contains 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 | |
import time | |
import fourletterphat | |
from subprocess import Popen, PIPE | |
print(""" | |
Four Letter pHAT: cpu-temp.py | |
This example will display your Pi's CPU |
This file contains 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
// Homekit motions sensor voor HomeBridge | |
// raspberrytips.nl | |
#include <ESP8266WiFi.h> | |
const char* ssid = "naamnetwerk"; // SSID Wifi (naam) | |
const char* password = "watchwoord"; // Wachtwoord wifi | |
IPAddress ip(192, 168, 2, 99); // IP address | |
IPAddress dns(192, 168, 2, 254); // IP address DNS server |
This file contains 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/python | |
import smbus | |
import time | |
import datetime | |
I2C_ADDR = 0x27 # I2C device address | |
LCD_WIDTH = 16 # Maximum characters per line | |
# Define some device constants |
This file contains 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/python | |
import json | |
import urllib | |
try: | |
jsonfile = json.load(urllib.urlopen('https://eu.goodwe-power.com/Mobile/GetMyPowerStationByUser?userName=GEBRUIKERSNAAM')) | |
except ValueError: | |
print 'Error data kan niet geladen worden...' |
This file contains 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/python | |
# https://raspberrytips.nl/raspberry-pi-goodwe-zonnepaneel-omvormer/ | |
# 25/08/2018 - Richard IJzermans | |
import sys | |
import smbus | |
import time | |
import datetime | |
import json |
This file contains 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/python | |
# BMP180 luchtdruk + temperatuur sensor | |
# https://www.raspberrytips.nl | |
import smbus | |
import time | |
from ctypes import c_short | |
DEVICE = 0x77 | |