Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 736 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 736 Bytes

Relay Door Control

Running

  • You mush flash the Espruino program on your ESP01.
  • Connect it on your computer. `
  • Run ls /dev/tty.* find the device port (something like /dev/tty.wchusbserial14620)
  • Change PORT variable on flash.sh
  • Change the package.json adding your device port
  • Run sh flash.sh
  • Add your Wireless user and password on index.js
  • Run npm install
  • Run npm run upload:usb

Setting Hostname manually

  • Run npm run shell:usb to access the device
  • Paste the following JS Code
const Wifi = require('wifi')
Wifi.setHostname('myHostName')
Wifi.save()
  • Then from other terminal instance, run ping myHostName to check if it works