An ESP8266 / LUA / php based burglar alert
JavaScript PHP Lua HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
InstaPerimeter.zip
LICENSE Initial commit Feb 7, 2015
README.md
alarm-public.lua
alarm.php Now 3 sensors and drag n drop sensor positioning. Feb 17, 2015
esp8266-alarm.jpg
flasher1.gif 3 sensors and drag n drop Feb 17, 2015
flasher2.gif 3 sensors and drag n drop Feb 17, 2015
flasher3.gif
floorplan.jpg
green.png
index.html
logfile.txt
mapset.php
mapshow.php
partslist.txt
sens1.gif
sens2.gif
sens3.gif
setup.txt 3 sensors and drag n drop Feb 17, 2015
store.php
wifisetup.lua
wz_dragdrop.js

README.md

instaperimeter

An ESP8266 / LUA / php based burglar alert. I came up with this project when when shooting a video on installing the NODEMCU firmware on the ESP-1 module. If I ever get to complete this project, the Idea is, that you can scatter around some battery operated sensors on your property. Thus: InstaPerimeter

What it does at the moment:

The lua Code checks the status of a PIR sensor (gpio2) connected to an esp-01 module every second. In case of a state change, it connects to web server, passing a sensor ID and status.

On the web server (a raspberry pi in this case) this information is written to a text file.

A browser can connect to the web server. A php-script reads the sensor's status from the file.

Video tutorials

You will want to watch these two video tutorials:

Although you will notice that some improvements have been made to the code since the recordings.

I am not a programmer and the software may have serious security flaws. If you want to contribute, you are welcome. Use the software with caution.