--
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+...@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.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@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.
Thanks
The reason why the documentation refers to .format is that the on-line documentation always reflects the current WeeWX release. If you want to look at the documentation for your installed version the best bet is to use the documentation that is installed on your WeeWX machine.
Ian. You might want to look at packaging the Weather34 template as a WeeWX extension, a little more effort for the maintainer but a much easier install process for the user. You can also put a 'minimum WeeWX version' check in the install routine to prevent installation on an unsupported version of WeeWX. Failing that you probably should specify somewhere that your current relase requires WeeWX 3.9.0 or later.
Gary
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/d394fa49-4222-451b-95bd-cae7dccaa6b4%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/cae853bd-e2ca-4976-99a8-ba8caf34b9d6%40googlegroups.com.
Happy to help out re creating an extension. Rather than clogging up this thread I will leave you with a couple of thoughts and then we can take this to wee-development as required.
I guess you have read the section in the Customization Guide regarding extensions - http://weewx.com/docs/customizing.htm#extensions. An extension package is structured in a particular way, and if you are hosting your extension on github you can make life a lot easier for you by structuring your github repo in a similar manner. If you have done it properly your extension package (ie the file a user downloads to install your extension) is simply a zip/tar.gz of your repo.
The other key point is the installer (install.py) within your extension that takes care of copying files from the extension package to WeeWX as well as creating/modifying any config settings/stanzas in weewx.conf.
My best advice when starting out is to have a look at other extensions, particularly those that are hosted on github. The WeeWX wiki is a good starting point. Matthew (mwall) has a number as do I. Extensions can be a simple as installing just a driver or a custom WeeWX service or as complex as a package with a driver, multiple search list extensions and one or more skins containing multiple templates. Have a look at the respective github repo, in particular its structure and relate that to the contents of the respective install.py. You will pick it up pretty quickly.
That should get you started and will probably open up a few questions.
Gary
I have started a new topic at weewx-development: -
https://groups.google.com/forum/m/#!topic/weewx-development/ntta9iQO9-g
See you there,
Ian
[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 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.969836 2019] [:error] [pid 10589] [client 192.168.0.39:61453] 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.969989 2019] [:error] [pid 10589] [client 192.168.0.39:61453] 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.970049 2019] [:error] [pid 10589] [client 192.168.0.39:61453] 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.970111 2019] [:error] [pid 10589] [client 192.168.0.39:61453] 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.975088 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 279, referer: http://192.168.0.21:88/pws/?units=us[Sat May 25 21:46:52.975088 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 279, referer: http://192.168.0.21:88/pws/?units=us[Sat May 25 21:46:52.975177 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 279, referer: http://192.168.0.21:88/pws/?units=us[Sat May 25 21:46:52.975464 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 284, referer: http://192.168.0.21:88/pws/?units=us[Sat May 25 21:46:52.975487 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 284, referer: http://192.168.0.21:88/pws/?units=us
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0b7f7847-c1a5-4fee-a4f8-6fb39c8d9492%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3769b6bd-8d27-4d26-b925-e2f20c7c820f%40googlegroups.com.
$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 = "XXXX";$airport1 = "XXXX";$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+...@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.
--
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+...@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.
--
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+...@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.
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'] - .00000199*$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);
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@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.
Ian
Regards Ian
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e6a18732-cbe4-446e-8363-c6e2d4d63ed9%40googlegroups.com.
Hi Jerry,
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/cec657f2-c304-4220-ab65-3a86b7642feb%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/45990a0f-4a28-4c88-821b-4d32a6e8bccd%40googlegroups.com.
[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
Hi IanExperiencing 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.phpBest regardsMalky
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+...@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+...@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.
Hi IanApologies for the delay in replying.Yes it was indeed a PHP problem. In Gentoo Linux we have what is known as USE flags, they are a way of streamlining the install
of the system, and in my case I had to enable the zlib, calendar and bcmath modules. After enabling these flags for PHP, the daylight
module started to work properly. Hoorah!Many thanks for your help, and many many thanks for porting Brians template for all of us to utilise.It makes the presentation of the WeeWX data very sexy. Nice one.All the best,Malky
Ian
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/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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/bedb2da4-9b60-4767-9681-c3eba6092ee3%40googlegroups.com.