Skip to content

Instantly share code, notes, and snippets.

View milbar's full-sized avatar

Bartalovics Milán milbar

  • Pécs
View GitHub Profile
<?php
/**
* Plugin Name: Clear WP Content On redesigned pages
* Description: Clears the default WP content if the ACF flexible content field is not empty and uses the specified template.
* Version: 1.0
* Author: Milan Bartalovics
*/
// Schedule the event on plugin activation
function yco_yearly_cron_schedule() {
@milbar
milbar / _init.py
Created June 19, 2024 14:57
BroadLink Thermostat Schedule Setup
import broadlink
import time
from typing import List
def discover_devices():
devices = broadlink.discover(timeout=5, local_ip_address='')
if devices:
for device in devices:
device.auth()