Add TODO to block traffic to external services

This commit is contained in:
Valentin Brandl 2025-05-08 19:13:25 +02:00
parent 67d9f27fbc
commit f752f00196
Signed by: vbrandl
GPG Key ID: 7FB009175885FC76

View File

@ -3,9 +3,11 @@
This documentation explains how to receive data from a Froggit weather station using your own server. It covers two protocols: **Ecowitt** (POST requests) and **Wunderground** (GET requests). This documentation explains how to receive data from a Froggit weather station using your own server. It covers two protocols: **Ecowitt** (POST requests) and **Wunderground** (GET requests).
### Hardware: ### Hardware:
- DP2000 7-In-1 Y-Edition Wifi/Lan Wireless Weather Station: [Product Link](https://www.froggit.de/dp2000-7-in-1-y-edition-wifi-lan-wireless-weather-station.html) - DP2000 7-In-1 Y-Edition Wifi/Lan Wireless Weather Station: [Product Link](https://www.froggit.de/dp2000-7-in-1-y-edition-wifi-lan-wireless-weather-station.html)
## Setup ## Setup
1. **Power the Gateway**: Connect the Gateway to a power source, and after a short period, a new Wi-Fi network (GW2000X-WIFIXXXX) should appear. 1. **Power the Gateway**: Connect the Gateway to a power source, and after a short period, a new Wi-Fi network (GW2000X-WIFIXXXX) should appear.
2. **Connect to the Gateways Wi-Fi**: Use the Gateways Wi-Fi to connect and open `192.168.4.1` in your browser. 2. **Connect to the Gateways Wi-Fi**: Use the Gateways Wi-Fi to connect and open `192.168.4.1` in your browser.
3. **Select Connection Type**: In the “Local Network” tab, select your preferred connection type: **WiFi** or **Ethernet** (via cable). 3. **Select Connection Type**: In the “Local Network” tab, select your preferred connection type: **WiFi** or **Ethernet** (via cable).
@ -20,14 +22,15 @@ This documentation explains how to receive data from a Froggit weather station u
![Wunderground Protocol Setup](./images/customized_wunderground.png) ![Wunderground Protocol Setup](./images/customized_wunderground.png)
## PHP Code ## PHP Code
The `both.php` file supports both **Ecowitt** and **Wunderground** protocols. The `both.php` file supports both **Ecowitt** and **Wunderground** protocols.
## Example Protocol Data ## Example Protocol Data
### Ecowitt (POST) ### Ecowitt (POST)
* **HTTP Method**: POST - **HTTP Method**: POST
* **Data Format**: URL-encoded body - **Data Format**: URL-encoded body
#### Example POST Data: #### Example POST Data:
@ -66,8 +69,8 @@ The `both.php` file supports both **Ecowitt** and **Wunderground** protocols.
### Wunderground (GET) ### Wunderground (GET)
* **HTTP Method**: GET - **HTTP Method**: GET
* **Data Format**: URL parameters (Query Parameters) - **Data Format**: URL parameters (Query Parameters)
#### Example GET Data: #### Example GET Data:
@ -114,7 +117,12 @@ $WUNDERGROUND_TO_ECOWITT = array(
); );
``` ```
## TODO
- [ ] check traffic if the gateway connects to any cloud services and if so, block the traffic
--- ---
## Conclusion ## Conclusion
This setup allows you to receive weather station data from either **Ecowitt** or **Wunderground** protocols, process it on your custom server, and store the data in an SQLite database for further analysis. The PHP code provided normalizes the data and ensures compatibility with both protocols. This setup allows you to receive weather station data from either **Ecowitt** or **Wunderground** protocols, process it on your custom server, and store the data in an SQLite database for further analysis. The PHP code provided normalizes the data and ensures compatibility with both protocols.