Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-08-24 Thread steeple ian
Hi,

Yes it is. Several users are running the template in this way. I myself run
both WeeWX and the template on a single Raspberry Pi with DietPi as the OS.

There are instructions in the repository for using a configuration such as
yours written by another user. Although they were written for a previous
version, they should give you the general idea of what to do.

Ian

On Sat, 24 Aug 2019 at 02:48, G Hammer  wrote:

> I run weewx on one server and apache is on another.
> Is this skin compatible with this configuration?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/8391077b-b03f-4633-a047-e6c06ec3ea53%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CADASSaS0E5K4GvXVMM9CZKqqa9Ck8BHTguTDY77znxGqA1134A%40mail.gmail.com.


[weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-08-23 Thread G Hammer
I run weewx on one server and apache is on another.
Is this skin compatible with this configuration?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8391077b-b03f-4633-a047-e6c06ec3ea53%40googlegroups.com.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-08-14 Thread steeple ian
Hi Malky,
I see you are using quite an old version and its not easily apparent to me
what the problem is.
I am not familiar with Gentoo Linux, I am using DietPI (Debian based) on a
Raspberry Pi 3 with PHP7.3

Here is the dump from php -m on my rig.

[PHP Modules]
apcu
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
openssl
pcntl
pcre
PDO
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

If you are still struggling with the sun module, it may be worth going
for an update to the current version.

I can walk you through it if it helps. I might learn someting about
your distro in the process :-)

Ian



On Wed, Aug 14, 2019 at 12:07 PM Malky Brown  wrote:

> Hi Ian
>
> Experiencing some real issues with the daylight/sundial module. It is
> empty and has never worked for me. Trying to get it up and running before I
> upgrade to this amazing new template.
>
> To put things in context, I am using Gentoo Linux (source based distro),
> and therefore the prerequisite "*php7.3-pear*" does not exist as such, I
> do however have
> dev-php/pear and dev-php/PEAR-PEAR installed.
>
> I have a feeling I am missing a specific php/pear module which is doing
> the "work" which populates the daylight/sundial module, or am I totally off
> the mark?
>
> It would be most helpful if you could post your output of  "*php -m*" and
> I could perhaps compare with what you have installed?
>
> I have searched all over the internet, and there's nothing to be found
> with regards to the sundial container and PHP to give me any ideas.
>
> Any pointers would be really appreciated.
>
> This is what my site looks like with the empty module
> https://tullibodyweather.uk.to/index.php
>
> Best regards
> Malky
>
> On Wednesday, 22 May 2019 10:28:01 UTC+1, steeple ian wrote:
>>
>> A major new update for the Weather34 Template for WeeWX WX-HWS
>> (WX-UB40-RRW) as just been placed in the repository. This version is based
>> on its sibling MB-UB40-RRW and provides identical visual, functional and
>> performance experience.
>>
>> Some of the new or improved features are:-
>>
>>- New w34 skin
>>- Harnesses the power of the WeeWX database to generate graphs and
>>statistical data.
>>- New style pop-up weather almanacs.
>>- Rainfall almanac reflects rain year settings in weewx.conf file.
>>- Variable look-up table.
>>- New addition charts.
>>- New addition wind map.
>>- New addition pop-up window links now visible in phone mode.
>>- Auto adjusting pop-up windows for better viewing experience on
>>smart phones and smaller tablet devices.
>>- Enhanced chart features.
>>- Dark or light chart colour theme (set by Default Theme Color in
>>Settings).
>>- Choice of 24hr or 12hr station main clock.
>>- A more streamlined installation process.
>>
>>
>> Due to the scale of the update and significant changes to settings files,
>> a new install will be required.
>>
>> A live demo can be seen at https://claydonsweather.org.uk
>>
>> Download from Github - https://github.com/steepleian/WX-HWS
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/0fc6802b-5203-477f-87ce-959c541cb8dc%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CADASSaTE_8Q041Ai8bhdvi83tbC_fPy2fgYxjYYb0zdAN7dGNw%40mail.gmail.com.


[weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-08-14 Thread Malky Brown
Hi Ian

Experiencing some real issues with the daylight/sundial module. It is empty 
and has never worked for me. Trying to get it up and running before I
upgrade to this amazing new template.

To put things in context, I am using Gentoo Linux (source based distro), 
and therefore the prerequisite "*php7.3-pear*" does not exist as such, I do 
however have
dev-php/pear and dev-php/PEAR-PEAR installed.

I have a feeling I am missing a specific php/pear module which is doing the 
"work" which populates the daylight/sundial module, or am I totally off the 
mark?

It would be most helpful if you could post your output of  "*php -m*" and I 
could perhaps compare with what you have installed?

I have searched all over the internet, and there's nothing to be found with 
regards to the sundial container and PHP to give me any ideas.

Any pointers would be really appreciated.

This is what my site looks like with the empty module
https://tullibodyweather.uk.to/index.php

Best regards
Malky

On Wednesday, 22 May 2019 10:28:01 UTC+1, steeple ian wrote:
>
> A major new update for the Weather34 Template for WeeWX WX-HWS 
> (WX-UB40-RRW) as just been placed in the repository. This version is based 
> on its sibling MB-UB40-RRW and provides identical visual, functional and 
> performance experience.
>
> Some of the new or improved features are:-
>
>- New w34 skin
>- Harnesses the power of the WeeWX database to generate graphs and 
>statistical data.
>- New style pop-up weather almanacs.
>- Rainfall almanac reflects rain year settings in weewx.conf file.
>- Variable look-up table.
>- New addition charts.
>- New addition wind map.
>- New addition pop-up window links now visible in phone mode.
>- Auto adjusting pop-up windows for better viewing experience on smart 
>phones and smaller tablet devices.
>- Enhanced chart features.
>- Dark or light chart colour theme (set by Default Theme Color in 
>Settings).
>- Choice of 24hr or 12hr station main clock.
>- A more streamlined installation process.
>
>
> Due to the scale of the update and significant changes to settings files, 
> a new install will be required.
>
> A live demo can be seen at https://claydonsweather.org.uk
>
> Download from Github - https://github.com/steepleian/WX-HWS
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/0fc6802b-5203-477f-87ce-959c541cb8dc%40googlegroups.com.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-27 Thread steeple ian
Hi Jake,

I now see what is happening and the reason that you are having to change things 
when they relate to non metric units.

The template is designed to receive realtime data in metric units. One of the 
early roots for this template was based on Cumulus realtime.txt, which by 
default emits metric units, that is why the CRT extension should be set for 
METRIC in the weewx.conf file (as per the snippet in the install guide. Unless, 
of course you are also using CRT for an additional purpose which requires US 
units). Give it a try with the original files and see what happens.

I will update the instructions to emphasise this important point.

Regarding the dew point graphs appearing instead of rainfall, I did exactly as 
you suggested. I realised what happened when I was updating the charts for 
another purpose 3 days ago and I fixed them at the same time.

Regards Ian

> On 27 May 2019, at 19:22, Jd D  wrote:
> 
> Hi Ian,
> 
> It is set to
> unit_system = US
> 
> Also a couple chart items.
> 1) Yearly and Monthly rainfall charts are dew point charts in your release. 
> Looks like something got overwritten or renamed. The file names are correct 
> just the code inside does not match the file name.
> 
> 2) Also had to comment out the conv code for the barometer charts so the 
> charts matched my units inHg.
> 
> Thanks Jerry
> 
> On Monday, May 27, 2019 at 11:11:23 AM UTC-7, steeple ian wrote:
> Jerry,
> 
> Can I just check, have you got realtime.txt set for US units or METRIC units 
> in your weewx.conf file?
> 
> On Mon, May 27, 2019 at 6:09 PM steeple ian > wrote:
> Hi Jerry,
> That’s excellent information. I will be very interested to have a copy of the 
> livedata and other file changes when you have completed them.
> Thank you very much,
> Ian 
> 
> Sent from my iPhone
> 
> On 27 May 2019, at 17:53, Jd D > wrote:
> 
>> Hi Ian,
>> 
>> Here are a couple more. The following code exists in multiple graphs and 
>> causes the graphs to be messed up since the data is already Fahrenheit . Not 
>> sure why this was needed at all. I commented it out to fixed the graphs
>> .//  if ($tempunit == 'F') {
>> //  $conv = '(9 / 5) + 32';
>> //  } else {
>> $conv = '1';
>> //  }
>> 
>> Also in shared.php looks like a cut and paste error deleted most of the code 
>> for function anyToF. The bold text below was what I added.
>>  
>> function anyToF($field){
>> global $weather;
>> if ($weather["temp_units"] == 'F'){
>> return $field;
>> } else {
>> 
>> return cToFDirect ($field);
>> }
>> }
>> 
>> In barometer.php there is a hard coded 100 in a for loop that blows up. I 
>> changed it to be the sizeof the array.
>> for ($i = 0; $i < sizeof($parsed_json); $i++) {
>> $magnitude[$i]=$parsed_json{$i}{'magnitude'};$eqtitle[$i]=$parsed_json{$i}['title'];$depth[$i]=$parsed_json{$i}['depth'];$time[$i]=$parsed_json{$i}['date_time'];
>> 
>> In livedata.php I made a number of changes to handle when the data was not 
>> as expected. Like if the time value was a string instead of a integer. I 
>> just put a (int) in front of the variable so that it would work for both 
>> string and integer values. Did the same for float for wind speed. Also there 
>> were a number of places where N/A was used when data did not exists and then 
>> those variables where used in a number format function which then errors 
>> out. I just check to see if the variable is_numeric before calling the 
>> number format function. I will send you my livedata.php and other files that 
>> I have changed when I am all done if you like.
>> 
>> I still see few more things that do not look right that I still need to 
>> track down.
>> Take care
>> Jerry
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx...@googlegroups.com <>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/271661a7-066c-40ae-a6c9-40c622b1faed%40googlegroups.com
>>  
>> .
>> For more options, visit https://groups.google.com/d/optout 
>> .
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to weewx-user+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/cdf8a5f6-1543-449b-97ee-8cf564168fcf%40googlegroups.com
>  
> .
> For more options, visit 

Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-27 Thread steeple ian
Hello Praveen,

This is not a skin in the normal accepted WeeWX, it is a self-contained 
dashboard template which is harnessing the power of WeeWX to feed it with live 
and archive data. There are three versions of this template, one for 
Meteobridge (the parent), one for Cumulus and and this one for WeeWX. The WeeWX 
version is by far the most versatile with the vast number of weather station 
hardware that it connect to and the ease in which archive data can be extracted 
from the database. As this version tracks the design features of the parent 
template as closely as possible, NOAA reports are not included. However, it 
would be very straightforward to do so, either by creating a link in the menu 
back to the NOAA reports in, for example,  the Standard or Seasons skin or by 
pop-up windows in the style of the template (which would be my preferred 
solution as it is in the spirit of the designer’s original concept).  

I would be very open to anyone who would want to collaborate on this idea.

Ian 

> On 27 May 2019, at 21:55, Praveen Chandrasekaran  
> wrote:
> 
> Where is the link for noaa reports in this skin ?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/24609903-708e-483d-8aa7-3efcba091130%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/F393CFC7-0503-4CCB-886B-DFBFEF3B37FA%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-27 Thread Praveen Chandrasekaran
Where is the link for noaa reports in this skin ?

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/24609903-708e-483d-8aa7-3efcba091130%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-27 Thread Jd D
Hi Ian,

It is set to
unit_system = US

Also a couple chart items.
1) Yearly and Monthly rainfall charts are dew point charts in your release. 
Looks like something got overwritten or renamed. The file names are correct 
just the code inside does not match the file name.

