Skip to content

Instantly share code, notes, and snippets.

@txq92
txq92 / bingart-api.md
Created February 24, 2025 04:11 — forked from hoangdh/bingart-api.md
Tạo hình ảnh bằng Bing Art thông qua API.

Tạo hình ảnh bằng Bing Art AI của Microsoft thông qua API

Script API

from flask import Flask, request, jsonify, render_template
from bingart import BingArt

# Replace your cookie
myCookie = ''
- platform: mqtt
name: "quat toilet"
command_topic: "cmnd/tasmota_44CBF3/IRSend"
payload_on: "0,1274,402,1272,402,434,1266,1248,428,1248,402,434,1244,434,1244,1270,402,434,1244,434,1244,434,1268,410,7968"
payload_off: "0,1268,406,1242,432,432,1246,1266,408,1266,408,406,1272,428,1250,430,1246,434,1244,406,1272,432,1244,1270,7128"
oscillation_command_topic: "cmnd/tasmota_44CBF3/IRSend"
payload_oscillation_on: "0,1276,406,1278,408,406,1300,1252,430,1252,428,400,1286,412,1272,410,1248,436,1272,386,1274,1276,404,436,7996"
payload_oscillation_off: "0,1276,406,1278,408,406,1300,1252,430,1252,428,400,1286,412,1272,410,1248,436,1272,386,1274,1276,404,436,7996"
This file has been truncated, but you can view the full file.
[
{
"id": "1",
"code": "SG",
"name": "Hồ Chí Minh",
"districts": [
{
"id": "1",
"name": "Bình Chánh",
"wards": [
@txq92
txq92 / evnhcm.yaml
Last active November 27, 2020 13:59
- platform: nct_evnhcm
name: 'trumxuquang'
passwd: '09123540'
day: '07' # là ngày evn chốt số điện - xem trong trang cskh
- platform: template
sensors:
nct_evnhcm_ma_khachhang:
friendly_name: "Mã Khách Hàng"
value_template: >-
@txq92
txq92 / evn.yaml
Created October 25, 2020 13:13
evn.yaml
- platform: nct_evncpc
name: 'ngo bao chau'
passwd: 'abcmatkhau'
- platform: template
sensors:
nct_evncpc_tiendien:
friendly_name: "Tiền Điện"
unit_of_measurement: 'vnd'
value_template: >-