I wanted to see if I could tap of 5v from an aqara zigbee rocker to power a neabry Amazon Fire HD8 smart home display.
The device is in two parts:
My better half is keen on having Chrome light switches in our house. Unfortunately I am keen to control our smart lighting with Tradfri switches. My original plan was to buy blanking plates and then simply stick the Tradfri On/Off remotes to them. Unfortunately the white plastic on the wife's chrome blanking plates look terrible.
sh <(wget -qO - https://downloads.nordcdn.com/apps/linux/install.sh)
sudo usermod -aG nordvpn $USER && sudo reboot
nordvpn set technology NordLynx
then nordvpn login
nordvpn whitelist add subnet 192.168.0.0/24
nordvpn connect ch
, ch
is Switzerlandsudo wg showconf nordlynx
to see the client private key and server pubkeyUnfortunately just setting the 4 lines as detailed in this reddit post almost works, however hostapd fails to start due to the auto generated r0kh strings having incorrect formatting. The sypmtom was that the network would appear as open and devices would fail to connect.
As far as I can tell at the time of writing, this r0khs are unecessary with WPA2-PSK forms of authentication if ft_psk_generate_local=1
is enabled in hostapd. So I commented out lines 688 - 690 of /lib/wifi/hostapd.sh
Ensure that the requirement for working with envs are installed sudo apt install python3-venv
Work out the python version you want to work with python --version
or python3 --version
or which python
Once you have chosen the python version cd
to the directory you want the env to be stored in
run /path/to/my/python3 -m venv nameOfEnv
of course this may just be python
not python3
/usr/bin/python3
.markup.jupyter { | |
pre { line-height: 125%; margin: 0; } | |
td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; } | |
span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; } | |
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } | |
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } | |
.highlight .hll { background-color: #ffffcc } | |
.highlight { background: #f8f8f8; } | |
.highlight .c { color: #408080; font-style: italic } /* Comment */ | |
.highlight .err { border: 1px solid #FF0000 } /* Error */ |
Install the packages for compiling
$ sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev wget
Set the python version you want
$ version=3.8.5
Download
$ wget https://www.python.org/ftp/python/$version/Python-$version.tgz ~/
Extract the file
Inspired from this guide
Navigate to https://myservices.us.oraclecloud.com/mycloud/signup and input your information and click next.
💡 If you don’t want to use your card number for verification you can signup for free at http://bit.ly/privacysignup and get $5 for free at the same time.
Finish the signup process (no more than 5 minutes) and you’re good to go.