MessMate Farm, Vic, Australia

24/02/26 08:24: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
°
2026-02-24 08:04 18.3 19.8 14.8 80 2.1 SSE 0 0 1471014.6 2.3 2.1


Historical Observations for the date of 2026-02-24

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
°
2026-02-24          14.8 (19.2) 14.6 (19.8) 8.7 (14.8) 61 (80) E 0 (6) 0 (11) 971012.8 (1014.6) 2.3 2.1

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
°
1771880400  (2026-02-24 08:00) 18.1 19.6 14.6 80 2.1 SSE 0 0 1471014.6 2.3 2.1
1771878600  (2026-02-24 07:30) 17.5 18.5 13.7 78 2.3 SSE 1 1 1471014.5 2.3 2.1
1771876800  (2026-02-24 07:00) 18.1 18.6 12.5 70 3.2 E 2 2 1011014.1 1.9 2.1
1771875000  (2026-02-24 06:30) 19 19.5 11.6 62 4.2 E 0 0 931013.4 0 0
1771873200  (2026-02-24 06:00) 19 19.3 11.4 61 4.3 E 0 1 931013.4 0 0
1771871400  (2026-02-24 05:30) 18.3 18.5 11.1 63 4 E 1 2 931013.3 0 0
1771869600  (2026-02-24 05:00) 17.6 17.4 11 65 3.7 E 3 3 931013.1 0 0
1771867800  (2026-02-24 04:30) 17.1 16.6 10.9 67 3.4 E 4 5 931012.9 0 0
1771866000  (2026-02-24 04:00) 17.6 17.3 10.7 64 3.8 E 2 3 931012.9 0 0
1771864200  (2026-02-24 03:30) 17.8 17.7 10.4 62 4.1 E 1 2 931012.9 0 0
1771862400  (2026-02-24 03:00) 17.1 16.8 10.3 64 3.7 E 2 3 931013.3 0 0
1771860600  (2026-02-24 02:30) 16.6 16.3 10.1 65 3.6 E 2 3 931013.3 0 0
1771858800  (2026-02-24 02:00) 15.9 15.7 9.9 67 3.3 E 2 2 931013.4 0 0
1771857000  (2026-02-24 01:30) 15.3 15.1 9.3 68 3.2 E 0 0 931013.6 0 0
1771855200  (2026-02-24 01:00) 16.1 15.9 9.4 64 3.6 E 0 1 931013.7 0 0
1771853400  (2026-02-24 00:30) 16 15.6 9.6 66 3.4 E 2 3 931013.9 0 0
1771851600  (2026-02-24 00:00) 16 15.9 9.4 65 3.5 E 0 0 931014.1 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