Skip to content

ErickWendel/relay-door-control-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Using the Espruino JavaScript Interpreter on ESP01 to control Eletric Doors and Relays

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published