2) Also had to comment out the conv code for the barometer charts so the 
charts matched my units inHg.

Thanks Jerry

On Monday, May 27, 2019 at 11:11:23 AM UTC-7, steeple ian wrote:
>
> Jerry,
>
> Can I just check, have you got realtime.txt set for US units or METRIC 
> units in your weewx.conf file?
>
> On Mon, May 27, 2019 at 6:09 PM steeple ian  > wrote:
>
>> Hi Jerry,
>> That’s excellent information. I will be very interested to have a copy of 
>> the livedata and other file changes when you have completed them.
>> Thank you very much,
>> Ian 
>>
>> Sent from my iPhone
>>
>> On 27 May 2019, at 17:53, Jd D > 
>> wrote:
>>
>> Hi Ian,
>>
>> Here are a couple more. The following code exists in multiple graphs and 
>> causes the graphs to be messed up since the data is already Fahrenheit . 
>> Not sure why this was needed at all. I commented it out to fixed the graphs
>> .//  if ($tempunit == 'F') {
>> //  $conv = '(9 / 5) + 32';
>> //  } else {
>> $conv = '1';
>> //  }
>>
>> Also in shared.php looks like a cut and paste error deleted most of the 
>> code for function anyToF. The bold text below was what I added.
>>  
>> function anyToF($field){
>> *global $weather;*
>> *if ($weather["temp_units"] == 'F'){*
>> *return $field;*
>> *} else {*
>>
>> return cToFDirect ($field);
>> }
>> *}*
>>
>> In barometer.php there is a hard coded 100 in a for loop that blows up. I 
>> changed it to be the sizeof the array.
>> for ($i = 0; $i <* sizeof($parsed_json)*; $i++) {
>>
>> $magnitude[$i]=$parsed_json{$i}{'magnitude'};$eqtitle[$i]=$parsed_json{$i}['title'];$depth[$i]=$parsed_json{$i}['depth'];$time[$i]=$parsed_json{$i}['date_time'];
>>
>> In livedata.php I made a number of changes to handle when the data was 
>> not as expected. Like if the time value was a string instead of a integer. 
>> I just put a (int) in front of the variable so that it would work for both 
>> string and integer values. Did the same for float for wind speed. Also 
>> there were a number of places where N/A was used when data did not exists 
>> and then those variables where used in a number format function which then 
>> errors out. I just check to see if the variable is_numeric before calling 
>> the number format function. I will send you my livedata.php and other files 
>> that I have changed when I am all done if you like.
>>
>> I still see few more things that do not look right that I still need to 
>> track down.
>> Take care
>> Jerry
>>
>>>
 -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/271661a7-066c-40ae-a6c9-40c622b1faed%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/cdf8a5f6-1543-449b-97ee-8cf564168fcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-27 Thread steeple ian
Jerry,

Can I just check, have you got realtime.txt set for US units or METRIC
units in your weewx.conf file?

On Mon, May 27, 2019 at 6:09 PM steeple ian  wrote:

> Hi Jerry,
> That’s excellent information. I will be very interested to have a copy of
> the livedata and other file changes when you have completed them.
> Thank you very much,
> Ian
>
> Sent from my iPhone
>
> On 27 May 2019, at 17:53, Jd D  wrote:
>
> Hi Ian,
>
> Here are a couple more. The following code exists in multiple graphs and
> causes the graphs to be messed up since the data is already Fahrenheit .
> Not sure why this was needed at all. I commented it out to fixed the graphs
> .//  if ($tempunit == 'F') {
> //  $conv = '(9 / 5) + 32';
> //  } else {
> $conv = '1';
> //  }
>
> Also in shared.php looks like a cut and paste error deleted most of the
> code for function anyToF. The bold text below was what I added.
>
> function anyToF($field){
> *global $weather;*
> *if ($weather["temp_units"] == 'F'){*
> *return $field;*
> *} else {*
>
> return cToFDirect ($field);
> }
> *}*
>
> In barometer.php there is a hard coded 100 in a for loop that blows up. I
> changed it to be the sizeof the array.
> for ($i = 0; $i <* sizeof($parsed_json)*; $i++) {
>
> $magnitude[$i]=$parsed_json{$i}{'magnitude'};$eqtitle[$i]=$parsed_json{$i}['title'];$depth[$i]=$parsed_json{$i}['depth'];$time[$i]=$parsed_json{$i}['date_time'];
>
> In livedata.php I made a number of changes to handle when the data was not
> as expected. Like if the time value was a string instead of a integer. I
> just put a (int) in front of the variable so that it would work for both
> string and integer values. Did the same for float for wind speed. Also
> there were a number of places where N/A was used when data did not exists
> and then those variables where used in a number format function which then
> errors out. I just check to see if the variable is_numeric before calling
> the number format function. I will send you my livedata.php and other files
> that I have changed when I am all done if you like.
>
> I still see few more things that do not look right that I still need to
> track down.
> Take care
> Jerry
>
>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/271661a7-066c-40ae-a6c9-40c622b1faed%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CADASSaTBGo%2BwnnAkNCc0DhnLsNm1XAfq_QGOOe2CCQ2MGRB7dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-27 Thread Jd D
Hi Ian,

The calculation for Feels value is not displaying correctly for my 
location. It is like 30+ degrees too high. I know there are number of ways 
this can be done and there are numerous thoughts on what is best but for me 
I use the python program written by jfcarr  located here 
https://gist.github.com/jfcarr/e68593c92c878257550d It seems to match my 
local weather stations and takes into account wind speed. So I converted it 
from python to php and added it to livedata.php. Note it works on 
Fahrenheit temps so a conversion to C temps would be needed on the output 
and the input would need  a C to F conversion as well. Here is the code.
  
>
> if ($weather['temp'] <= 50 and $weather["wind_speed"] >= 3){
> $vFeelsLike = 35.74 + (0.6215*$weather['temp']) - 
> 35.75*($weather["wind_speed"]**0.16) + 
> ((0.4275*$weather['temp'])*($weather["wind_speed"]**0.16));}
> else{
> $vFeelsLike = $weather['temp'];}
> if ($vFeelsLike == $weather['temp'] and $weather['temp'] >= 80){
> $vFeelsLike = 0.5 * ($weather['temp'] + 61.0 + 
> (($weather['temp']-68.0)*1.2) + ($weather['humidity']*0.094));}
> if ($vFeelsLike >= 80){
> $vFeelsLike = -42.379 + 2.04901523*$weather['temp'] + 
> 10.14333127*$weather['humidity'] - 
> .22475541*$weather['temp']*$weather['humidity'] - 
> .00683783*$weather['temp']*$weather['temp'] - 
> .05481717*$weather['humidity']*$weather['humidity'] + 
> .00122874*$weather['temp']*$weather['temp']*$weather['humidity'] + 
> .00085282*$weather['temp']*$weather['humidity']*$weather['humidity'] - 
> .0199*$weather['temp']*$weather['temp']*$weather['humidity']*$weather['humidity'];}
> if ($weather['humidity'] < 13 and $weather['temp'] >= 80 and 
> $weather['temp'] <= 112){
> $vFeelsLike = $vFeelsLike - 
> ((13-$weather['humidity'])/4)*sqrt((17-abs($weather['temp']-95.))/17);}
> if ($weather['humidity'] > 85 and $weather['temp'] >= 80 
> and $weather['temp'] <= 87){
> $vFeelsLike = $vFeelsLike + 
> (($weather['humidity']-85)/10) * ((87-$weather['temp'])/5);}
> $weather['realfeel'] =  round($vFeelsLike,1);
>
> Thanks
Jerry 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fc2ccbe6-b3d9-4316-bec0-6fec0016025a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-27 Thread steeple ian
Hi Jerry,
That’s excellent information. I will be very interested to have a copy of the 
livedata and other file changes when you have completed them.
Thank you very much,
Ian 

Sent from my iPhone

> On 27 May 2019, at 17:53, Jd D  wrote:
> 
> Hi Ian,
> 
> Here are a couple more. The following code exists in multiple graphs and 
> causes the graphs to be messed up since the data is already Fahrenheit . Not 
> sure why this was needed at all. I commented it out to fixed the graphs
> .//  if ($tempunit == 'F') {
> //  $conv = '(9 / 5) + 32';
> //  } else {
> $conv = '1';
> //  }
> 
> Also in shared.php looks like a cut and paste error deleted most of the code 
> for function anyToF. The bold text below was what I added.
>  
> function anyToF($field){
> global $weather;
> if ($weather["temp_units"] == 'F'){
> return $field;
> } else {
> 
> return cToFDirect ($field);
> }
> }
> 
> In barometer.php there is a hard coded 100 in a for loop that blows up. I 
> changed it to be the sizeof the array.
> for ($i = 0; $i < sizeof($parsed_json); $i++) {
> $magnitude[$i]=$parsed_json{$i}{'magnitude'};$eqtitle[$i]=$parsed_json{$i}['title'];$depth[$i]=$parsed_json{$i}['depth'];$time[$i]=$parsed_json{$i}['date_time'];
> 
> In livedata.php I made a number of changes to handle when the data was not as 
> expected. Like if the time value was a string instead of a integer. I just 
> put a (int) in front of the variable so that it would work for both string 
> and integer values. Did the same for float for wind speed. Also there were a 
> number of places where N/A was used when data did not exists and then those 
> variables where used in a number format function which then errors out. I 
> just check to see if the variable is_numeric before calling the number format 
> function. I will send you my livedata.php and other files that I have changed 
> when I am all done if you like.
> 
> I still see few more things that do not look right that I still need to track 
> down.
> Take care
> Jerry
>>> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/271661a7-066c-40ae-a6c9-40c622b1faed%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/38968EB8-CCDB-4E94-83F0-0D4FB7050282%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-27 Thread Jd D
Hi Ian,

Here are a couple more. The following code exists in multiple graphs and 
causes the graphs to be messed up since the data is already Fahrenheit . 
Not sure why this was needed at all. I commented it out to fixed the graphs
.//  if ($tempunit == 'F') {
//  $conv = '(9 / 5) + 32';
//  } else {
$conv = '1';
//  }

Also in shared.php looks like a cut and paste error deleted most of the 
code for function anyToF. The bold text below was what I added.
 
function anyToF($field){
*global $weather;*
*if ($weather["temp_units"] == 'F'){*
*return $field;*
*} else {*

return cToFDirect ($field);
}
*}*

In barometer.php there is a hard coded 100 in a for loop that blows up. I 
changed it to be the sizeof the array.
for ($i = 0; $i <* sizeof($parsed_json)*; $i++) {
$magnitude[$i]=$parsed_json{$i}{'magnitude'};$eqtitle[$i]=$parsed_json{$i}['title'];$depth[$i]=$parsed_json{$i}['depth'];$time[$i]=$parsed_json{$i}['date_time'];

In livedata.php I made a number of changes to handle when the data was not 
as expected. Like if the time value was a string instead of a integer. I 
just put a (int) in front of the variable so that it would work for both 
string and integer values. Did the same for float for wind speed. Also 
there were a number of places where N/A was used when data did not exists 
and then those variables where used in a number format function which then 
errors out. I just check to see if the variable is_numeric before calling 
the number format function. I will send you my livedata.php and other files 
that I have changed when I am all done if you like.

I still see few more things that do not look right that I still need to 
track down.
Take care
Jerry

>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/271661a7-066c-40ae-a6c9-40c622b1faed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-27 Thread steeple ian
Yes it looks like that. I have fixed that as well.

I would be interested to see what you have done with livedata.php as I am
continuing to evolve this for the WeeWX version.

Thanks,
Ian

On Mon, May 27, 2019 at 5:21 AM Jd D  wrote:

> Hi Ian,
> Also notice some left-over debug code in shared.php that prevents
> Fahrenheit temps from displaying correctly.
>
> *$weather["temp_units"]='C'; *
> if ($weather["temp_units"] == 'C'){
> $heatIndex = fToCDirect($heatIndex);
>
> Thanks Jerry
>
> On Sunday, May 26, 2019 at 7:28:06 PM UTC-7, Jd D wrote:
>>
>> Hi Ian,
>>
>> Noticed this in weewxcron.php
>>
>> if ($position6=="forecast3ds.php" || $position6=='forecast3wu.php' ||
>> $position6=='forecast3wularge.php' || *$position4   = "advisory.php")*{
>>
>> I think you want ==
>>
>> Also I cleaned up most of my apache errors by making small changes to
>> livedata.php
>>
>> Thanks Jerry
>>
>> On Sunday, May 26, 2019 at 11:47:25 AM UTC-7, Jd D wrote:
>>>
>>> Hi Ian,
>>> Right now just using the template for my local weather station and my
>>> nearby metar.
>>> Here is my settings1.php.
>>> I XXed out personal stuff.
>>> Also I tried to use the least number of sections so to reduce the number
>>> of apache errors I am logging.
>>> Since I cut and pasted the file into the replay so you can see where the
>>> cut and pastes happen. :-)
>>> I can send my w34stats.php file if that would help.
>>> I can work these issues if you rather and just send you what I find if
>>> that is a better. I have the time and experience with php/javascript and
>>> python.
>>> Thanks Jerry
>>>
>>>  $apikey = "";
>>>  $wuapikey = "";
>>>  $weatherflowID = "";
>>>  $weatherflowoption   = "no";
>>>  $weatherflowlightning = "";
>>>  $weatherflowmapzoom   = "";
>>>  $id = "";
>>>  $purpleairID = "";
>>>  $purpleairhardware   = "no";
>>>  $metarapikey ="";
>>>  $TZ = "X";
>>>  $UTC = "XX";
>>>  $lon = X;
>>>  $lat = ;
>>>  $darkskyunit   = "us";
>>>  $wuapiunit   = "h";
>>>  $stationlocation = "XXX";
>>>  $stationName = "X";
>>>  $moonadj = "";
>>>  $minmag = "3";
>>>  $unit = "english";
>>>  $metric = false;
>>>  $elevation = "1792";
>>>  $uk = false;
>>>  $usa = true;
>>>  $scandinavia = false;
>>>  $restoftheworld = false;
>>>  $windunit = "mph";
>>>  $distanceunit = "mi";
>>>  $tempunit = "F";
>>>  $rainunit  = "in";
>>>  $rainrate = "/h";
>>>  $pressureunit  = "inHg";
>>>  $livedataFormat = "WeeWX-CRT";
>>>  $livedata   = "demodata/realtime.txt";
>>>  $currentconditions   = "currentconditionsds.php";
>>>  $chartsource   = "mbcharts";
>>>  $extralinks   = "yes";
>>>  $languages   = "no";
>>>  $dateFormat   = "m-d-Y";
>>>  $timeFormat= "g:i:s a";
>>>  $timeFormatShort= "g:i";
>>>  $clockformat= "12";
>>>  $showDate = false;
>>>  $temperaturemodule   = "temperaturein.php";
>>>  $position1   = "temperatureyear.php";
>>>  $position2   = "temperatureyear.php";
>>>  $position3   = "temperatureyear.php";
>>>  $position4   = "temperatureyear.php";
>>>  $position1title   = "1";
>>>  $position2title   = "2";
>>>  $position3title   = "3";
>>>  $position4title   = "4"
>>>  $position6title   = "6";
>>> $position6   = "";
>>>
 $position12title   = "12";
 $position12   = "indoortemperature.php";
 $positionlastmoduletitle   = "l";
 $positionlastmodule   = "indoortemperature.php";
 $webcamurl   = "";
 $email= "";
 $twitter   = "";
 $theme1   = "dark";
 $since= "2016";
 $weatherhardware   = "La Crosse";
 $mbplatform   = "WeeWX";
 $davis   = "No";
 $db_host   = "localhost";
 $db_user= "root";
 $db_pass  = "";
 $db_name   = "weatherstation";
 $notifications = "yes";
 $sunoption = "";
 $hemisphere   = "";
 $metar   = "yes";
 $icao1   = "";
 $airport1   = "";
 $airport1dist   = "10";
 $defaultlanguage   = "en";
 $language= "en";
 $password= "";
 $flag   = "us";
 $dshourly   = "no";
 $manifestShortName = "";

 --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/4ebf7f6b-a6d7-4e89-89b2-d50d1b44d3cf%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CADASSaQH7zoMgMAtza7-T%3D_TUMWfetx4L71kckQ1jjVAoryULw%40mail.gmail.com.
For more options, visit 

Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-27 Thread steeple ian
Thanks Jerry,

Not sure how that one slipped through as it is correct in my working live
copy. Now corrected in the repository.

Ian

On Mon, May 27, 2019 at 3:28 AM Jd D  wrote:

> Hi Ian,
>
> Noticed this in weewxcron.php
>
> if ($position6=="forecast3ds.php" || $position6=='forecast3wu.php' ||
> $position6=='forecast3wularge.php' || *$position4   = "advisory.php")*{
>
> I think you want ==
>
> Also I cleaned up most of my apache errors by making small changes to
> livedata.php
>
> Thanks Jerry
>
> On Sunday, May 26, 2019 at 11:47:25 AM UTC-7, Jd D wrote:
>>
>> Hi Ian,
>> Right now just using the template for my local weather station and my
>> nearby metar.
>> Here is my settings1.php.
>> I XXed out personal stuff.
>> Also I tried to use the least number of sections so to reduce the number
>> of apache errors I am logging.
>> Since I cut and pasted the file into the replay so you can see where the
>> cut and pastes happen. :-)
>> I can send my w34stats.php file if that would help.
>> I can work these issues if you rather and just send you what I find if
>> that is a better. I have the time and experience with php/javascript and
>> python.
>> Thanks Jerry
>>
>>  $apikey = "";
>>  $wuapikey = "";
>>  $weatherflowID = "";
>>  $weatherflowoption   = "no";
>>  $weatherflowlightning = "";
>>  $weatherflowmapzoom   = "";
>>  $id = "";
>>  $purpleairID = "";
>>  $purpleairhardware   = "no";
>>  $metarapikey ="";
>>  $TZ = "X";
>>  $UTC = "XX";
>>  $lon = X;
>>  $lat = ;
>>  $darkskyunit   = "us";
>>  $wuapiunit   = "h";
>>  $stationlocation = "XXX";
>>  $stationName = "X";
>>  $moonadj = "";
>>  $minmag = "3";
>>  $unit = "english";
>>  $metric = false;
>>  $elevation = "1792";
>>  $uk = false;
>>  $usa = true;
>>  $scandinavia = false;
>>  $restoftheworld = false;
>>  $windunit = "mph";
>>  $distanceunit = "mi";
>>  $tempunit = "F";
>>  $rainunit  = "in";
>>  $rainrate = "/h";
>>  $pressureunit  = "inHg";
>>  $livedataFormat = "WeeWX-CRT";
>>  $livedata   = "demodata/realtime.txt";
>>  $currentconditions   = "currentconditionsds.php";
>>  $chartsource   = "mbcharts";
>>  $extralinks   = "yes";
>>  $languages   = "no";
>>  $dateFormat   = "m-d-Y";
>>  $timeFormat= "g:i:s a";
>>  $timeFormatShort= "g:i";
>>  $clockformat= "12";
>>  $showDate = false;
>>  $temperaturemodule   = "temperaturein.php";
>>  $position1   = "temperatureyear.php";
>>  $position2   = "temperatureyear.php";
>>  $position3   = "temperatureyear.php";
>>  $position4   = "temperatureyear.php";
>>  $position1title   = "1";
>>  $position2title   = "2";
>>  $position3title   = "3";
>>  $position4title   = "4"
>>  $position6title   = "6";
>> $position6   = "";
>>
>>> $position12title   = "12";
>>> $position12   = "indoortemperature.php";
>>> $positionlastmoduletitle   = "l";
>>> $positionlastmodule   = "indoortemperature.php";
>>> $webcamurl   = "";
>>> $email= "";
>>> $twitter   = "";
>>> $theme1   = "dark";
>>> $since= "2016";
>>> $weatherhardware   = "La Crosse";
>>> $mbplatform   = "WeeWX";
>>> $davis   = "No";
>>> $db_host   = "localhost";
>>> $db_user= "root";
>>> $db_pass  = "";
>>> $db_name   = "weatherstation";
>>> $notifications = "yes";
>>> $sunoption = "";
>>> $hemisphere   = "";
>>> $metar   = "yes";
>>> $icao1   = "";
>>> $airport1   = "";
>>> $airport1dist   = "10";
>>> $defaultlanguage   = "en";
>>> $language= "en";
>>> $password= "";
>>> $flag   = "us";
>>> $dshourly   = "no";
>>> $manifestShortName = "";
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/e0799a00-01e7-4f85-9364-a61a8ebb5cc3%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CADASSaRhqfiB0L6Dtr2NiH3wS4zhPRGAFNVKFCjqnqS3cSH%2BsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-26 Thread Jd D
Hi Ian,
Also notice some left-over debug code in shared.php that prevents 
Fahrenheit temps from displaying correctly.

*$weather["temp_units"]='C'; *
if ($weather["temp_units"] == 'C'){
$heatIndex = fToCDirect($heatIndex);

Thanks Jerry
 
On Sunday, May 26, 2019 at 7:28:06 PM UTC-7, Jd D wrote:
>
> Hi Ian,
>
> Noticed this in weewxcron.php
>
> if ($position6=="forecast3ds.php" || $position6=='forecast3wu.php' || 
> $position6=='forecast3wularge.php' || *$position4   = "advisory.php")*{
>
> I think you want ==
>
> Also I cleaned up most of my apache errors by making small changes to 
> livedata.php
>
> Thanks Jerry
>
> On Sunday, May 26, 2019 at 11:47:25 AM UTC-7, Jd D wrote:
>>
>> Hi Ian,
>> Right now just using the template for my local weather station and my 
>> nearby metar. 
>> Here is my settings1.php. 
>> I XXed out personal stuff. 
>> Also I tried to use the least number of sections so to reduce the number 
>> of apache errors I am logging.
>> Since I cut and pasted the file into the replay so you can see where the 
>> cut and pastes happen. :-)
>> I can send my w34stats.php file if that would help.
>> I can work these issues if you rather and just send you what I find if 
>> that is a better. I have the time and experience with php/javascript and 
>> python.
>> Thanks Jerry
>>
>>  $apikey = ""; 
>>  $wuapikey = "";
>>  $weatherflowID = "";
>>  $weatherflowoption   = "no";
>>  $weatherflowlightning = "";
>>  $weatherflowmapzoom   = "";
>>  $id = "";
>>  $purpleairID = "";
>>  $purpleairhardware   = "no";
>>  $metarapikey ="";
>>  $TZ = "X";
>>  $UTC = "XX";
>>  $lon = X;
>>  $lat = ;
>>  $darkskyunit   = "us";
>>  $wuapiunit   = "h";
>>  $stationlocation = "XXX";
>>  $stationName = "X";
>>  $moonadj = "";
>>  $minmag = "3";
>>  $unit = "english";
>>  $metric = false;
>>  $elevation = "1792";
>>  $uk = false;
>>  $usa = true;
>>  $scandinavia = false;
>>  $restoftheworld = false;
>>  $windunit = "mph";
>>  $distanceunit = "mi";
>>  $tempunit = "F";
>>  $rainunit  = "in";
>>  $rainrate = "/h";
>>  $pressureunit  = "inHg";
>>  $livedataFormat = "WeeWX-CRT";
>>  $livedata   = "demodata/realtime.txt";
>>  $currentconditions   = "currentconditionsds.php";
>>  $chartsource   = "mbcharts";
>>  $extralinks   = "yes";
>>  $languages   = "no";
>>  $dateFormat   = "m-d-Y";
>>  $timeFormat= "g:i:s a";
>>  $timeFormatShort= "g:i";
>>  $clockformat= "12";
>>  $showDate = false;
>>  $temperaturemodule   = "temperaturein.php";
>>  $position1   = "temperatureyear.php";
>>  $position2   = "temperatureyear.php";
>>  $position3   = "temperatureyear.php";
>>  $position4   = "temperatureyear.php";
>>  $position1title   = "1";
>>  $position2title   = "2"; 
>>  $position3title   = "3";
>>  $position4title   = "4"
>>  $position6title   = "6";
>> $position6   = "";
>>
>>> $position12title   = "12";
>>> $position12   = "indoortemperature.php";
>>> $positionlastmoduletitle   = "l";
>>> $positionlastmodule   = "indoortemperature.php";
>>> $webcamurl   = "";
>>> $email= "";
>>> $twitter   = "";
>>> $theme1   = "dark";
>>> $since= "2016";
>>> $weatherhardware   = "La Crosse";
>>> $mbplatform   = "WeeWX";
>>> $davis   = "No";
>>> $db_host   = "localhost";
>>> $db_user= "root";
>>> $db_pass  = "";
>>> $db_name   = "weatherstation";
>>> $notifications = "yes";
>>> $sunoption = "";
>>> $hemisphere   = "";
>>> $metar   = "yes";
>>> $icao1   = "";
>>> $airport1   = "";
>>> $airport1dist   = "10";
>>> $defaultlanguage   = "en";
>>> $language= "en";
>>> $password= "";
>>> $flag   = "us";
>>> $dshourly   = "no";
>>> $manifestShortName = "";
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4ebf7f6b-a6d7-4e89-89b2-d50d1b44d3cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-26 Thread Jd D
Hi Ian,

Noticed this in weewxcron.php

if ($position6=="forecast3ds.php" || $position6=='forecast3wu.php' || 
$position6=='forecast3wularge.php' || *$position4   = "advisory.php")*{

I think you want ==

Also I cleaned up most of my apache errors by making small changes to 
livedata.php

Thanks Jerry

On Sunday, May 26, 2019 at 11:47:25 AM UTC-7, Jd D wrote:
>
> Hi Ian,
> Right now just using the template for my local weather station and my 
> nearby metar. 
> Here is my settings1.php. 
> I XXed out personal stuff. 
> Also I tried to use the least number of sections so to reduce the number 
> of apache errors I am logging.
> Since I cut and pasted the file into the replay so you can see where the 
> cut and pastes happen. :-)
> I can send my w34stats.php file if that would help.
> I can work these issues if you rather and just send you what I find if 
> that is a better. I have the time and experience with php/javascript and 
> python.
> Thanks Jerry
>
>  $apikey = ""; 
>  $wuapikey = "";
>  $weatherflowID = "";
>  $weatherflowoption   = "no";
>  $weatherflowlightning = "";
>  $weatherflowmapzoom   = "";
>  $id = "";
>  $purpleairID = "";
>  $purpleairhardware   = "no";
>  $metarapikey ="";
>  $TZ = "X";
>  $UTC = "XX";
>  $lon = X;
>  $lat = ;
>  $darkskyunit   = "us";
>  $wuapiunit   = "h";
>  $stationlocation = "XXX";
>  $stationName = "X";
>  $moonadj = "";
>  $minmag = "3";
>  $unit = "english";
>  $metric = false;
>  $elevation = "1792";
>  $uk = false;
>  $usa = true;
>  $scandinavia = false;
>  $restoftheworld = false;
>  $windunit = "mph";
>  $distanceunit = "mi";
>  $tempunit = "F";
>  $rainunit  = "in";
>  $rainrate = "/h";
>  $pressureunit  = "inHg";
>  $livedataFormat = "WeeWX-CRT";
>  $livedata   = "demodata/realtime.txt";
>  $currentconditions   = "currentconditionsds.php";
>  $chartsource   = "mbcharts";
>  $extralinks   = "yes";
>  $languages   = "no";
>  $dateFormat   = "m-d-Y";
>  $timeFormat= "g:i:s a";
>  $timeFormatShort= "g:i";
>  $clockformat= "12";
>  $showDate = false;
>  $temperaturemodule   = "temperaturein.php";
>  $position1   = "temperatureyear.php";
>  $position2   = "temperatureyear.php";
>  $position3   = "temperatureyear.php";
>  $position4   = "temperatureyear.php";
>  $position1title   = "1";
>  $position2title   = "2"; 
>  $position3title   = "3";
>  $position4title   = "4"
>  $position6title   = "6";
> $position6   = "";
>
>> $position12title   = "12";
>> $position12   = "indoortemperature.php";
>> $positionlastmoduletitle   = "l";
>> $positionlastmodule   = "indoortemperature.php";
>> $webcamurl   = "";
>> $email= "";
>> $twitter   = "";
>> $theme1   = "dark";
>> $since= "2016";
>> $weatherhardware   = "La Crosse";
>> $mbplatform   = "WeeWX";
>> $davis   = "No";
>> $db_host   = "localhost";
>> $db_user= "root";
>> $db_pass  = "";
>> $db_name   = "weatherstation";
>> $notifications = "yes";
>> $sunoption = "";
>> $hemisphere   = "";
>> $metar   = "yes";
>> $icao1   = "";
>> $airport1   = "";
>> $airport1dist   = "10";
>> $defaultlanguage   = "en";
>> $language= "en";
>> $password= "";
>> $flag   = "us";
>> $dshourly   = "no";
>> $manifestShortName = "";
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e0799a00-01e7-4f85-9364-a61a8ebb5cc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-26 Thread Jd D
Hi Ian,
Right now just using the template for my local weather station and my 
nearby metar. 
Here is my settings1.php. 
I XXed out personal stuff. 
Also I tried to use the least number of sections so to reduce the number of 
apache errors I am logging.
Since I cut and pasted the file into the replay so you can see where the 
cut and pastes happen. :-)
I can send my w34stats.php file if that would help.
I can work these issues if you rather and just send you what I find if that 
is a better. I have the time and experience with php/javascript and python.
Thanks Jerry

 $apikey = ""; 
 $wuapikey = "";
 $weatherflowID = "";
 $weatherflowoption   = "no";
 $weatherflowlightning = "";
 $weatherflowmapzoom   = "";
 $id = "";
 $purpleairID = "";
 $purpleairhardware   = "no";
 $metarapikey ="";
 $TZ = "X";
 $UTC = "XX";
 $lon = X;
 $lat = ;
 $darkskyunit   = "us";
 $wuapiunit   = "h";
 $stationlocation = "XXX";
 $stationName = "X";
 $moonadj = "";
 $minmag = "3";
 $unit = "english";
 $metric = false;
 $elevation = "1792";
 $uk = false;
 $usa = true;
 $scandinavia = false;
 $restoftheworld = false;
 $windunit = "mph";
 $distanceunit = "mi";
 $tempunit = "F";
 $rainunit  = "in";
 $rainrate = "/h";
 $pressureunit  = "inHg";
 $livedataFormat = "WeeWX-CRT";
 $livedata   = "demodata/realtime.txt";
 $currentconditions   = "currentconditionsds.php";
 $chartsource   = "mbcharts";
 $extralinks   = "yes";
 $languages   = "no";
 $dateFormat   = "m-d-Y";
 $timeFormat= "g:i:s a";
 $timeFormatShort= "g:i";
 $clockformat= "12";
 $showDate = false;
 $temperaturemodule   = "temperaturein.php";
 $position1   = "temperatureyear.php";
 $position2   = "temperatureyear.php";
 $position3   = "temperatureyear.php";
 $position4   = "temperatureyear.php";
 $position1title   = "1";
 $position2title   = "2"; 
 $position3title   = "3";
 $position4title   = "4"
 $position6title   = "6";
$position6   = "";

> $position12title   = "12";
> $position12   = "indoortemperature.php";
> $positionlastmoduletitle   = "l";
> $positionlastmodule   = "indoortemperature.php";
> $webcamurl   = "";
> $email= "";
> $twitter   = "";
> $theme1   = "dark";
> $since= "2016";
> $weatherhardware   = "La Crosse";
> $mbplatform   = "WeeWX";
> $davis   = "No";
> $db_host   = "localhost";
> $db_user= "root";
> $db_pass  = "";
> $db_name   = "weatherstation";
> $notifications = "yes";
> $sunoption = "";
> $hemisphere   = "";
> $metar   = "yes";
> $icao1   = "";
> $airport1   = "";
> $airport1dist   = "10";
> $defaultlanguage   = "en";
> $language= "en";
> $password= "";
> $flag   = "us";
> $dshourly   = "no";
> $manifestShortName = "";
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/5d103a7d-28ba-43cb-a962-d09c32ce46f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-26 Thread steeple ian
Can you expand on that please. Do you mean that you are deliberately not using 
WU or DS for forecasting, just your local metar?

Sent from my iPhone

> On 26 May 2019, at 18:25, Jd D  wrote:
> 
> Hi,
> No WU
> No DS
> Just local metar.
> 
> Thanks Jerry
> 
>> On Sunday, May 26, 2019 at 9:35:48 AM UTC-7, steeple ian wrote:
>> Hi Jerry,
>> 
>> Are you using the Weather Underground forecasts? If so have you got one of 
>> the new API keys? If so have you entered correctly in the settings?
>> 
>> Ian
>> 
>>> On Sun, May 26, 2019 at 6:09 AM Jd D  wrote:
>>> Hi Ian,
>>> 
>>> So I decided to do a new install of both weewx and the very latest 
>>> Weather34 Template (just got tonight) on another raspberry Pi to test 
>>> things. Since I have only one weather station I choose the interceptor 
>>> driver on the new system (did some minor changes to it so it could handle 
>>> 2316 weather data) and then wrote a weewx service called post_loop_packet 
>>> to send the loop data to the interceptor driver. All works just fine and 
>>> have two different versions of the weewx running. I also check the 
>>> w34stats.php and the issue with the format function is gone and the 
>>> template does work in some places. But there is a flood of errors in the 
>>> apache error log. I will include part of the log after this. Some of errors 
>>> seems to be not handling data that N/A. Like in the solar section, I do not 
>>> have solar but the php tries to convert N/A to a number. Here are some log 
>>> snippets.
>>> Hope this helps.
>>> Jerry
>>> 
 [Sat May 25 06:25:08.334215 2019] [mpm_prefork:notice] [pid 703] AH00163: 
 Apache/2.4.25 (Raspbian) c[Sat May 25 21:46:52.967308 2019] [:error] [pid 
 10633] [client 192.168.0.39:61452] PHP Warning:  number_format() expects 
 parameter 1 to be float, string given in /var/www/html/pws/livedata.php on 
 line 92, referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967308 2019] [:error] [pid 10586] [client 
 192.168.0.39:61456] PHP Warning:  number_format() expects parameter 1 to 
 be float, string given in /var/www/html/pws/livedata.php on line 92, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967406 2019] [:error] [pid 10583] [client 
 192.168.0.39:61457] PHP Warning:  number_format() expects parameter 1 to 
 be float, string given in /var/www/html/pws/livedata.php on line 92, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967545 2019] [:error] [pid 10633] [client 
 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be 
 integer, string given in /var/www/html/pws/livedata.php on line 96, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967575 2019] [:error] [pid 10586] [client 
 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be 
 integer, string given in /var/www/html/pws/livedata.php on line 96, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967613 2019] [:error] [pid 10583] [client 
 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be 
 integer, string given in /var/www/html/pws/livedata.php on line 96, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967617 2019] [:error] [pid 10633] [client 
 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be 
 integer, string given in /var/www/html/pws/livedata.php on line 97, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967642 2019] [:error] [pid 10586] [client 
 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be 
 integer, string given in /var/www/html/pws/livedata.php on line 97, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967680 2019] [:error] [pid 10583] [client 
 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be 
 integer, string given in /var/www/html/pws/livedata.php on line 97, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967700 2019] [:error] [pid 10633] [client 
 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be 
 integer, string given in /var/www/html/pws/livedata.php on line 98, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967718 2019] [:error] [pid 10586] [client 
 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be 
 integer, string given in /var/www/html/pws/livedata.php on line 98, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967743 2019] [:error] [pid 10583] [client 
 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be 
 integer, string given in /var/www/html/pws/livedata.php on line 98, 
 referer: http://192.168.0.21:88/pws/?units=us
 [Sat May 25 21:46:52.967763 2019] [:error] [pid 10633] [client 
 192.168.0.39:61452] PHP Warning:  date() 

Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-26 Thread Jd D
Hi,
No WU
No DS
Just local metar.

Thanks Jerry

On Sunday, May 26, 2019 at 9:35:48 AM UTC-7, steeple ian wrote:
>
> Hi Jerry,
>
> Are you using the Weather Underground forecasts? If so have you got one of 
> the new API keys? If so have you entered correctly in the settings?
>
> Ian
>
> On Sun, May 26, 2019 at 6:09 AM Jd D > 
> wrote:
>
>> Hi Ian,
>>
>> So I decided to do a new install of both weewx and the very latest 
>> Weather34 Template (just got tonight) on another raspberry Pi to test 
>> things. Since I have only one weather station I choose the interceptor 
>> driver on the new system (did some minor changes to it so it could handle 
>> 2316 weather data) and then wrote a weewx service called post_loop_packet 
>> to send the loop data to the interceptor driver. All works just fine and 
>> have two different versions of the weewx running. I also check the 
>> w34stats.php and the issue with the format function is gone and the 
>> template does work in some places. But there is a flood of errors in the 
>> apache error log. I will include part of the log after this. Some of errors 
>> seems to be not handling data that N/A. Like in the solar section, I do not 
>> have solar but the php tries to convert N/A to a number. Here are some log 
>> snippets.
>> Hope this helps.
>> Jerry
>>
>> [Sat May 25 06:25:08.334215 2019] [mpm_prefork:notice] [pid 703] AH00163: 
>>> Apache/2.4.25 (Raspbian) c[Sat May 25 21:46:52.967308 2019] [:error] [pid 
>>> 10633] [client 192.168.0.39:61452] PHP Warning:  number_format() 
>>> expects parameter 1 to be float, string given in 
>>> /var/www/html/pws/livedata.php on line 92, referer: 
>>> http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967308 2019] [:error] [pid 10586] [client 
>>> 192.168.0.39:61456] PHP Warning:  number_format() expects parameter 1 
>>> to be float, string given in /var/www/html/pws/livedata.php on line 92, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967406 2019] [:error] [pid 10583] [client 
>>> 192.168.0.39:61457] PHP Warning:  number_format() expects parameter 1 
>>> to be float, string given in /var/www/html/pws/livedata.php on line 92, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967545 2019] [:error] [pid 10633] [client 
>>> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be 
>>> integer, string given in /var/www/html/pws/livedata.php on line 96, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967575 2019] [:error] [pid 10586] [client 
>>> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be 
>>> integer, string given in /var/www/html/pws/livedata.php on line 96, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967613 2019] [:error] [pid 10583] [client 
>>> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be 
>>> integer, string given in /var/www/html/pws/livedata.php on line 96, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967617 2019] [:error] [pid 10633] [client 
>>> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be 
>>> integer, string given in /var/www/html/pws/livedata.php on line 97, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967642 2019] [:error] [pid 10586] [client 
>>> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be 
>>> integer, string given in /var/www/html/pws/livedata.php on line 97, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967680 2019] [:error] [pid 10583] [client 
>>> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be 
>>> integer, string given in /var/www/html/pws/livedata.php on line 97, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967700 2019] [:error] [pid 10633] [client 
>>> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be 
>>> integer, string given in /var/www/html/pws/livedata.php on line 98, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967718 2019] [:error] [pid 10586] [client 
>>> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be 
>>> integer, string given in /var/www/html/pws/livedata.php on line 98, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967743 2019] [:error] [pid 10583] [client 
>>> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be 
>>> integer, string given in /var/www/html/pws/livedata.php on line 98, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967763 2019] [:error] [pid 10633] [client 
>>> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be 
>>> integer, string given in /var/www/html/pws/livedata.php on line 99, 
>>> referer: http://192.168.0.21:88/pws/?units=us
>>> [Sat May 25 21:46:52.967857 2019] [:error] [pid 10586] [client 
>>> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be 

Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-26 Thread steeple ian
Hi Jerry,

Are you using the Weather Underground forecasts? If so have you got one of
the new API keys? If so have you entered correctly in the settings?

Ian

On Sun, May 26, 2019 at 6:09 AM Jd D  wrote:

> Hi Ian,
>
> So I decided to do a new install of both weewx and the very latest
> Weather34 Template (just got tonight) on another raspberry Pi to test
> things. Since I have only one weather station I choose the interceptor
> driver on the new system (did some minor changes to it so it could handle
> 2316 weather data) and then wrote a weewx service called post_loop_packet
> to send the loop data to the interceptor driver. All works just fine and
> have two different versions of the weewx running. I also check the
> w34stats.php and the issue with the format function is gone and the
> template does work in some places. But there is a flood of errors in the
> apache error log. I will include part of the log after this. Some of errors
> seems to be not handling data that N/A. Like in the solar section, I do not
> have solar but the php tries to convert N/A to a number. Here are some log
> snippets.
> Hope this helps.
> Jerry
>
> [Sat May 25 06:25:08.334215 2019] [mpm_prefork:notice] [pid 703] AH00163:
>> Apache/2.4.25 (Raspbian) c[Sat May 25 21:46:52.967308 2019] [:error] [pid
>> 10633] [client 192.168.0.39:61452] PHP Warning:  number_format() expects
>> parameter 1 to be float, string given in /var/www/html/pws/livedata.php on
>> line 92, referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967308 2019] [:error] [pid 10586] [client
>> 192.168.0.39:61456] PHP Warning:  number_format() expects parameter 1 to
>> be float, string given in /var/www/html/pws/livedata.php on line 92,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967406 2019] [:error] [pid 10583] [client
>> 192.168.0.39:61457] PHP Warning:  number_format() expects parameter 1 to
>> be float, string given in /var/www/html/pws/livedata.php on line 92,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967545 2019] [:error] [pid 10633] [client
>> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 96,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967575 2019] [:error] [pid 10586] [client
>> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 96,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967613 2019] [:error] [pid 10583] [client
>> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 96,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967617 2019] [:error] [pid 10633] [client
>> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 97,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967642 2019] [:error] [pid 10586] [client
>> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 97,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967680 2019] [:error] [pid 10583] [client
>> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 97,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967700 2019] [:error] [pid 10633] [client
>> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 98,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967718 2019] [:error] [pid 10586] [client
>> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 98,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967743 2019] [:error] [pid 10583] [client
>> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 98,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967763 2019] [:error] [pid 10633] [client
>> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 99,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967857 2019] [:error] [pid 10586] [client
>> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be
>> integer, string given in /var/www/html/pws/livedata.php on line 99,
>> referer: http://192.168.0.21:88/pws/?units=us
>> [Sat May 25 21:46:52.967881 2019] [:error] [pid 10583] [client
>> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be
>> 

[weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-25 Thread Jd D
Hi Ian,

So I decided to do a new install of both weewx and the very latest 
Weather34 Template (just got tonight) on another raspberry Pi to test 
things. Since I have only one weather station I choose the interceptor 
driver on the new system (did some minor changes to it so it could handle 
2316 weather data) and then wrote a weewx service called post_loop_packet 
to send the loop data to the interceptor driver. All works just fine and 
have two different versions of the weewx running. I also check the 
w34stats.php and the issue with the format function is gone and the 
template does work in some places. But there is a flood of errors in the 
apache error log. I will include part of the log after this. Some of errors 
seems to be not handling data that N/A. Like in the solar section, I do not 
have solar but the php tries to convert N/A to a number. Here are some log 
snippets.
Hope this helps.
Jerry

[Sat May 25 06:25:08.334215 2019] [mpm_prefork:notice] [pid 703] AH00163: 
> Apache/2.4.25 (Raspbian) c[Sat May 25 21:46:52.967308 2019] [:error] [pid 
> 10633] [client 192.168.0.39:61452] PHP Warning:  number_format() expects 
> parameter 1 to be float, string given in /var/www/html/pws/livedata.php on 
> line 92, referer: http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967308 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  number_format() expects parameter 1 to be 
> float, string given in /var/www/html/pws/livedata.php on line 92, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967406 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  number_format() expects parameter 1 to be 
> float, string given in /var/www/html/pws/livedata.php on line 92, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967545 2019] [:error] [pid 10633] [client 
> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 96, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967575 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 96, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967613 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 96, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967617 2019] [:error] [pid 10633] [client 
> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 97, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967642 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 97, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967680 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 97, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967700 2019] [:error] [pid 10633] [client 
> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 98, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967718 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 98, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967743 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 98, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967763 2019] [:error] [pid 10633] [client 
> 192.168.0.39:61452] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 99, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967857 2019] [:error] [pid 10586] [client 
> 192.168.0.39:61456] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 99, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.967881 2019] [:error] [pid 10583] [client 
> 192.168.0.39:61457] PHP Warning:  date() expects parameter 2 to be integer, 
> string given in /var/www/html/pws/livedata.php on line 99, referer: 
> http://192.168.0.21:88/pws/?units=us
> [Sat May 25 21:46:52.969653 2019] [:error] [pid 10589] [client 
> 192.168.0.39:61453] PHP Warning:  number_format() expects 

Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-23 Thread Jd D
Hi,
My path looks correct. The following error is in the syslog from the 
Cheetah Generator.

