Skip to content

Instantly share code, notes, and snippets.

View semaf's full-sized avatar

semaf electronics semaf

View GitHub Profile
@semaf
semaf / keybase.md
Created November 20, 2023 21:51
keybase.md

Keybase proof

I hereby claim:

  • I am semaf on github.
  • I am semaf (https://keybase.io/semaf) on keybase.
  • I have a public key ASCwA22AREOfJqwgOwb1iVZkb4nlobGU4skwZ3nG6Sn9Ego

To claim this, I am signing this object:

@semaf
semaf / functions.php
Created December 31, 2017 08:54 — forked from jameskoster/functions.php
WooCommerce - Remove product data tabs
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
unset( $tabs['additional_information'] ); // Remove the additional information tab
return $tabs;
@semaf
semaf / house.item
Last active December 25, 2017 12:21
MQTTWarn INI File for OpenHAB item and rule - XIAOMI - Philips HUE
Switch Wohnzimmerlicht { channel="hue:0100:xxxxxxxxxxx:1:brightness" }
Contact Fensterstatus "Fenster Status" { channel = "mihome:sensor_magnet:158d00019f51cb:isOpen"}
String VT_Notify_Trace { mqtt=">[broker:/openhab/notification/trace:state:*:default]" }
String VT_Notify_Info { mqtt=">[broker:/openhab/notification/info:state:*:default]" }
String VT_Notify_Alert { mqtt=">[broker:/openhab/notification/alert:state:*:default]" }
String VT_Notify_Warn { mqtt=">[broker:/openhab/notification/warn:state:*:default]" }
String VT_Notify_Alarm { mqtt=">[broker:/openhab/notification/alarm:state:*:default]" }
@semaf
semaf / services.conf
Created December 25, 2017 01:44
Supervisor configuration File for RTMBOT and MQTTWARN
# download to /etc/supervisor/conf.d/services.conf
[program:mqttwarn]
directory = /home/pi/services/mqttwarn
command = sudo python /home/pi/services/mqttwarn/mqttwarn.py
autostart = true
autorestart = true
user = pi
environment= MQTTWARNINI="/home/pi/services/mqttwarn/mqttwarn.ini"
@semaf
semaf / rtmbot.conf
Created December 23, 2017 04:39
RTMBot for Slack - works on OpenHAB too
DEBUG: True
SLACK_TOKEN: "xoxb-123456789012-dcburOIUoaoijodqwoH"
ACTIVE_PLUGINS:
- plugins.slackhab.SlackhabPlugin
Rapoo Bluetooth Keyboard
pi@raspberrypi:~ $ bluetoothctl
[NEW] Controller B8:2A:7D:DA:11:13 pi3 [default]
[bluetooth]# agent on
Agent registered
[bluetooth]# pairable on
Changing pairable on succeeded
@semaf
semaf / FiberOpticLamp.ino
Created January 18, 2016 14:19 — forked from AdySan/FiberOpticLamp.ino
Philips Hue Clone using ESP8266
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <PubSubClient.h>
#include <Adafruit_NeoPixel.h>
#define PIN D8
Adafruit_NeoPixel strip = Adafruit_NeoPixel(6, PIN, NEO_GRB + NEO_KHZ800);