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
const { | |
batteryPercentage, | |
temperature, | |
humidity, | |
enumLookup, | |
binary, | |
numeric, | |
quirkAddEndpointCluster, | |
} = require('zigbee-herdsman-converters/lib/modernExtend'); | |
const reporting = require('zigbee-herdsman-converters/lib/reporting'); |
This file has been truncated, but you can view the full file.
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
(function (global) { | |
"use strict"; | |
var __MIOTPACK__ = true; | |
global.require = metroRequire; | |
global.__r = metroRequire; | |
global.__d = define; | |
global.__c = clear; | |
global.__registerSegment = registerSegment; | |
var modules = clear(); |
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
scrape: | |
- resource: https://credobank.ge/en/ | |
sensor: | |
- name: USD/GEL rate Credo | |
select: "body > div.wrap.container > div.content > main > div.news-section.full-width-padding-lr.flex-wrap.space-between > div.news-container.right > div > div.js-currency-box.currency-box.active > div > div:nth-child(2) > div.currency.second-column" | |
value_template: '{{ value | float }}' | |
unit_of_measurement: GEL | |
sensor: | |
- platform: rest |
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
#!/bin/sh | |
set -e | |
echo "Updating OpenWRT from version 19.07 to 21.02.5" | |
wget https://openlumi.github.io/releases/21.02.5/targets/imx6/generic/u-boot-xiaomi_dgnwg05lm/u-boot.imx -O /tmp/u-boot.imx | |
wget https://openlumi.github.io/releases/21.02.5/targets/imx6/generic/openlumi-21.02.5-imx6-imx6ull-xiaomi-dgnwg05lm.dtb -O /tmp/openwrt-imx6-imx6ull-xiaomi-dgnwg05lm.dtb | |
wget https://openlumi.github.io/releases/21.02.5/targets/imx6/generic/openlumi-21.02.5-imx6-xiaomi_dgnwg05lm-squashfs-sysupgrade.bin -O /tmp/openwrt-imx6-xiaomi_dgnwg05lm-squashfs-sysupgrade.bin | |
echo "The files are downloaded to the /tmp folder." |
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
""" | |
A websocket service to pull rates and provide subscriptions to an asset | |
Optimization directions: | |
- SQLite is used for simplicity without need for extra DB setup. | |
Can be replaced with postgres (or another DB) connection | |
- Unification of naming for symbols/assets, etc. | |
- Handle various signals for graceful shutdown | |
- Better validation of input 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/env python3 | |
import optparse | |
import os | |
import shutil | |
import struct | |
import sys | |
from typing import List, Tuple | |
from Crypto.Cipher import AES # type: ignore |
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 sys, struct, string | |
from rijndael import rijndael | |
from rijndael import encrypt | |
import time | |
crctab = [ | |
0, 79764919, 159529838, 222504665, | |
319059676, 398814059, 445009330, 507990021, | |
638119352, 583659535, 797628118, 726387553, | |
890018660, 835552979, 1015980042, 944750013, | |
1276238704, 1221641927, 1167319070, 1095957929, |
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 asyncio | |
import logging | |
import os | |
from bleak import BleakScanner | |
from bleak.backends.device import BLEDevice | |
from bleak.exc import BleakDBusError | |
logger = logging.getLogger(__name__) | |
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
// SPDX-License-Identifier: GPL-2.0 | |
#include "qcom-apq8064-v2.0.dtsi" | |
#include <dt-bindings/gpio/gpio.h> | |
#include <dt-bindings/input/input.h> | |
#include <dt-bindings/mfd/qcom-rpm.h> | |
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> | |
/ { | |
model = "LGE Nexus 4 (mako)"; | |
compatible = "lge,nexus4-mako", "qcom,apq8064"; |
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
alias: Turn on the light when enter home | |
description: '' | |
trigger: | |
- type: opened | |
platform: device | |
device_id: fa0f01d24dedc4bf42a6b72269616a2e | |
entity_id: binary_sensor.0x00158d000397557e_contact | |
domain: binary_sensor | |
condition: | |
- type: is_illuminance |
NewerOlder