May 23 12:00:54 localhost weewx[7901]: cheetahgenerator: Generate failed 
with exception ''
May 23 12:00:54 localhost weewx[7901]: cheetahgenerator:  Ignoring 
template /etc/weewx/skins/w34skin/w34stats.php.tmpl
May 23 12:00:54 localhost weewx[7901]: cheetahgenerator:  Reason: 
format() got an unexpected keyword argument 'add_label'
May 23 12:00:54 localhost weewx[7901]:   Traceback (most recent call 
last):
May 23 12:00:54 localhost weewx[7901]: File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
May 23 12:00:54 localhost weewx[7901]:   print >> _file, 
compiled_template
May 23 12:00:54 localhost weewx[7901]: File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
__str__
May 23 12:00:54 localhost weewx[7901]:   rc = getattr(self, 
mainMethName)()
May 23 12:00:54 localhost weewx[7901]: File 
"_etc_weewx_skins_w34skin_w34stats_php_tmpl.py", line 2656, in respond
May 23 12:00:54 localhost weewx[7901]: File 
"_etc_weewx_skins_w34skin_w34stats_php_tmpl.py", line 106, in 
__errorCatcher6
May 23 12:00:54 localhost weewx[7901]: File "", line 1, in 

May 23 12:00:54 localhost weewx[7901]:   TypeError: format() got an 
unexpected keyword argument 'add_label'

