MessMate Farm, Vic, Australia

18/09/25 12:56: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-09-18 12:04 18.9 17.3 7.3 47 5.9 N 5 9 3541021.2 0 0


Historical Observations for the date of 2025-09-18

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-09-18          4.3 (18.9) 2.6 (17.8) 1.8 (8.7) 46 (86) E 0 (12) 0 (17) 961021.2 (1023.1) 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
°
1758160800  (2025-09-18 12:00) 18.5 16.6 7.8 50 5.5 SSW 7 10 2091021.2 0 0
1758159000  (2025-09-18 11:30) 18.5 16.5 7.6 49 5.6 SW 8 10 2241021.5 0 0
1758157200  (2025-09-18 11:00) 18 16 7.2 49 5.5 S 7 10 1791022 0 0
1758155400  (2025-09-18 10:30) 17.5 15.4 7.5 52 5.1 S 7 10 1691022.3 0 0
1758153600  (2025-09-18 10:00) 16.1 14.1 7.2 56 4.5 SSE 7 8 1691022.6 0 0
1758151800  (2025-09-18 09:30) 15.1 13.3 6.8 58 4.1 S 6 8 1831022.9 0 0
1758150000  (2025-09-18 09:00) 14.6 12.8 6.6 59 4 SE 6 7 1461023 0 0
1758148200  (2025-09-18 08:30) 13.9 12.1 6.6 61 3.6 ESE 5 7 1221022.9 0 0
1758146400  (2025-09-18 08:00) 11.9 10.1 6 67 2.9 NE 5 6 531022.9 0 0
1758144600  (2025-09-18 07:30) 10 8.3 5 71 2.3 NE 3 3 521022.7 0 0
1758142800  (2025-09-18 07:00) 7 5.7 4 81 1.4 ENE 0 0 691022.7 0 0
1758141000  (2025-09-18 06:30) 5.9 4.5 3.4 84 1.1 ENE 0 0 701022.6 0 0
1758139200  (2025-09-18 06:00) 5.2 3.7 2.8 84 1.1 ENE 0 0 701022.5 0 0
1758137400  (2025-09-18 05:30) 5.4 3.8 2.8 83 1.1 ENE 0 0 691022.4 0 0
1758135600  (2025-09-18 05:00) 5.6 4.1 3 84 1.1 ENE 0 0 701022.4 0 0
1758133800  (2025-09-18 04:30) 5.4 3.9 2.9 83 1.1 ENE 0 0 701022.2 0 0
1758132000  (2025-09-18 04:00) 5.2 3.6 2.7 84 1.1 ENE 0 0 691022 0 0
1758130200  (2025-09-18 03:30) 4.5 2.8 2.1 85 1 ENE 0 0 691022 0 0
1758128400  (2025-09-18 03:00) 4.6 2.9 2.2 84 1 ENE 0 0 691022 0 0
1758126600  (2025-09-18 02:30) 4.4 2.7 2 84 1 ENE 0 0 681022.1 0 0
1758124800  (2025-09-18 02:00) 4.5 2.9 2.1 84 1.1 ENE 0 0 671022.3 0 0
1758123000  (2025-09-18 01:30) 4.8 3.1 2.3 84 1.1 ENE 0 0 581022.5 0 0
1758121200  (2025-09-18 01:00) 5 3.4 2.6 84 1.1 NE 0 0 551022.7 0 0
1758119400  (2025-09-18 00:30) 5.2 3.6 2.7 84 1.1 NE 0 0 541022.5 0 0
1758117600  (2025-09-18 00:00) 5.4 3.9 2.8 83 1.2 NE 0 0 521022.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