MessMate Farm, Vic, Australia

20/03/26 13:52: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-03-20 13:04 27.7 26.9 6.5 26 10.5 S 0 0 1861020.3 0 0


Historical Observations for the date of 2026-03-20

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-03-20          9.1 (28) 8.3 (26.9) 3.6 (15.6) 22 (94) SSE 0 (10) 0 (16) 1501018.8 (1021.2) 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
°
1773972000  (2026-03-20 13:00) 27.8 26.5 6.7 26 10.6 S 3 4 1921020.3 0 0
1773970200  (2026-03-20 12:30) 27.5 25.9 5.9 25 10.5 SW 4 6 2281020.4 0 0
1773968400  (2026-03-20 12:00) 26.7 25.4 6.4 28 10 SSE 3 4 1601020.7 0 0
1773966600  (2026-03-20 11:30) 25.5 24.3 6.6 30 9.4 SSE 2 3 1561020.9 0 0
1773964800  (2026-03-20 11:00) 24.2 23.3 7.4 34 8.6 SSE 2 2 1621021 0 0
1773963000  (2026-03-20 10:30) 24 23.6 8.6 38 8.2 SSE 1 1 1531021.2 0 0
1773961200  (2026-03-20 10:00) 22.9 22.5 9.6 43 7.2 SE 2 3 1391021 0 0
1773959400  (2026-03-20 09:30) 21.4 21.2 9.8 48 6.3 SE 1 2 1381020.7 0 0
1773957600  (2026-03-20 09:00) 20.9 20.2 9.6 49 6.1 SE 3 5 1431020.5 0 0
1773955800  (2026-03-20 08:30) 18.1 19.1 13.4 75 2.7 ESE 0 1 1231020.2 0 0
1773954000  (2026-03-20 08:00) 10.3 10.1 8.9 91 0.7 ESE 0 1 1231020.1 0 0
1773952200  (2026-03-20 07:30) 9.2 8.7 7.8 91 0.7 ESE 0 0 1231019.8 0 0
1773950400  (2026-03-20 07:00) 9.4 8.8 7.8 90 0.8 ESE 0 0 1231019.5 0 0
1773948600  (2026-03-20 06:30) 10.3 9.9 8.5 89 0.9 ESE 0 0 1231019.3 0 0
1773946800  (2026-03-20 06:00) 11 10.7 9.3 90 0.9 ESE 1 2 1231019 0 0
1773945000  (2026-03-20 05:30) 11.1 10.7 9.8 92 0.7 SE 2 3 1321018.9 0 0
1773943200  (2026-03-20 05:00) 9.9 9.4 8.4 90 0.8 SSE 0 1 1541018.9 0 0
1773941400  (2026-03-20 04:30) 9.6 9.1 8 90 0.8 SSE 0 0 1541019 0 0
1773939600  (2026-03-20 04:00) 10.3 9.9 8.5 88 1 SSE 0 1 1541019.2 0 0
1773937800  (2026-03-20 03:30) 11.6 11.4 9.4 87 1.2 SSE 1 1 1541019.2 0 0
1773936000  (2026-03-20 03:00) 12.2 11.6 10 87 1.2 SSE 3 5 1641019.4 0 0
1773934200  (2026-03-20 02:30) 12.2 11.8 10 87 1.2 SSE 2 3 1661019.5 0 0
1773932400  (2026-03-20 02:00) 11.6 10.7 9.9 89 1 SSE 5 7 1471019.8 0 0
1773930600  (2026-03-20 01:30) 11.4 11.2 9.4 87 1.1 ESE 0 1 1121019.9 0 0
1773928800  (2026-03-20 01:00) 11.6 11.4 9.7 88 1.1 SSE 1 2 1691020.2 0 0
1773927000  (2026-03-20 00:30) 12.2 12.1 9.6 84 1.4 S 0 1 1881020.5 0 0
1773925200  (2026-03-20 00:00) 13.3 12.7 10.5 83 1.6 S 4 5 1821020.6 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