Looks like I am missing something.
Thanks Jerry

On Thursday, May 23, 2019 at 10:28:31 AM UTC-7, steeple ian wrote:
>
> Hi Jerry,
>
> I am glad my first instinct was correct.
>
> The w34stats.php.tmpl file should be generating the w34stats.php file at 
> every archive interval. You to make sure you have the correct path settings 
> in the w34skin skin.conf file.
>
> I hope that fixes it for you.
>
> Ian
>
> On Thu, May 23, 2019 at 6:16 PM Jd D > 
> wrote:
>
>> Hi,
>> I am using PHP7 and was using the previous version of template, I just 
>> missed that this version is now using php mb functions, so the following 
>> two commands fixed this for me.
>>
>> sudo apt-get install php7.0-mbstring
>> sudo systemctl restart apache2.service
>>
>> Also metobridge_lookup.php has the following include
>> include('w34stats.php');
>> but only file I see in the install package is w34stats.php.tmpl in the 
>> skins directory and the apache log has lots of undefineds.
>>
>> Thanks Jerry
>>
>> On Wednesday, May 22, 2019 at 11:30:16 PM UTC-7, steeple ian wrote:
>>>
>>> Hi, 
>>> It looks like your PHP installation is missing some modules. Please look 
>>> at the important information regarding installing PHP in the installation 
>>> guide. 
>>>
>>> I also recommend that you upgrade to PHP7 or later. 
>>>
>>> Ian 
>>>
>>> Sent from my iPad 
>>>
>>> > On 23 May 2019, at 02:35, Jd D  wrote: 
>>> > 
>>> > PHP Fatal error:  Uncaught Error: Call to undefined function 
>>> mb_internal_encoding() in /var/www/html/pws_new/common.php:5\nStack 
>>> trace:\n#0 /var/www/html/pws_new/index.php(59): include_once()\n#1 {main}\n 
>>>  thrown in /var/www/html/pws_new/common.php on line 5 
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/fc6d7fc0-163e-46fa-b695-ade13f743f46%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/438b634b-39b6-43f7-b424-963c022c2b7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-23 Thread steeple ian
Hi Jerry,

