├── images
├── WOWstation.png
├── pizero2-hero.png
├── WOWTempest_Hub.png
└── WOWauthentication.png
└── README.md
/images/WOWstation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rongrimes/weewx-tempest-pi/HEAD/images/WOWstation.png
--------------------------------------------------------------------------------
/images/pizero2-hero.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rongrimes/weewx-tempest-pi/HEAD/images/pizero2-hero.png
--------------------------------------------------------------------------------
/images/WOWTempest_Hub.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rongrimes/weewx-tempest-pi/HEAD/images/WOWTempest_Hub.png
--------------------------------------------------------------------------------
/images/WOWauthentication.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rongrimes/weewx-tempest-pi/HEAD/images/WOWauthentication.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # weewx-tempest-pi
2 |
3 | ## Contents
4 |
5 | [Introduction](#introduction)
6 | [Hardware Pieces](#hardware-pieces)
7 | [Full disclosure](#full-disclosure-)
8 | [Linux, etc.](#linux-etc)
9 | [Editing](#editing)
10 | [Introduction](#introduction)
11 | [Installation](#installation)
12 | [dietpi](#dietpi)
13 | [WeeWX](#weewx)
14 | [Retrieve, Install WeeWX](#retrieve-install-weewx)
15 | [Installation Notes](#installation-notes)
16 | [Status](#status)
17 | [Install WeatherFlow Tempest module](#install-weatherflow-tempest-module)
18 | [Retrieve weatherflow UDP code](#retrieve-weatherflow-udp-code)
19 | [Install](#install)
20 | [[[Station]]](#station)
21 | [Replace [Simulator] section with [WeatherFlowUDP] content](#replace-simulator-section-with-weatherflowudp-content)
22 | [[[sensor_map]]](#sensor_map)
23 | [Get Your Station Identification](#get-your-station-identification)
24 | [Insert your Serial number into weewx.conf](#insert-your-serial-number-into-weewxconf)
25 | [View web pages](#view-web-pages)
26 | [Turn off Station Identification](#turn-off-station-identification)
27 | [Further Configuration](#further-configuration)
28 | [Measurement Units](#measurement-units)
29 | [Seeing Results](#seeing-results)
30 | [WeatherFlow Tempest Website](#weatherflow-tempest-website)
31 | [WeeWX Output using FTP](#weewx-output-using-ftp)
32 | [WeeWX Map](#weewx-map)
33 | [Weather Underground](#weather-underground)
34 | [AWEKAS](#awekas)
35 | [PWS Weather](#pws-weather)
36 | [Weathercloud](#weathercloud)
37 | [WOW](#wow)
38 | [Implementation Notes](#implementation-notes)
39 | [Transfer from a Raspberry Pi 4 2GB to a Raspberry Pi Zero 2](#transfer-from-a-raspberry-pi-4-2gb-to-a-raspberry-pi-zero-2)
40 | [Network Connection: Wireless > Ethernet](#network-connection-wireless--ethernet)
41 |
42 | ---
43 |
44 | ## Introduction
45 |
46 | This document describes setting up WeeWX to process the results from a **WeatherFlow Tempest** and is derived from:
47 | * WeeWX documentation
48 | * //github.com/captain-coredump/weatherflow-udp
49 |
50 | There is no single cookbook approach to setting up WeeWX with a WeatherFlow Tempest; hence this document. I hope it helps someone.
51 |
52 | This document assumes basic knowledge of Linux and a Raspberry Pi if you're using one. If this does not describe you and you want a more detailed approach let me know. I (may, will) add more details in relevant places.
53 |
54 | Also, there are introductory notes to show how to publish weather results to:
55 | * [WeatherFlow Tempest Website](#weatherflow-tempest-website)
56 | * [AWEKAS](#awekas)
57 | * [PWS Weather](#pws-weather)
58 | * [Weather Underground](#weather-underground)
59 | * [Weathercloud](#weathercloud)
60 | * [WeeWX](#weewx-output-using-ftp)
61 | * [WOW](#wow)
62 |
63 | July 2022
64 |
65 | ---
66 |
67 | ## Hardware Pieces
68 | I have the following equipment:
69 |
70 | | WeatherFlow Tempest | Raspberry Pi Zero 2 W |
71 | |---|---|
72 | |
|
|
73 |
74 |
75 |
76 | ### Full disclosure 😀
77 | I have had the _WeatherFlow Tempest_ running with WeeWX software on a _Raspberry Pi 4 2 GB_ platform since July 2021. Now, I think that a better $ value is to have _weewx_ running on a _Pi Zero 2_. This document is/was written as I complete(d) the transfer.
78 |
79 | See further comments in [Transfer from a Raspberry Pi 4](#transfer-from-a-raspberry-pi-4-2gb-to-a-raspberry-pi-zero-2).
80 |
81 | ---
82 |
83 | ---
84 |
85 | ## Linux, etc.
86 |
87 | ### Editing
88 | When editing the configuration and other files, any text editor will do:
89 | * vim
90 | * geany
91 | * thonny
92 | * ....
93 |
94 | ---
95 |
96 | ### Introduction
97 |
98 | If you're using Ubuntu, Linux Mint, or other Linux, skip this section and jump to [WeeWX](#weewx) below.
99 |
100 | ### Installation
101 |
102 | I am using:
103 | ```
104 | Raspberry Pi OS Lite
105 | Release Date: April 4th, 2022
106 | System: 64-bit
107 | Size: 270MB
108 | ```
109 |
110 | - Install onto an SD card as usual (I use _rpi_imager_)
111 | - Install SD card into the Pi Zero and start up as usual.
112 | - Configure _ssh_ to run for remote access.
113 |
114 | ### dietpi
115 | I tried to install _weewx_ with the **dietpi** distro. _weewx_ found all sorts of modules missing and it just wasn't worth the effort to continue.
116 |
117 | ---
118 |
119 | ## WeeWX
120 |
121 | ### Retrieve, Install WeeWX
122 |
123 | From the WeeWx Documentation, follow the topics:
124 | - Configure apt - shows the specifics of retrieving WeeWX with *apt*.
125 | - Install WeeWX
126 |
127 | #### Installation Notes
128 |
129 | The WeeWX installation will ask for the following:
130 |
131 | | Value | Note |
132 | | --- | --- |
133 | | **Location of Weather Station** | Enter the name/location of the station. Use the Tempest name, but any name will do (example: Cherry Beach) |
134 | | **latitude, Longitude** | Enter the decimal values of the site co-ordinates.
(Note: installation allows any input here and doesn't check. However, hidden system errors occur at runtime when you supply badly formed values.) |
135 | | **Altitude** | Enter site altitude as directed. |
136 | | **display units** | Make a choice. Further adjustments are easy to make later in the configuration file. |
137 | | **Weather Station hardware Type** | Choose: **Simulator**. |
138 |
139 | ### Status
140 |
141 | On the WeeWX Installation page, follow the topics:
142 |
143 | | Value | Note |
144 | | --- | --- |
145 | | **Status** | Log entries will appear. These values are unimportant at this time. |
146 | | **Verify** | Web pages to appear at `/var/www/html/weewx/index.html` |
147 | | **Customize** | Ignore (for now). |
148 | | **Start/Stop** | Stop _weewx_. (`sudo /etc/init.d/weewx stop`) |
149 | | **Uninstall** | Ignore. |
150 | | **Layout** | Keep for reference. |
151 |
152 | ---
153 | ## Install WeatherFlow Tempest module
154 |
155 | ### Retrieve weatherflow UDP code
156 | 1. Visit https://github.com/captain-coredump/weatherflow-udp
157 | 1. Download the .ZIP download of the project from the GitHub web interface
158 | 1. Button: `CODE`
159 | 1. Choose `Download ZIP`
160 |
161 | This retrieves: `weatherflow-udp-master.zip`
162 |
163 | ### Install
164 | ```
165 | sudo wee_extension --install weatherflow-udp-master.zip
166 | ```
167 |
168 | ---
169 |
170 | ### Edit the configuration file: weewx.config
171 |
172 | ```
173 | sudo edit /etc/weewx/weewx.conf
174 | ```
175 |
176 |
177 |
178 | ### [[Station]]
179 | In the `[Station]` section near the top of the configuration file, edit:
180 | ```
181 | station_type = WeatherFlowUDP
182 | ```
183 |
184 | ### Replace [Simulator] section with [WeatherFlowUDP] content
185 | 1. Find the section `[Simulator]`, and delete / comment out all lines in the section, including `[Simulator]`.
186 | 1. Copy the following lines to where `[Simulator]` was previously:
187 |
188 | ```
189 | [WeatherFlowUDP]
190 | driver = user.weatherflowudp
191 | log_raw_packets = False
192 | udp_address =
193 | # udp_address = 0.0.0.0
194 | # udp_address = 255.255.255.255
195 | udp_port = 50222
196 | udp_timeout = 90
197 | share_socket = False
198 |
199 | [[sensor_map]]
200 | outTemp = air_temperature.AR-00004444.obs_air
201 | outHumidity = relative_humidity.AR-00004444.obs_air
202 | pressure = station_pressure.AR-00004444.obs_air
203 | # lightning_strikes = lightning_strike_count.AR-00004444.obs_air
204 | # avg_distance = lightning_strike_avg_distance.AR-00004444.obs_air
205 | outTempBatteryStatus = battery.AR-00004444.obs_air
206 | windSpeed = wind_speed.SK-00001234.rapid_wind
207 | windDir = wind_direction.SK-00001234.rapid_wind
208 | # lux = illuminance.SK-00001234.obs_sky
209 | UV = uv.SK-00001234.obs_sky
210 | rain = rain_accumulated.SK-00001234.obs_sky
211 | windBatteryStatus = battery.SK-00001234.obs_sky
212 | radiation = solar_radiation.SK-00001234.obs_sky
213 | # lightningYYY = distance.AR-00004444.evt_strike
214 | # lightningZZZ = energy.AR-00004444.evt_strike
215 |
216 | ```
217 | (original source: https://github.com/captain-coredump/weatherflow-udp)
218 |
219 | I edited the top part to be:
220 | ```
221 | [WeatherFlowUDP]
222 | driver = user.weatherflowudp
223 | log_raw_packets = False
224 | # log_raw_packets = True
225 | # udp_address =
226 | # udp_address = 0.0.0.0
227 | udp_address = 255.255.255.255
228 | udp_port = 50222
229 | udp_timeout = 90
230 | share_socket = False
231 | ```
232 |
233 | ### [[sensor_map]]
234 | Replace the sensor_map section with the following content:
235 | ```
236 | # This section is for the TEMPEST WeatherFlow Bridge packets, via UDP broadcast on local subnet
237 |
238 | [[sensor_map]]
239 | outTemp = air_temperature.ST-00000025.obs_st
240 | outHumidity = relative_humidity.ST-00000025.obs_st
241 | pressure = station_pressure.ST-00000025.obs_st
242 | #lightning_strikes = lightning_strike_count.ST-00000025.obs_st
243 | #avg_distance = lightning_strike_avg_distance.ST-00000025.obs_st
244 | outTempBatteryStatus = battery.ST-00000025.obs_st
245 | windSpeed = wind_speed.ST-00000025.rapid_wind
246 | windDir = wind_direction.ST-00000025.rapid_wind
247 | #luxXXX = illuminance.ST-00000025.obs_st
248 | UV = uv.ST-00000025.obs_st
249 | rain = rain_accumulated.ST-00000025.obs_st
250 | windBatteryStatus = battery.ST-00000025.obs_st
251 | radiation = solar_radiation.ST-00000025.obs_st
252 | #lightningXXX = distance.ST-00000025.evt_strike
253 | #lightningYYY = energy.ST-00000025.evt_strike
254 | ```
255 | ref: https://github.com/captain-coredump/weatherflow-udp/blob/master/sample_Tempest_sensor_map.
256 |
257 | ---
258 |
259 | ### Get Your Station Identification
260 | The sample code is for data coming from station ID `ST-00000025`. You now need to find out *your* station ID.
261 |
262 | 1. Under `[WeatherFlowUDP]` set:
263 | ```
264 | log_raw_packets = True
265 | ```
266 | 2. Save the configuration file (`weewx.conf`).
267 | 1. Restart _weewx_.
268 | `sudo /etc/init.d/weewx restart`
269 |
270 | *weewx* will start watching for the UDP packets from the Tempest and dump them in the log. We can see this information with:
271 |
272 | `sudo tail -f /var/log/syslog`
273 |
274 | You are looking for records like:
275 | ```
276 | May 26 22:26:55 raspberrypiZ2-2 weewxd: weatherflowudp: MainThread: raw packet: {'serial_number': 'ST-00052000', 'type': 'rapid_wind', 'hub_sn': 'HB-00041000', 'ob': [1653618412, 0.52, 315]}
277 | May 26 22:28:25 raspberrypiZ2-2 weewxd: weatherflowudp: MainThread: raw packet: {'serial_number': 'ST-00052000', 'type': 'rapid_wind', 'hub_sn': 'HB-00041000', 'ob': [1653618504, 0.29, 312]}
278 | May 26 22:28:26 raspberrypiZ2-2 weewxd: weatherflowudp: MainThread: raw packet: {'serial_number': 'ST-00052000', 'type': 'device_status', 'hub_sn': 'HB-00041000', 'timestamp': 1653618505, 'uptime': 26712917, 'voltage': 2.763, 'firmware_revision': 156, 'rssi': -64, 'hub_rssi': -64, 'sensor_status': 131072, 'debug': 0}
279 | ```
280 | (I have slightly obfuscated the serial numbers from my own Weatherflow Tempest).
281 |
282 | Terminate the log viewing with Ctl-C.
283 |
284 | ---
285 |
286 | ## Insert your Serial number into weewx.conf
287 |
288 | 1. `sudo edit /etc/weewx/weewx.conf`
289 | 2. We want the Tempest serial number (here: ST-00052000) in the sensor map code:
290 | In /etc/weewx/weewx.conf, search/replace **ST-00000025** with **ST-00052000** (but with what you found in your log file)
291 | 1. I also uncommented all lines in [[sensor_map]]. Not sure what effect this has.
292 | 1. Save the configuration file (`weewx.conf`).
293 | 1. Restart weewx.
294 | `sudo /etc/init.d/weewx restart`
295 | 1. Let run for 10 - 15 minutes (or more).
296 |
297 | ### View web pages
298 | WeeWX has main ouput in web pages at: `/var/www/html/weewx`. To see if WeeWX is working for you, view the web `index.html` file.
299 | `vim /var/www/html/weewx/index.html`
300 |
301 | Browse down and look for output like:
302 | ```
303 |
304 |
305 |
306 |
307 | | Outside Temperature |
308 | 61.7°F |
309 |
310 |
311 | | Heat Index |
312 | 61.0°F |
313 |
314 |
315 | | Wind Chill |
316 | 61.7°F |
317 |
318 |
319 | | Dew Point |
320 | 52.6°F |
321 |
322 | ```
323 | What's notable here is:
324 | **Outside Temperature** appears with a value of **61.7**. If *weewx* is not configured correctly, you will likely see **N/A**.
325 |
326 | ### Turn off Station Identification
327 | When you are satisfied that *weewx* is getting the UDP packets from the Tempest hub, you will want to turn off `log_raw_packets` since it will put lots of now unnecessary stuff in the system log. Edit the configuration file (`weewx.conf`).
328 |
329 | 1. `sudo edit /etc/weewx/weewx.conf`
330 | 1. Set `log_raw_packets = False`
331 | 1. Save the configuration file.
332 | 1. Restart _weewx_.
333 | `sudo /etc/init.d/weewx restart`
334 |
335 | ---
336 |
337 | ## Further Configuration
338 |
339 | ### Measurement Units
340 |
341 | The default measurement units for *StdReport* appear in `/etc/weewx/weewx.conf` and are set to US units. I set mine to the following (Canadian units):
342 |
343 | 1. In `/etc/weewx/weewx.conf`, navigate to: **StdReport** >> **Defaults**
344 | 1. Set `unit_system = metric`
345 | 1. Navigate a few lines down to **Units** >> **Groups**, and edit the respective lines to read:
346 | ```
347 | group_pressure = kPa # Options are 'inHg', 'mmHg', 'mbar', 'hPa', or 'kPa'
348 | group_rain = mm # Options are 'inch', 'cm', or 'mm'
349 | group_rainrate = mm_per_hour # Options are 'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
350 | ```
351 | 4. Save the configuration file.
352 | 1. Restart *weewx*.
353 | ```
354 | sudo /etc/init.d/weewx restart
355 | ```
356 | ---
357 |
358 | ---
359 | ## Seeing Results
360 |
361 | ### WeatherFlow Tempest Website
362 |
363 | On your phone or tablet and in the Tempest configuration app, you specify if you want to share your results publicly.
364 | ```
365 | Settings > Stations > (Station name) > Public Data > Share Publicly
366 | ```
367 | A few lines below is the **Share Page** with the URL of where your weather results appear:
368 | ```
369 | https://tempestwx.com/station/nnnnn
370 | ```
371 | ...where _`nnnnn`_ is your given station number. It is not the same as the serial numbers of the Tempest of the Hub.
372 |
373 | ---
374 |
375 | ### WeeWX Output using FTP
376 |
377 | I use Infinity Free as a web hosting site. It's:
378 | * free
379 | * allows regular ftp upload
380 | * is mostly smooth in producing pages
381 |
382 | ... and suits my non-professional purposes.
383 |
384 | Use the notes in FTP in the WeeWX User's Guide for FTP transfer.
385 |
386 | For illustration, I have configured:
387 | ```
388 | enable = true
389 | user = epiz_redacted
390 | password = redacted
391 | server = ftpupload.net # The ftp server name, e.g, www.myserver.org
392 | path = /rongrimes.42web.io/htdocs # The destination directory, e.g., /weather
393 |
394 | # Set to True for an FTP over TLS (FTPS) connection. Not all servers
395 | # support this.
396 | secure_ftp = False
397 |
398 | # Most FTP servers use port 21
399 | port = 21
400 |
401 | # Set to 1 to use passive mode, zero for active mode
402 | passive = 1
403 | ```
404 |
405 | ---
406 |
407 | ### WeeWX Map
408 |
409 | WeeWX maintains a world map of all registered WeeWX stations at:
410 | * http://weewx.com/stations.html
411 |
412 | To register on the map:
413 | 1. `sudo edit /etc/weewx/weewx.conf`
414 | 1. Navigate to: `[StdRESTful] > [[StationRegistry]]`
415 | 1. Set `register_this_station = true`
416 | 1. Navigate to `station_url` (above in the config file).
417 | 1. Set `station_url` to your Weewx website. Really, set it to any website you have control over.
418 | 1. Save the configuration file.
419 | 1. Restart *weewx*.
420 | ```
421 | sudo /etc/init.d/weewx restart
422 | ```
423 |
424 | Check the WeeWX map and your site will appear soon. (I don't remember if it takes 5 minutes, an hour or a day.)
425 |
426 | ---
427 |
428 | ### Weather Underground
429 | There are two ways to get your Tempest weather data published to Weather Underground.
430 | 1. Direct the Tempest website to publish to Weather Underground. This is the method I use.
431 | 1. The *weewx* configuration file can be set up to send data to Weather Underground. See the section in the configuration file: `[[Wunderground]]`
432 |
433 | #### Steps: Weather Underground
434 | 1. Navigate to http://www.weatherunderground.com
435 | 1. Login to the site. (Use **Join** if you're a new member.)
436 | 1. In **My Profile**, go to **My Devices**.
437 | 1. Use **Add New Device** and provide data as prompted.
438 | 1. From the *Devices* page, record your **ID** and **Key**.
439 |
440 | #### Steps: Tempest Website
441 | 1. Go to https://tempestwx.com/ and login with the same username & password that you created for the mobile app.
442 | 1. Navigate: **Settings > Stations > (Your station) > Public Data > Weather Underground**
443 | 1. Enter your *Station ID* and *Station Key* for Weather Underground from above, and enable the **Send Rain** switch.
444 | 1. Click **<** at the top of the page to exit.
445 | 1. Check Weather Underground in a day or so to see that it's publishing.
446 |
447 | I found that Weather Underground took a while to show my station on the map, but I could find my data explicitly on the Weather Underground web site via **My Profile > My Devices**.
448 |
449 | ---
450 |
451 | ### AWEKAS
452 |
453 | AWEKAS (Automatisches WEtterKArten System) is an Austrian weather station collecting site with a strong European presence. It is similar in principle to WeatherUndergound in North America.
454 | * https://www.awekas.at/en/map.php
455 |
456 | To get your weather results displayed with AWEKAS:
457 | 1. On the AWEKAS page, navigate to:
458 | `My Awekas > My Station Panel`
459 | 1. Use `Register New`, and supply details as required.
460 | 1. Update the WeeWX configuration file with your login information.
461 | 1. For illustration, I have:
462 | ```
463 | [[AWEKAS]]
464 | # This section is for configuring posts to AWEKAS.
465 |
466 | # If you wish to do this, set the option 'enable' to true,
467 | # and specify a username and password.
468 | # To guard against parsing errors, put the password in quotes.
469 | enable = true
470 | username = redacted
471 | password = redacted
472 | ```
473 | 5. Save the configuration file.
474 | 1. Restart *weewx*.
475 | ```
476 | sudo /etc/init.d/weewx restart
477 | ```
478 |
479 | ---
480 |
481 | ### PWS Weather
482 |
483 | Weathercloud is a Minnesota (US) station collecting site with fairly repeasentative presence worldwide.
484 | * https://www.pwsweather.com/map/
485 |
486 | To get your weather results displayed with PWS Weather:
487 | 1. On the PWS Weather web page, use `Log in`, and create your login ID.
488 | 1. Click the button to `Add a station`. If you don't see `Add a station`, log out and log back in again.
489 | 1. Provide your station details and then click `SAVED STATION`.
490 | 1. Click your station button on the **Stations** web page and retrieve:
491 | * your `Station ID`
492 | * your `API Key`.
493 | 1. Update the [[PWSweather]] section in the WeeWX configuration file with your station information. (Use your `API Key` for the password).
494 | 1. For illustration, I have:
495 | ```
496 | [[PWSweather]]
497 | enable = true
498 | station = EASTTORONTO
499 | password = 218_redacted
500 | ```
501 | 7. Save the configuration file.
502 | 1. Restart *weewx*.
503 | ```
504 | sudo /etc/init.d/weewx restart
505 | ```
506 |
507 | ---
508 |
509 |
510 | ### Weathercloud
511 |
512 | Weathercloud is a Barcelona station collecting site with a strong European and North American presence.
513 | * https://app.weathercloud.net/map
514 |
515 | To get your weather results displayed with Weathercloud:
516 | 1. On the Weathercloud page, navigate to:
517 | `Get started`
518 | 1. Use `Sign up`, and supply details as required.
519 | 1. You will receive an email with:
520 | * Weathercloud ID
521 | redacted
522 | * Key
523 | redacted
524 | 1. Update the WeeWX configuration file with your ID/key information.
525 | 1. For illustration, I have:
526 | ```
527 | [[WeatherCloud]]
528 | id = redacted
529 | key = redacted
530 | ```
531 | 5. Save the configuration file.
532 | 1. Visit https://github.com/matthewwall/weewx-wcloud, and follow the directions to install wcloud - the weewx extension that sends data to WeatherCloud.
533 | 1. Restart *weewx*.
534 | ```
535 | sudo /etc/init.d/weewx restart
536 | ```
537 |
538 | ---
539 |
540 | ### WOW
541 | WOW is the UK Met Office WeatherObservationsWebsite with a strong Western Europe, Australia/New Zealand and some North American presence.
542 | * https://wow.metoffice.gov.uk/
543 |
544 | I found this site more difficult/less intuitive to set up, and hence a few more notes here regarding configuration. In your WeeWX config file you are asked for two values:
545 | * station
546 | * password
547 |
548 | The notes below will help you find these (it's not obvious until you know!).
549 |
550 | To get your weather results displayed with WOW:
551 | 1. On the WOW page, use `Sign up`, and supply details as required.
552 | 1. Use **Create a Site** and supply the information to configure your station entry on WOW.
553 | 1. For *Step 1: Configuration* screen in *(2) Site Details*, it will ask for "Authentication Key". Use any value here (but avoid spaces, and "some" special characters), and this will be your WeeWX password value.
Example:
554 |
555 |
556 | 1. Click **Complete** on the web page to register your site.
557 | 1. Review your site (you can find it under **My sites**).
558 | 1. The coded value under your station name, is the **station** value for the WeeWX config file.
Example:
559 |
560 |
561 | 1. In *weewx.conf*, update the [[WOW]] section with your WOW credentials. For illustration, I have:
562 | ```
563 | [[WOW]]
564 | # This section is for configuring posts to WOW.
565 |
566 | # If you wish to post to WOW, set the option 'enable' to true, then specify a station and
567 | # password. To guard against parsing errors, put the password in quotes.
568 | # >> Example values to match images.
569 | enable = true
570 | station = "3251462c-74fc-ec11-b5cf-0003ffffffff"
571 | password = "EvilPlace"
572 | ```
573 | 5. Save the configuration file.
574 | 1. Restart *weewx*.
575 |
576 | ```
577 | sudo /etc/init.d/weewx restart
578 | ```
579 |
580 | #### WOW Site Data Preferences
581 | The WOW Site registration page uses the **4. Site Data Preferences** section to describe the realistic accuracy of your station. This section was horribly cryptic until I found the section description in the *Support Pages*:
582 | Support > Site Ratings
583 |
584 | #### Debugging the link
585 | I found some help in debugging the upload process in:
586 | Support > Data Formats and APIs
587 |
588 | In particular, I found that using the **Example URL** meant that instead of working with WeeWx to communicate to WOW which could take 5 minutes per cycle, I could instead, manually send REST requests off to WOW at any speed. This way I finally got the *station* (= *siteid*) and *password* (= *Authentication Key* = *siteAuthenticationKey*) correct.
589 |
590 | ---
591 | ---
592 | ## Implementation Notes
593 | ### Transfer from a Raspberry Pi 4 2GB to a Raspberry Pi Zero 2
594 |
595 | As mentioned above, this document was written when I transferred the WeeWX software from a Raspberry Pi 4 2GB to a Raspberry Pi Zero 2.
596 |
597 | The essentials of the transfer were particularly easy. I loaded a new WeeWX on the Pi Zero using the directions above and then to transfer the data across:
598 | 1. Stop *weewx* on the Raspberry Pi 4, and the Raspberry Zero 2.
599 | ``` sudo /etc/init.d/weewx stop```
600 | 1. Copy `/var/lib/weewx/weewx.sdb` from the Pi 4 to Pi Zero 2.
601 | 1. Start *weewv* on the Pi Zero 2.
602 | The FTP to web server module picked up immediately and transferred web pages on the next 5 minute boundary.
603 |
604 | ---
605 |
606 | ### Network Connection: Wireless > Ethernet
607 |
608 | I found the wireless connection got faulty after a few days. The symptom being that *weewx* would lose data and frequently show temperature (and other readings) as **N/A** with the daily graphs being dots instead of continuous lines.
609 |
610 | **Cure:** I turned off wireless in the Raspberry Pi Zero 2 and used ethernet-to-usb. The data reception was rock solid from then on.
611 |
--------------------------------------------------------------------------------