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
esphome: | |
name: water-meter | |
esp8266: | |
board: d1_mini | |
restore_from_flash: true | |
# Enable logging | |
logger: |
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
esphome: | |
name: dsmr-logger | |
platform: ESP8266 | |
board: nodemcu | |
# Enable logging | |
logger: | |
baud_rate: 0 | |
# Enable Home Assistant API |
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
# dynamic.toml | |
## dynamic configuration | |
[http.routers] | |
[http.routers.redirecttohttps] | |
entryPoints = ["web"] | |
middlewares = ["httpsredirect"] | |
rule = "HostRegexp(`{host:.+}`)" | |
service = "noop" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE params SYSTEM "params.dtd"> | |
<params name="Practice"> | |
<section name="Header"> | |
<attstr name="name" val="Practice"/> | |
<attstr name="description" val="Practice"/> | |
<attnum name="priority" val="100"/> | |
<attstr name="menu image" val="data/img/splash-practice.png"/> |
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
<?php | |
/* | |
Plugin Name: Your plugin name goes here. | |
Plugin URI: Your website/blog address goes here. | |
Description: Removes unnecessary clutter from WPHead. | |
Version: 1.0.0 | |
Author: Your name goes here. | |
Author URI: Your website/blog address goes here. | |
*/ |
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
<?php | |
/** | |
* Processes the message requested | |
* | |
* @param $update | |
*/ | |
function processMessage($update) | |
switch ($update["queryResult"]["action"]) { |
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
from bluetooth import * | |
import sys | |
import RPi.GPIO as GPIO | |
import time | |
import random | |
#If using python 2 | |
if sys.version < '3': | |
input = raw_input |
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
import bluetooth | |
import threading | |
import requests | |
from time import sleep | |
import RPi.GPIO as GPIO | |
#Set up GPIO | |
GPIO.setmode(GPIO.BCM) |
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
<?php | |
ini_set('display_errors', 1); | |
require("phpMQTT.php"); | |
$key = "XXXXX"; // The API key | |
$server = "XXXXX"; // change if necessary | |
$port = XXXXX; // change if necessary | |
$username = "XXXXX"; // set your username | |
$password = "XXXXX"; // set your password |
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
// GetCode.ino | |
// | |
// Basic example for the TOTP library | |
// | |
// This example uses the opensource SwRTC library as a software real-time clock | |
// you can download from https://github.com/leomil72/swRTC | |
// for real implementation it's suggested the use of an hardware RTC | |
#include "sha1.h" | |
#include "TOTP.h" |
NewerOlder