I am glad my first instinct was correct.

The w34stats.php.tmpl file should be generating the w34stats.php file at
every archive interval. You to make sure you have the correct path settings
in the w34skin skin.conf file.

I hope that fixes it for you.

Ian

On Thu, May 23, 2019 at 6:16 PM Jd D  wrote:

> Hi,
> I am using PHP7 and was using the previous version of template, I just
> missed that this version is now using php mb functions, so the following
> two commands fixed this for me.
>
> sudo apt-get install php7.0-mbstring
> sudo systemctl restart apache2.service
>
> Also metobridge_lookup.php has the following include
> include('w34stats.php');
> but only file I see in the install package is w34stats.php.tmpl in the
> skins directory and the apache log has lots of undefineds.
>
> Thanks Jerry
>
> On Wednesday, May 22, 2019 at 11:30:16 PM UTC-7, steeple ian wrote:
>>
>> Hi,
>> It looks like your PHP installation is missing some modules. Please look
>> at the important information regarding installing PHP in the installation
>> guide.
>>
>> I also recommend that you upgrade to PHP7 or later.
>>
>> Ian
>>
>> Sent from my iPad
>>
>> > On 23 May 2019, at 02:35, Jd D  wrote:
>> >
>> > PHP Fatal error:  Uncaught Error: Call to undefined function
>> mb_internal_encoding() in /var/www/html/pws_new/common.php:5\nStack
>> trace:\n#0 /var/www/html/pws_new/index.php(59): include_once()\n#1 {main}\n
>>  thrown in /var/www/html/pws_new/common.php on line 5
>>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/fc6d7fc0-163e-46fa-b695-ade13f743f46%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CADASSaQk%2B1LhvdDno8KYP_qcw6nyoHxC2ZRWAKEOn4AkaHQ5JA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-23 Thread Jd D
Hi,
I am using PHP7 and was using the previous version of template, I just 
missed that this version is now using php mb functions, so the following 
two commands fixed this for me.

