---
title: "weather station"
url: "https://maker.wiznet.io/WIZnet/projects/weather-station-1/"
markdown_url: "https://maker.wiznet.io/WIZnet/projects/weather-station-1/md"
type: "UCC: User Created Content"
author: "robocraft"
author_url: "https://robocraft.ru/blog/2956"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "robocraft"
original_url: "https://robocraft.ru/blog/2956"
published: "2023-02-01"
language: "en"
hardware: ["Arduino UNO"]
likes: 4
views: 613
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# weather station

> weather station

Original author: robocraft (source: https://robocraft.ru/blog/2956)

## Components

- **Arduino UNO** x 1 ([docs](https://www.farnell.com/datasheets/1682209.pdf))

## Article

Original :

0 : <https://robocraft.ru/blog/2929>

1 : <https://robocraft.ru/blog/2946>

2 : <https://robocraft.ru/blog/2956>

[Embedded media](https://www.youtube.com/embed/IFzT-HKJqyI)

Working with the Internet (algorithm)
In order to find out the time and weather, you need to make a request to the Network. I decided to read the data output by PHP scripts (thus unloading the slow Arduino from unnecessary calculations – PHP is executed on the server), since free hosting and a domain (even of the second level) are not a problem now, and I just have one working (notice , what is the address of the large pictures and diagrams in the previous article?). I found services from which it would be easy to take time and weather, wrote two PHP scripts (time.php and weather.php, respectively) and now I access them with Arduino.

And the algorithm of work is as follows: Arduino receives a signal from nRF24L01 + (in this case, unlike the main module, it is more convenient to wait for an interrupt from the transceiver than to poll it every N seconds), generates the necessary HTTP request, sends it to the Web server, waits for a response, reads it 1 byte at a time, separates the useful information (“body”) from the HTTP headers and sends it back to the main module. That’s how easy it is.

---

Source: https://maker.wiznet.io/WIZnet/projects/weather-station-1/
