Recent Posts

Pages: [1] 2 3 ... 10
1
UPDATE: Still no more failures so I just now took the HP10 off of the  battery and put it on a new usb c 60watt PD power supply with ups backup.

If this stays reliable then it must be the HP10 connector....... if so I will need something to replace the duct tape with for strain relief.
2
Thanks for pointing that out.
3
Ambient Weather and Ecowitt and other Fine Offset clones / Updated WS90 manual
« Last post by olicat on Yesterday at 02:45:05 PM »
Hi!

There is now a revised and updated manual for the WS90 on the product page of the WS90.

I've just had a quick look at it - it's much more comprehensive (26 pages) than the last one (15 pages) and makes an all-encompassing impression. Even the function of switching off the flashing light is described.

And for me as a non-native speaker, it looks like good and understandable English. The good translation work, as recently noted with regard to the WS3800C manual:
Quote
The supplied manual (in paper form!) deserves this description, has A5 size and 50 pages, on which everything is explained in readable size and in understandable English (!) - well illustrated - even the sensor priority or the creation of CSV files via the Ecowitt.net service.
I have never seen a better manual from Ecowitt!
obviously continues. Thank you and keep up the good work!

Oliver
4
Weather Website PHP/AJAX scripting / Re: wxgraphic 500 error
« Last post by Ian. on Yesterday at 01:53:56 PM »
Thanks Ken

'Heat Index' can be omitted as its only used for my  signature banner.

Many thanks for your time and attention on this, as always its much appreciated.

Ian
5
Weather Website PHP/AJAX scripting / Re: wxgraphic 500 error
« Last post by saratogaWX on Yesterday at 01:12:10 PM »
So the failing entry is line 276
Quote
        $heatindex = round($heatindex, $temp_prec);

In your wxgraphic.php you have
Quote
if (preg_match('|MBrealtime.txt|', $data_file_path)){
   $use_wd_clientraw = '1';
   }//end if
which forces the use of a clientraw.txt type parsing -- keep in mind that MBrealtime.txt is NOT in clientraw.txt format, it's in Cumulus realtime.txt format (which is not natively handled by the script).  With clientraw processing, the $heatindex is looking for $data[112] and that doesn't exist in MBrealtime.txt.

The data extraction area in wxgraphic.php
Quote
if ($use_wd_clientraw == '1') {
   $data = explode(" ", $dataraw);
   // clean up and define
   $date = "$data[0]";  //MBrealtime-template position
   $time = "$data[1]";
   $baromtrend = "$data[18]"; //MBrealtime-template position
   $winddir = "$data[7]";  //MBrealtime-template position
   (float)$wind = round("$data[6]",$wind_prec); //MBrealtime-template position
   (float)$gust = round("$data[40]",$wind_prec);
   (float)$temp = "$data[2]"; //MBrealtime-template position
   (float)$humidity = "$data[3]"; //MBrealtime-template position
   (float)$barom = "$data[10]"; //MBrealtime-template position
   (float)$raintoday = "$data[9]"; //MBrealtime-template position
   (float)$windchill = "$data[24]"; //MBrealtime-template position
   (float)$dewpt = "$data[4]"; //MBrealtime-template position
   (float)$heatindex = "$data[112]";
may need to have the $data offsets adjusted to where the data is located in MBrealtime.txt, but the 112 is definitely not there.

You may be now receiving the error due to an update to PHP .. later PHP versions are much more picky about using correct data types in functions and math statements.
6
Weather Website PHP/AJAX scripting / Re: wxgraphic 500 error
« Last post by Ian. on Yesterday at 12:39:34 PM »
Hi Ken,

Thanks for looking at this, its a bit baffling as I've not touched the script or MBrealtime.

Cheers

Ian
7
Weather Website PHP/AJAX scripting / Re: wxgraphic 500 error
« Last post by saratogaWX on Yesterday at 11:57:49 AM »
This is likely caused by having '--' (missing value) in the data from your MBrealtime.txt
You'll need to post the code for your wxgraphic.php script as modified to diagnose further.
Offset, Value in MBrealtime.txt
Quote
0   18/03/2024
1   15:38:01
2   15.4
3   28
4   -3.0
5   3.1
6   3.6
7   215.0
8   0.0
9   0.0
10   1011.6
11   SW
12   3
13   m/s
14   C
15   hPa
16   mm
17   --
18   -0.2
19   27.8
20   155.6
21   2.4
22   25.5
23   46.0
24   14.8
25   0.6
26   15.6
27   15:32
28   6.6
29   06:38
30   4.5
31   11:37
32   7.6
33   11:17
34   1013.4
35   11:39
36   1011.4
37   00:39
38   5.8
39   15161
40   5.8
41   15.4
42   15.4
43   0.0
44   --
45   137.0
46   225.0
47   0.0
48   --
49   1
50   --
51   SW
52   --
53   m
54   --
55   12:05
56   --
57   --
58   1.6
8
Weather Website PHP/AJAX scripting / wxgraphic 500 error
« Last post by Ian. on Yesterday at 10:48:18 AM »
Hi All

I've just noticed that my forum signature block no longer shows Anole Computer Services Weather Graphic software, I'm using the version modified to work with Meteobridge Pro by Hymrog.

The error file shows:

Stack trace:
#0 /home3/chattris/public_html/wxgraphic/wxgraphic.php(276): round('', '1')
#1 {main}
  thrown in /home3/chattris/public_html/wxgraphic/wxgraphic.php on line 276
[06-Mar-2024 11:37:43 America/Chicago] PHP Warning:  Undefined variable $html in /home3/chattris/public_html/wxgraphic/wxgraphic.php on line 75
[06-Mar-2024 11:37:43 America/Chicago] PHP Warning:  Undefined variable $html in /home3/chattris/public_html/wxgraphic/wxgraphic.php on line 80
[06-Mar-2024 11:37:43 America/Chicago] PHP Warning:  Undefined array key 112 in /home3/chattris/public_html/wxgraphic/wxgraphic.php on line 253
[06-Mar-2024 11:37:43 America/Chicago] PHP Fatal error:  Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /home3/chattris/public_html/wxgraphic/wxgraphic.php:276

Not sure why its showing America/Chicargo as in Saratoga settings this is Europe/London

All files seem intact and I've not deleted anything that I can remember.

Any ideas how to fix this, the link to my logo page is https://www.chatteris.biz/wxlogo.php and a link to a broken logo is https://www.chatteris.biz/wxgraphic/wxgraphic.php
9
Great!  Glad you got it sorted out.
10
Custom Website Templates / Re: Regional Mesonet Map NWWN - not showing stations
« Last post by n7dq on Yesterday at 10:06:22 AM »
I installed php-intl on ubuntu 22.04 LTS and this solved the problem without any other changes.

Mike
Pages: [1] 2 3 ... 10