Posts

Showing posts from December, 2018

Weather station v2

Image
Weather Technology: PHP (backend) CSS AJAX - Dynamic entry of recent temperatures into real-time tabs Google Charts for vizualization C (Wiring) for NodeMCU/Arduino with Ethernet Quantities in the project: Temperature inside: DS18B20 Temperature outside: DS18B20 outdoor version Air humidity: DHT22 Atmospheric pressure: BMP280 Version v2 offers: New graphical user interface (responsive) Login system Real-time data in a dynamic table Archiving at 10-minute intervals to MySQL database, Google Graphs (CanvasJS replacement) - chart listing current day + 7 last days Improved weather forecast for all-day temperature development Reset the desktops at a distance Login log / change logins Plate connection status indicator Change names of individual rooms / names of sensors Weather Maps Screenshots:

Sending data to the Internet via Ethernet and Wifi, processing

Image
When we need to use Arduino's full potential in connectivity mode, we have two options. Make a webserver from Arduin, or send data to the Internet, which will make Arduino much easier. This tutorial contains sketches that are used to send data to the Internet via HTTP, HTTPS protocol, sending mode can be called Webclient mode, or simply a client when we connect to a remote server. All sample sketches will be designed for sending and processing of 2x temperature from DS18B20 sensors, DHT12 humidity, atmospheric pressure for BMP280. To process the result on the webserver side, we use the PHP language in the procedural version. Tutorial for Arduino (Wiznet W5100 Ethernet shield - HTTP only): # include <OneWire.h> //KNIZNICA ONEWIRE PRE VYUZITIE ONEWIRE ZBERNICE # include <DallasTemperature.h> //KNIZNICA PRE TEPLOTNE CIDLA DS18B20 # define ONE_WIRE_BUS 6 //DEFINICIA PINU AKO ZBERNICE PRE ONEWIRE ZARIADENIA.. TU ZBIERAME UDAJE