-->
Page 1 of 2

esp8266 send door status to server

PostPosted: Mon Jul 02, 2018 8:27 am
by atux_null
Hi. new to the area and i am looking to start a small project to learn. the request is to have a few sensors spread around and collect the data to a server. i have some components that i could use:
    raspberry: to act as server
    esp8266 wifi module: that will host the sensors
    DHT11 sensor
    magnetic door switch
https://www.amazon.com/uxcell-Window-Sensor-Magnetic-Recessed/dp/B00HR8CT8E/ref=br_lf_m_s6wxaka957nr7r3_ttl?_encoding=UTF8&s=hi

At the moment the raspberry has LAMP running. To begin with i would like to know the status of the door (open/close) in the webpage of the RPI. It will be around 5 different esp8266 reporting to RPI and i need the user by a look to know the status of each door/window.

i would appreciate any help available please.

Re: esp8266 send door status to server

PostPosted: Mon Jul 02, 2018 2:01 pm
by schufti
look here
viewtopic.php?f=11&t=4458
to get some ideas ...

Re: esp8266 send door status to server

PostPosted: Tue Jul 03, 2018 11:25 am
by atux_null
I am looking to make it call a php script A when door opens and a php script B when door closes.
Then from the php scripts i will make the whole thing from the server with php then.
I do not have a clue how to code the esp8266 node mcu to call a script based on the door/window state.

Re: esp8266 send door status to server

PostPosted: Wed Jul 04, 2018 3:31 pm
by schufti
then a board search for "http client" will most likely help you,
together with the examples to the ESP8266HTTPClient library ...

It's your project, so it should be primarily your effort ...