- Install
wpasupplicant
1. Turn on wifi radios:sudo nmcli radio wifi on
- Check your devices are recognised even if they're not "managed":
sudo iwconfig
(not must, will require wireless-tools instalation) - Check your wifi (here called "wlp2s0") is capable of detecting nearby routers:
sudo iwlist wlp3s0 scan
- Configure
netplan
by dropping a file called01-netcfg.yaml
into/etc/netplan/
or edit existing file there. See example below. netplan try
,netplan generate
,netplan apply
.
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 | |
function time2str($ts) { | |
if(!ctype_digit($ts)) { | |
$ts = strtotime($ts); | |
} | |
$diff = time() - $ts; | |
if($diff == 0) { | |
return 'now'; | |
} elseif($diff > 0) { | |
$day_diff = floor($diff / 86400); |
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
blueprint: | |
name: Aqara Wireless Switch (single, double, hold) | |
description: 'Control anything using Aqara Wireless Switch. | |
Customizable actions for each press. | |
This version of the blueprint is for buttons supporting single, double and hold actions. | |
' | |
domain: automation |