sudo apt-get install php7.0-mbstring
sudo systemctl restart apache2.service

Also metobridge_lookup.php has the following include
include('w34stats.php');
but only file I see in the install package is w34stats.php.tmpl in the 
skins directory and the apache log has lots of undefineds.

Thanks Jerry

On Wednesday, May 22, 2019 at 11:30:16 PM UTC-7, steeple ian wrote:
>
> Hi, 
> It looks like your PHP installation is missing some modules. Please look 
> at the important information regarding installing PHP in the installation 
> guide. 
>
> I also recommend that you upgrade to PHP7 or later. 
>
> Ian 
>
> Sent from my iPad 
>
> > On 23 May 2019, at 02:35, Jd D > 
> wrote: 
> > 
> > PHP Fatal error:  Uncaught Error: Call to undefined function 
> mb_internal_encoding() in /var/www/html/pws_new/common.php:5\nStack 
> trace:\n#0 /var/www/html/pws_new/index.php(59): include_once()\n#1 {main}\n 
>  thrown in /var/www/html/pws_new/common.php on line 5 
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fc6d7fc0-163e-46fa-b695-ade13f743f46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-23 Thread steeple ian
Hi,
It looks like your PHP installation is missing some modules. Please look at the 
important information regarding installing PHP in the installation guide.

