MessMate Farm, Vic, Australia

19/07/25 11:11:00

❰ WeeWX  - Mesowx  - ❰ Mesowx: DualRain  - ❰ Mesowx: weewx  - ❰ Mesowx: pmon  - ❰ WXgraphic  - ❰ Belchertown

Use the following to select a date for archived records Date style can be either 01-Feb-2018 or 01-02-2018 ( DD-MM-YYYY )
Choose the date:

The database config file has gone missing!     That shouldn't happen unless you've been changing your configuration files

We initially use a php default for include files of /usr/share/php, but this doesn't seem to suit all webservers or installations.

As of version 0.7.1, /usr/share/php will be created if it's found to be missing.

Check that the directory /usr/share/php does actually exist, if it doesn't then create it - and report this scripts failure.

Check that its read | write permissions are suitable - 0755, owned by root

The file should have been accessable as
/usr/share/php/wxobs_weatherpi.inc
We can use include_path in wxobs/skin.conf to change that.
The include file will be regenerated on weewx's next report run, (unless you're using the undocumented feature - view the source Luke.) Or when report_timing allows.

If the problem persists, consider changing its location as wxobs/skin.conf will accept
include_path = /new_path/your_choice
where the path and name can be anything allowable by php, readable by the webserver, and preferably secure.

If you are using the [Remote] section - where the sqlite database and wxobs files are viewable from a remote server then the include file will be transferred into the dest_directory that is specified. Populating dest_directory allow the remote transfer to be considered.

If all else fails, report the problem as an issue - to its github site, or contact me directly.
There are also Wiki notes that may help for this, and setting up remote servers.

Latest Observations

Date     Time Out Temp
°C
App Temp
°C
Dew Point
°C
Humidity
%
delta‐T
°C
Wind Pressure
hPa
Total Rain
(since 9 a.m.)
mm
Total Hail
(since 9 a.m.)
mm
Direction
compass
Speed
km/h
Gust
km/h
Direction
°
2025-07-19 11:04 11.7 8.6 4.4 61 3.4 N 10 12 3581015.9 0 0


Historical Observations for the date of 2025-07-19

Stats for the day : Min (Max), or Averages for Direction

Date          Out Temp
°C
App Temp
°C
Dew Point
°C
Humidity
%
Wind Pressure
hPa
Total Rain
(since 9 a.m.)
mm
Total Hail
(since 9 a.m.)
mm
Direction
compass
Speed
km/h
Gust
km/h
Direction
°
2025-07-19          4.1 (11.8) 0.4 (9.3) 1.6 (5.4) 61 (87) ENE 5 (13) 6 (22) 691015.3 (1017.9) 0 0

Periodic Stats (average values)

