Author Topic: weather34 template for weeWX  (Read 1445 times)

0 Members and 1 Guest are viewing this topic.

Offline taylormia

  • Member
  • *
  • Posts: 12
    • Merrifield Village
weather34 template for weeWX
« on: October 08, 2018, 11:49:38 PM »
If anyone is interested in the weeWX adapted version of the weather34 template, you can find it at the link below courtesy of Ian Steeple. All support questions on this adapted version should be directed to Ian and not to Brian at weather34.

https://github.com/steepleian/weather34-Home-Weatherstation-Template-WeeWX-adapted

Here is my web site (https://weather.sathy.us) using this template. The additional benefit of this adapted template is the capability to display CanvasJS charts generated from native weeWX historical reports rather than a feed from the free Weather Underground API , which as many of you know is going away shortly.



Station: Davis Vantage Pro2 24hr FARS
Software: weeWX
Website: https://weather.sathy.us

Offline steepleian

  • Member
  • *
  • Posts: 21
    • The Claydons Community Weather
Re: weather34 template for weeWX
« Reply #1 on: October 09, 2018, 02:50:55 AM »
Thanks for the nod Taylormia :grin:

Here is a bit more background: -

I think that we can all agree that the real strengths of weeWX are what goes on 'under the hood (or the bonnet for a Brit like me)', its sheer adaptability and a huge community working out solutions together.

I came to weeWX after years of being a Cumulus user (another excellent software) but came to a grinding halt when changing to unsupported Weather Station. It was weeWX to the rescue along with the HP1000 driver and I was back up and running. In my Cumulus days I had been an early adopter of the excellent weather34 template, designed and owned by Brian Underdown. This was originally designed for use with Cumulus as a single dashboard concept where everything is accessible from a single web page. So could I use the template with weeWX, yes by deploying the CRT extension to generate a realtime.txt file.

Now I wanted it to do more, I am not a coder so it takes me a bit longer to discover the snippets of code that I need to make things happen and this is where this forum and others became a valuable resource for myself along with contributions and technical support from others. A big thanks here to David Marshall who has rescued me on more than one occasion.

Recently Brian Underwood took the decision to only support the Meteobridge version of his template going forward. However, he was very happy for the other versions of the template to hosted and maintained by others. On this basis, both the weeWX and Cumulus versions live on. I am now hosting the weeWX version and actively maintaining it in the spirit of Brian's original concept. You can find it here: -

https://github.com/steepleian/weather34-Home-Weatherstation-Template-weeWX-adapted

The latest version is now using the weeWX archive database to generate the pop-up CanvasJS charts instead of relying on Weather Underground. The setup guides are provided for general guidance only due to the multitude of ways weeWX can be setup by individual users.

I would like to re-iterate that although Brian Underdown is very happy for this version to exist and be maintained, he offers no support whatsoever for this version. Any requests to do so will remain unanswered. Please respect Brian's wishes in this respect. Any issues should be directed to this forum.

My own current version of the template shows additional features which may be included in future updates if there is sufficient demand. It can found here https://claydonsweather.org.uk

When used with a smartphone or a narrow browser window, the page morphs into a slimline mobile version.

Steepleian
« Last Edit: October 16, 2018, 01:46:52 AM by steepleian »

Offline taylormia

  • Member
  • *
  • Posts: 12
    • Merrifield Village
Re: weather34 template for weeWX
« Reply #2 on: October 16, 2018, 10:27:01 AM »
At the link below is a general guide on integrating weeWX weather software with the weather34 web template adapted for weeWX by Ian Steeple. In this example, the weeWX server and the web server are on separate systems. Download the guide to use the embedded web links.

https://github.com/steepleian/weather34-Home-Weatherstation-Template-WeeWX-adapted/blob/master/taylormia_remote_server_setup.pdf
« Last Edit: October 17, 2018, 10:52:34 PM by taylormia »
Station: Davis Vantage Pro2 24hr FARS
Software: weeWX
Website: https://weather.sathy.us

Offline Storm017

  • Member
  • *
  • Posts: 15
Re: weather34 template for weeWX
« Reply #3 on: October 29, 2018, 10:26:42 PM »
I'm trying to install the template (WE34-WE131018), but get the following error.

2018-10-28 18:59:39: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Warning:  include(): Failed opening 'version.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/settings.php on line 2
2018-10-28 18:59:39: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Notice:  Undefined variable: wver in /var/www/html/settings.php on line 27


Offline taylormia

  • Member
  • *
  • Posts: 12
    • Merrifield Village
Re: weather34 template for weeWX
« Reply #4 on: October 30, 2018, 01:52:14 AM »
When installing Apache and PHP, did you follow the guide referenced in Step 2 of my writeup.  Not sure if the reason is this but you may have not installed some PHP modules such as "php-curl" and "php-mbstring" .
Station: Davis Vantage Pro2 24hr FARS
Software: weeWX
Website: https://weather.sathy.us

Offline steepleian

  • Member
  • *
  • Posts: 21
    • The Claydons Community Weather
Re: weather34 template for weeWX
« Reply #5 on: October 30, 2018, 06:20:43 AM »
I'm trying to install the template (WE34-WE131018), but get the following error.

2018-10-28 18:59:39: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Warning:  include(): Failed opening 'version.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/settings.php on line 2
2018-10-28 18:59:39: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Notice:  Undefined variable: wver in /var/www/html/settings.php on line 27

Are your weeWX and webserver on the same computer or is the server at a remote location. Also what is the root of your webserver. If it is different to /html you will need to edit the skin.conf file.

Steepleian

Offline Storm017

  • Member
  • *
  • Posts: 15
Re: weather34 template for weeWX
« Reply #6 on: October 30, 2018, 07:41:01 AM »
When installing Apache and PHP, did you follow the guide referenced in Step 2 of my writeup.  Not sure if the reason is this but you may have not installed some PHP modules such as "php-curl" and "php-mbstring" .

Yes I did follow your write up.  I believe I have everything required installed...Will check this evening.

Offline Storm017

  • Member
  • *
  • Posts: 15
Re: weather34 template for weeWX
« Reply #7 on: October 30, 2018, 07:42:49 AM »
I'm trying to install the template (WE34-WE131018), but get the following error.

2018-10-28 18:59:39: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Warning:  include(): Failed opening 'version.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/settings.php on line 2
2018-10-28 18:59:39: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Notice:  Undefined variable: wver in /var/www/html/settings.php on line 27

Are your weeWX and webserver on the same computer or is the server at a remote location. Also what is the root of your webserver. If it is different to /html you will need to edit the skin.conf file.

Steepleian
They are on the same computer.  Will check the ownership of the webserver this evening.

Offline Storm017

  • Member
  • *
  • Posts: 15
Re: weather34 template for weeWX
« Reply #8 on: October 30, 2018, 09:27:47 PM »
I'm trying to install the template (WE34-WE131018), but get the following error.

2018-10-28 18:59:39: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Warning:  include(): Failed opening 'version.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/settings.php on line 2
2018-10-28 18:59:39: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Notice:  Undefined variable: wver in /var/www/html/settings.php on line 27

Are your weeWX and webserver on the same computer or is the server at a remote location. Also what is the root of your webserver. If it is different to /html you will need to edit the skin.conf file.

Steepleian

The root of the webserver is "var/www/html".  The ownership is pi:www-data and permissions are 0775. Going to reread the instructions taylormia provided.  Might of skipped something.

Offline Storm017

  • Member
  • *
  • Posts: 15
Re: weather34 template for weeWX
« Reply #9 on: October 30, 2018, 10:19:08 PM »
I was missing the php-mbstring.  I can go to the IP address and the template appears but does not populate with realtime data, but I'm still have the same errors:

2018-10-30 22:04:57: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Warning:  include(version.php): failed to open stream: No such file or directory in /var/www/html/settings.php on line 2
2018-10-30 22:04:57: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Warning:  include(): Failed opening 'version.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/settings.php on line 2
2018-10-30 22:04:57: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Notice:  Undefined variable: wver in /var/www/html/settings.php on line 27

The path match in both the Weewx config file and the settings1.php file.  The real time txt file does update.

Offline kc2kzz

  • Member
  • *
  • Posts: 33
    • Warren County Skywarn
Re: weather34 template for weeWX
« Reply #10 on: November 01, 2018, 10:14:03 AM »
Everything is working fine on mine except the daylight box.  Is there a specific setting I missed for that?
http://www.warrenskywarn.org
Davis Vantage Vue
BloomSky

Offline taylormia

  • Member
  • *
  • Posts: 12
    • Merrifield Village
Re: weather34 template for weeWX
« Reply #11 on: November 03, 2018, 04:29:49 PM »
I was missing the php-mbstring.  I can go to the IP address and the template appears but does not populate with realtime data, but I'm still have the same errors:

2018-10-30 22:04:57: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Warning:  include(version.php): failed to open stream: No such file or directory in /var/www/html/settings.php on line 2
2018-10-30 22:04:57: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Warning:  include(): Failed opening 'version.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/settings.php on line 2
2018-10-30 22:04:57: (mod_fastcgi.c.2543) FastCGI-stderr: PHP message: PHP Notice:  Undefined variable: wver in /var/www/html/settings.php on line 27

The path match in both the Weewx config file and the settings1.php file.  The real time txt file does update.

Looks like you are missing the "version.php" file in /var/www/html. Step 4d in my guide describes how this file is generated.
Station: Davis Vantage Pro2 24hr FARS
Software: weeWX
Website: https://weather.sathy.us