Leuven Template Steelgauges Questions

I’ve worn out Google searching for clues.

As you can see on my site: http://m82a1.us/weather27/index.php?p=10&lang=en#data-area

I have a several questions:

  1. The window the gauges display in needs the height increased slightly. Where is the setting for this?

  2. I’d like to move the scrolling Davis forecast from the lower right to the top and centered. Where is this code located? Since I increased the size of the gauges, it’s no longer visible.

  3. I have graph popups enabled but they’re not showing. What files need to be uploaded from WD for them?

Thanks for any help.

The gauges are available on different places.

  1. Inside the start-page a small or x-small version, supports also the graphs.
    I use the “slooooow” demo site as an example: WD: http://weather-template.nl/weather27/index.php?p=25&lang=en&wp=wd#data-area

  2. The full page, example WD, same site: http://weather-template.nl/weather27/index.php?p=25&lang=en&wp=wd#

  3. In the header as on both these example pages.

Both 1 & 2 can and will use the available graphs, as you can see yourself. For all weatherprograms which deliver clientraw the same graphing routines are used.

But number 3 runs in an iframe. Its height is resctricted and NO graphs can be displayed as they will be chipped (? correct Englis?).
An iframe wil not show anything outside the iframe and the grpahs are larger or wider then the iframe.

I think this will answer point 3.
No graphs possible inside the header.

If you visit to my own weather website, http://www.weerstation-wilsele.be/ you will see that I use a low header and the x-small version of the steelseries on the top part of my start-page. There the graphs can be shown.

===

Question 1:
The height for the iFrame the steelseries script runs in is set at line 52 in weather27/wsHeader3.php

Question 2 :
The steelseries-script used in the header is weather27/ws_gauge_frame.php
All steelseries scripts used in the template are more or less the same.
In this case the code should be found at line 96-103

<tr><td colspan="5" style="text-align: right;">
<span style="margin: 0 40px 0 0;">
	<a href="javascript: window.location.reload()" ><canvas id="canvas_led" style="width: 15px; height: 16px;"></canvas></a>&nbsp;&nbsp;&nbsp;
	<canvas id="canvas_status" style="width: 350px; height: 16px;"></canvas>&nbsp;&nbsp;
	<canvas id="canvas_timer" style="width: 50px; height: 16px;"></canvas>
</span>
</td>
</tr>

Moving that row to the beginning of the table and changing text-align: right; to text-align: center; will adapt it to your wishes.

Succes, Wim

“chipped” - “clipped” or “cropped” would be better Wim, since you ask :slight_smile:

Thanks, Wim. That was exactly what I needed! Although I did leave the scrolling forecast at the bottom, but centered.

The graphs I had mentioned are those that pop up when the mouse cursor is placed over a dial. I’m not getting those. I get the text in the balloon but not the graph.

Thanks so much,
Mort

They should be inside the pop-ups at all the other steel series parts of your site.

They can not be displayed in the header pop ups as the pop-ups would not fit inside the iframe then.
So in the header only the text can be displayed in the pop-ups as they are lower/smaller and fit inside the iframe.

Wim

On your site, it looks like the first one.

On my site, it looks the second one.

I’m trying to find out why I don’t have a graph.


Wim-site.JPG

My-site.JPG

You have graphs on your gauges page under the Live menu item.

So I do. I was so fixated on my home page that I didn’t notice that. Somehow Wim has those gauges on his home page. I’m forlorn with envy

One thing I’ve noticed with everyone’s wind speed gauge is that on the balloon shows ‘undefined’ for the direction (N, NNE, etc.) but the latest gauge is correct. It must be a script error with that gauge. No idea where to look.

Right, the top section of Wim’s page is structured differently. I don’t know if that’s a template option, or an “owner’s reserve” thing :smiley:

I see what you mean, at the end of the text in the wind speed gauge mouseover the Bearing is stuck on 359 and the text direction is “undefined”. That’s the same on Wim’s demo pages, but in his mystery special header it’s working OK.

