So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By atux_null
#76791 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.
User avatar
By atux_null
#76844 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.
User avatar
By schufti
#76864 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 ...
Last edited by schufti on Thu Jul 05, 2018 2:15 am, edited 1 time in total.