I also recommend that you upgrade to PHP7 or later.

Ian

Sent from my iPad

> On 23 May 2019, at 02:35, Jd D  wrote:
> 
> PHP Fatal error:  Uncaught Error: Call to undefined function 
> mb_internal_encoding() in /var/www/html/pws_new/common.php:5\nStack 
> trace:\n#0 /var/www/html/pws_new/index.php(59): include_once()\n#1 {main}\n  
> thrown in /var/www/html/pws_new/common.php on line 5

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/97DEDDB3-5B18-4EC6-9CAE-7DA160C14948%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Weather34 Template for WeeWX - New Major Update

2019-05-22 Thread Jd D
Hi,
Just downloaded the new update it does not display the main page and in the 
apache log file is the following

[Wed May 22 16:25:54.543403 2019] [:error] [pid 18454] [client 
192.168.0.39:59752] PHP Fatal error:  Uncaught Error: Call to undefined 
function mb_internal_encoding() in 
/var/www/html/pws_new/common.php:5\nStack trace:\n#0 
/var/www/html/pws_new/index.php(59): include_once()\n#1 {main}\n  thrown in 
/var/www/html/pws_new/common.php on line 5

Is something missing in the install since I could not find the function in 
any files.

Thanks
Jerry

On Wednesday, May 22, 2019 at 2:28:01 AM UTC-7, steeple ian wrote:
>
> A major new update for the Weather34 Template for WeeWX WX-HWS 
> (WX-UB40-RRW) as just been placed in the repository. This version is based 
> on its sibling MB-UB40-RRW and provides identical visual, functional and 
> performance experience.
>
> Some of the new or improved features are:-
>
>- New w34 skin
>- Harnesses the power of the WeeWX database to generate graphs and 
>statistical data.
>- New style pop-up weather almanacs.
>- Rainfall almanac reflects rain year settings in weewx.conf file.
>- Variable look-up table.
>- New addition charts.
>- New addition wind map.
>- New addition pop-up window links now visible in phone mode.
>- Auto adjusting pop-up windows for better viewing experience on smart 
>phones and smaller tablet devices.
>- Enhanced chart features.
>- Dark or light chart colour theme (set by Default Theme Color in 
>Settings).
>- Choice of 24hr or 12hr station main clock.
>- A more streamlined installation process.
>
>
>
> Due to the scale of the update and significant changes to settings files, 
> a new install will be required.
>
>
>
> A live demo can be seen at https://claydonsweather.org.uk
>
> Download from Github - https://github.com/steepleian/WX-HWS
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/d2fd12e9-6855-4c37-aef7-8890ab4327a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.