Hopefully he can post some knowledge about it.

I try to explain again:

Your site is using header3 with gauges which will be displayed on EVERY page.
http://m82a1.us/weather27/index.php?p=10&lang=en#data-area
http://m82a1.us/weather27/index.php?p=11&lang=en

The main part of those two pages is totally different but the gauges are the same on all pages of your site (if you scroll down the page when needed).

Your site can even have TWO sets of gauges on a page, one in the header and one in the main part as in this example:
http://m82a1.us/weather27/index.php?p=25&lang=en

===

My site displays the gauges next to the menu, not above the menu as on your page, and ONLY on the startpage as one of the components, :
http://www.weerstation-wilsele.be/index.php?p=10 => has the gauges
Not on any other page:
http://www.weerstation-wilsele.be/index.php?p=11-2 => has no gauges, your page has them
Also only one set of gauges is ever shown
http://www.weerstation-wilsele.be/index.php?p=25 => only one set of gauges in the main part, yours also in the header

===
@niko no “owner’s reserve” special things
@all no beta testing of new features, my own site lags behind on purpose to have an old release testbed.

Differences:
I am using header1 WITHOUT gauges, my gauges are displayed on the large main part of the page of 1040 pixels wide * 1400 pixels heigh.

You are using header3 with an iframe in which the gauges are displayed. That iframe is only 180 pixels heigh.

All gauges can display the graphs, default they are set to on in wsStartpage and page 25.
In the header3 they could be displayed also BUT they would not fit inside the 180 pixels height of the iFrame and only partially shown. Very ugly and that is why the display of graphs is switched of in the header.

You can test yourself by going to one gauge in the header until the text pop-up is shown.=> slowly move to the top of the gauge, the pop-up also moves upward AND the text is suddenly partialy clipped. When the graphs would display also the pop-up would ALWAYS be clipped.

If you want the same layout as on the Wilsele page (only gauges in the main part of the page):
Script: http://m82a1.us/weather27/wsStartPage.php?sce=view
Change line 52 by removing the comment mark
Move that uncommented line to line 31 which is empty now and is the first line to be displayed

Change your wsUserSettings.php line 188 from

$SITE['header']		= '3';	

to

$SITE['header']		= '1';	

========

  1. The mystery header is explained above.

  2. There are always differences between the releases and between the output for the 12 supported weather-programs.
    My own website is a mix of 2.6 and earlier scripts which uses separate realtime tag files for every “realtime” script.

The demo pages are release 2.7.
Starting with release 2.7 there is no separate “steelseries” tags-file uploaded. Only one realtime file is needed. And for WeatherDisplay the clientraw file is used.

I checked release 2.8 beta also, the same error is there and also for multiple weatherprograms. I did put it on the ToDo list.

Wim

Thanks Wim :slight_smile: That’s all very clear.

Thanks for the explanation, Wim.

Wim,

I now have all the gauges on my home page.

The indoor temperature displays correctly. The indoor humidity is always zero. My clientraw file is correct.

Where to look?

Thanks,
Mort

@ALL
Important: To adequately help users there are a few prerequisites which speeds up things considerably

  1. An URL to the page with the problem
  2. Debug should be available by default or by using &debug
  3. Settings should not be PW protected (or password should be mailed / PM)
  4. The printSite program should be available in the menu, but it can be hidden as long p=0000 is available.

And it would be helpfull if you checked :
5. all updates from the support page if it is a known problem/solution
6. the demosite for your weatherprogram if it has the same behavior.

