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
""" | |
service: pyscript.oico_get_counters | |
data: | |
address_id: 310379 | |
counters: | |
- counter_id: 123456 # электроэнергия | |
mqtt_topic1: 'oico/energy-meter/t1' | |
mqtt_topic2: 'oico/energy-meter/t2' | |
mqtt_topic3: 'oico/energy-meter/t3' | |
- counter_id: 7890123 # отопление |
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
""" | |
The script allows to modify internet availability schedule for particular device connected to Keenetic router. | |
Script to be used with Pyscript HACS custom integration (https://github.com/custom-components/pyscript). | |
The following configuration is required (at configuration.yaml): | |
pyscript: | |
allow_all_imports: true | |
apps: | |
keenetic: |
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
Show hidden characters
// http://www.sublimetext.com/docs/3/build_systems.html | |
{ | |
"keyfiles": ["plugin.yml"], | |
"quiet": true, | |
// "syntax": "Packages/ShellScript/Bash.sublime-syntax", | |
"variants": | |
[ | |
{ | |
"name": "Pack & upload plugin", | |
"shell_cmd": "/Users/andrey/Documents/Dev/Other/MinecraftPMMP/packPlugin.command $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
%YAML 1.2 | |
--- | |
# See http://www.sublimetext.com/docs/3/syntax.html | |
name: YC Log | |
file_extensions: [log] | |
scope: source.example-c | |
contexts: | |
main: | |
# Request identifiers | |
- match: '\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} (START|END|REPORT) RequestID: .*' |
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
// https://developers.home-assistant.io/docs/api/rest | |
// http://www.sublimetext.com/docs/3/build_systems.html | |
{ | |
"keyfiles": ["manifest.json"], | |
"quiet": true, | |
"syntax": "Packages/ShellScript/Bash.sublime-syntax", | |
"variants": | |
[ | |
{ | |
"name": "Restart 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
// https://developers.home-assistant.io/docs/api/rest | |
// http://www.sublimetext.com/docs/3/build_systems.html | |
{ | |
"keyfiles": ["manifest.json"], | |
"quiet": true, | |
"syntax": "Packages/ShellScript/Bash.sublime-syntax", | |
"variants": | |
[ | |
{ | |
"name": "Restart 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
%YAML 1.2 | |
--- | |
# See http://www.sublimetext.com/docs/3/syntax.html | |
name: GAE Dev Server Log | |
file_extensions: [log] | |
scope: source.example-c | |
contexts: | |
main: | |
# Strings begin and end with quotes, and use backslashes as an escape | |
# character |
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
// http://www.sublimetext.com/docs/3/build_systems.html | |
// https://cloud.google.com/sdk/gcloud/reference/app | |
{ | |
//"file_patterns": ["*.py", "*.yaml"], | |
"keyfiles": ["app.yaml"], | |
"quiet": true, | |
"variants": | |
[ | |
{ | |
"name": "Run local 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
mqtt: | |
# https://www.home-assistant.io/integrations/light.mqtt/ | |
light: | |
- name: "firelamp" | |
unique_id: "firelamp_1234567890" | |
state_topic: "firelamp/embui/pub/on" | |
command_topic: "firelamp/embui/set/on" | |
payload_on: "1" | |
payload_off: "0" | |
brightness_command_topic: "firelamp/embui/set/g_bright" |
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 selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.support.wait import WebDriverWait | |
from selenium.webdriver.support import expected_conditions | |
import time | |
import os | |
import json | |
import sys | |
import requests |
NewerOlder