Date     Time Out Temp
°C
App Temp
°C
Dew Point
°C
Humidity
%
delta‐T
°C
Wind Pressure
hPa
Total Rain
(since 9 a.m.)
mm
Total Hail
(since 9 a.m.)
mm
Direction
compass
Speed
km/h
Gust
km/h
Direction
°
1752886800  (2025-07-19 11:00) 11.7 9 4.6 62 3.3 N 8 11 3521015.9 0 0
1752885000  (2025-07-19 10:30) 10.4 7.5 4.6 67 2.7 WSW 9 12 2501015.8 0 0
1752883200  (2025-07-19 10:00) 8.5 5.1 3.7 72 2.2 SE 10 13 1461015.7 0 0
1752881400  (2025-07-19 09:30) 7.1 3.9 3.2 76 1.7 ENE 9 11 661015.6 0 0
1752879600  (2025-07-19 09:00) 6.5 3.4 2.7 77 1.6 E 8 10 911015.9 0 0
1752877800  (2025-07-19 08:30) 6 2.9 2.4 77 1.6 NNE 7 9 221015.9 0 0
1752876000  (2025-07-19 08:00) 4.9 2 2 81 1.3 SSW 7 8 1971016 0 0
1752874200  (2025-07-19 07:30) 4.3 1.2 1.7 83 1.1 NE 7 9 371016 0 0
1752872400  (2025-07-19 07:00) 4.3 1.2 1.7 84 1.1 N 7 9 91015.8 0 0
1752870600  (2025-07-19 06:30) 4.3 0.9 2 85 1 E 9 10 931015.5 0 0
1752868800  (2025-07-19 06:00) 4.3 1.1 2.1 86 0.9 ENE 8 10 641015.5 0 0
1752867000  (2025-07-19 05:30) 4.5 1.4 2.2 85 1 S 7 9 1691015.5 0 0
1752865200  (2025-07-19 05:00) 5 2 2.5 84 1.1 E 7 9 881015.5 0 0
1752863400  (2025-07-19 04:30) 5.4 2.4 2.7 83 1.2 NE 7 9 361015.5 0 0
1752861600  (2025-07-19 04:00) 5.5 2.4 3.3 85 1 NNE 8 10 241015.8 0 0
1752859800  (2025-07-19 03:30) 5.9 2.9 3.6 85 1 NNE 8 10 221016.2 0 0
1752858000  (2025-07-19 03:00) 6.4 3.5 3.9 84 1.2 NNE 8 9 231016.4 0 0
1752856200  (2025-07-19 02:30) 6.4 3.5 3.8 83 1.2 NNE 8 9 321016.7 0 0
1752854400  (2025-07-19 02:00) 6 3 3.7 85 1.1 NNE 8 10 291016.8 0 0
1752852600  (2025-07-19 01:30) 6.4 3.3 4 85 1.1 NNE 9 10 181017 0 0
1752850800  (2025-07-19 01:00) 6.5 3.5 4.1 85 1.1 NNE 9 10 211017.2 0 0
1752849000  (2025-07-19 00:30) 6.5 3.6 4.3 86 1 NNE 8 9 161017.6 0 0
1752847200  (2025-07-19 00:00) 6.2 3.3 4.1 86 1 N 8 9 91017.7 0 0

Time taken to generate page was 0.07 seconds.


SELECT:

SELECT dateTime, rain, rainrate, hail, hailrate FROM archive WHERE dateTime BETWEEN 1666900980 AND 1666901940;
SELECT dateTime, hail FROM archive WHERE hail > 0 AND dateTime BETWEEN 1667426400 AND 1667430000;
SELECT dateTime, rain, rainrate, sum(hail), hailrate FROM archive WHERE dateTime BETWEEN 1667432400 AND 1667434440;
SELECT dateTime, rain, rainrate, hail, raincount1, raincount3, raincount4 FROM archive WHERE dateTime BETWEEN 1667446740 AND 1667447770;
SELECT dateTime, sum(rain), rainrate, hail, raincount1, raincount3, raincount4 FROM archive WHERE dateTime BETWEEN 1667446740 AND 1667447770;
SELECT datetime, rain, hail FROM archive ORDER BY dateTime DESC LIMIT 1;
SELECT hail FROM archive WHERE dateTime = 1667059560 AND hail > 0;


UPDATE:

UPDATE archive SET rain=0, rainrate=0 WHERE datetime BETWEEN 1667059560 AND 1667091300;
UPDATE archive SET rain=1.016, rainrate=0 WHERE datetime BETWEEN 1611873540 AND 1611892800 AND hail=1.016;
UPDATE archive SET rain=0.254 WHERE datetime = 1666901040;

      # supply a date, get an epoch time.

      date -d "11-june-2017 21:00:00" +'%s'
      # 1497178800

      date -d now +'%s'
      # 1667447728

      date +"%s"
      # returns the CURRENT epoch time, ie:- now!

      date -d @1407198071
      # Tue  5 Aug 10:21:11 AEST 2014

    

This extension is available at github as weewx-wxobs : This is version 0.8.1