As an example (and maybe to learn some new things) lets check these helpfull prerequisites against this support request:

  1. => http://weather-template.nl/weather27/index.php?p=25&lang=en&wp=WD#data-area works OK, probably a local (= your site or data) problem

  2. => Not on the list of known problems

  3. => NOT OK, no way I can check all data.
    Here some examples from the demo site what I and you yourself can see if p=0000 is available
    4.1 all uploaded tags: http://weather-template.nl/weather27/index.php?tags&p=0000&pw=&wp=WD#data-area
    4.2 all weather values: http://weather-template.nl/weather27/index.php?values&p=0000&pw=&wp=WD#data-area
    Also the settings file and all settings can be checked. Just try a few of the buttons.

  4. Settings are not protected, but that does not help as printSite is not available in the menu.

  5. Debug is already switched off, why? Are you totally finished? With debug still on, a lot of extra information is displayed inside the html.

  6. Not OK, so I have to scan previous postings => This is the page with the probelms:
    http://www.m82a1.us/weather27/index.php?p=25&lang=en#data-area
    When you try to pinpoint the problem, it is easier to always use the “smallest” page possible. The start page also contains the gauges, but also a lot of extra code.

================== Hope others will benefit from the text above also.
Back to @mldenison

Your problem:

  1. The inside humidity seems to be invalid (see nr 2 below) . Inside humidity is a slow changing value => used from the general tags file, not from the realtime file
    1.1 default tags-file for WD is tags.wd.txt and uploaded by WD as tagsWD.txt
    1.2 That file is not available at your site as you are using testtags.php for Saratoga as input file.
<!-- loading wsDataGet.php -->
<!-- module wsDataGet.php ==== version: 3.11 2015-06-07 -->
<!-- ../testtags.php will be loaded, more recent than cached file.  -->
<!-- loading ws_testtags.php -->
<!-- module ws_testtags.php ==== version: 3.11 2015-05-25 -->
<!-- module ws_testtags.php loading  ../testtags.php -->
<!-- module ws_testtags.php probable Saratoga testtags - converting -->

You can use Leuven or Saratoga when you start testing the Leuven Template, but it is advised not to use for production as not all fields are compatible
Normaly I could check the input testtags.txt versus the uploaded testags.php but you are mixing Saratoga and Leuven testtags files here.
http://www.m82a1.us/weather27/printSite.php?compare&pw=#data-area

  1. The realtime values as displayed for the gauges are loaded in the correct language and UOM’s with http://www.m82a1.us/weather27/ws_realtime.php?wp=WD?lang=en&wp=WD
    Checking the returned file: Inside humidity has a empty “inhum”:“”, value
    Why?: Not all supported weather stations <=> programs supply an inside humidity.
    There is a check in the realtime data part to supply an empty value if $ws[‘humiInAct’] is not present.
    So it seems that inside humidity is not present when the normal 5 minute tags are uploaded, in your case testtags.php

Solutions:

  1. Best one => switch to tags.wd.txt => tagsWD.txt WiKi http://wiki.leuven-template.eu/doku.php?id=en:uploadwd says that you can postpone to test, not for production.

  2. If you do not want to upload those files: change line 182 in www.m82a1.us/weather27/ws_testtags.php?sce=view (which is now empty) to
    $ws[‘humiInAct’] = ??? ;
    You have to find the tag for inside humidity in your testtags file, I could not find that one.

  3. If 1 and 2 are not wanted: remove the selections for inside/outside humidity on the steelseries page

<!-- 
        <input id="rad_hum1" type="radio" name="rad_hum" value="out" checked onclick="doHum(this);">
        <label id="lab_hum1" for="rad_hum1"><?php echo langtransstr('outside') ?></label>
        <input id="rad_hum2" type="radio" name="rad_hum" value="in" onclick="doHum(this);">
        <label id="lab_hum2" for="rad_hum2"><?php echo langtransstr('inside') ?></label>
-->

Succes, Wim

Thanks again for the tutorial, Wim.

In the future, I’ll turn debug on before posting a question.

The printSite utility page is quite informative.

It is somewhat of a challenge for me to get everything set up correctly being my first website. Another guy did most of the installation and setup for me 3-4 weeks ago. Since then, I’ve been trying to tweak it to my liking. Being 72 years old, some things are challenging.

The problem turned out to be that the tagsWD.txt file was set to upload as tagsWD.php. Also. the setting was on to use testtags.txt.

Once this was corrected, everything is now fine.

Thanks for your help,
Mort