diff --git a/pages/12.home-automation/docs.md b/pages/12.home-automation/docs.md index f007106..2de46b4 100644 --- a/pages/12.home-automation/docs.md +++ b/pages/12.home-automation/docs.md @@ -10,7 +10,7 @@ Sonoff Basic [On Amazon Rs. 650](https://www.amazon.in/gp/product/B06WWNBD3Y/ref # Step 2. - Load ESP Easy firmware on it [A good blog](https://randomnerdtutorials.com/sonoff-basic-switch-esp-easy-firmware-node-red/) -The firware is ```ESP_Easy_mega-20190630_normal_ESP8266_1M``` +The firware is `ESP_Easy_mega-20190630_normal_ESP8266_1M` The pin connection is easy. Add the header to the pin out from the I2C programming board and connect the RX -> TX and TX -> RX. 3.3v. @@ -45,14 +45,20 @@ Edit Task 1 # Step 5. - Install Mosquitto on a Raspberry Pi ### First get the repository package signing key, import it into apt, and remove the key file again: -```wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key +``` +wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key sudo apt-key add mosquitto-repo.gpg.key -rm mosquitto-repo.gpg.key``` +rm mosquitto-repo.gpg.key +``` ### Then make the mosquitto repository available to apt: -```cd /etc/apt/sources.list.d/ +``` +cd /etc/apt/sources.list.d/ sudo wget http://repo.mosquitto.org/debian/mosquitto-stretch.list -sudo apt-get update``` +sudo apt-get update +``` ### Now we can install the core packages (server & clients): -```sudo apt-get install mosquitto mosquitto-clients``` \ No newline at end of file +``` +sudo apt-get install mosquitto mosquitto-clients +``` \ No newline at end of file