Author Topic: Meteotemplate - new free website template  (Read 641342 times)

0 Members and 3 Guests are viewing this topic.

Offline N0BGS

  • Senior Member
  • **
  • Posts: 98
Re: Meteotemplate - new free website template
« Reply #5450 on: January 09, 2017, 01:30:07 PM »
My Steelseries temp WIND gauge is updating (drawing) the recent scale but the pointer is not moving and the LED display value does not change. Using version 1.1 with Cumulus realtime.txt

http://www.kpw3.com/meteo/plugins/steelSeries/index.php

So, I've come to the conclusion that the MT modded gauges don't work the same way as Mark Crossley's.  I was expecting the wind gauge pointer to show the instantaneous (now) value but instead the red highlighted range underneath the pointer seems to show the "now" value. Do I have that right? What is the digital value displaying? Gust, average...or??

For a comparison, how I was expecting the MT wind gauge to behave can be seen here: http://www.kpw3.com/wxssgauges.php

Thanks,

--Kurt

COLD here today:


Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5537
    • KomokaWeather
Re: Meteotemplate - new free website template
« Reply #5451 on: January 09, 2017, 01:49:56 PM »
From what I can see on mine, the wind is the avg wind provided by Cumulus, both the needle and digital.  The instantaneous wind/gusts is not shown on the gauges.  The wind direction is near live though.

Paul

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5452 on: January 09, 2017, 01:50:51 PM »
Well this all depends on which fields are used, I might have used incorrect ones. Im not 100% sure which field is the instantanoues, remember I dont have WD myself (or Cumulus etc.).
If you tell me which field in clientraw is the one I should use I can of course easily change this

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5537
    • KomokaWeather
Re: Meteotemplate - new free website template
« Reply #5453 on: January 09, 2017, 01:57:51 PM »
There is also differences in Current Dir and Average direction, and in Wind Run compared to my Cumulus console with the plugin showing 63.0 and Cumulus console 60.3.  It looks like the plugin uses a combination of realtime.txt and DB data, is that correct?

Paul

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5454 on: January 09, 2017, 01:59:58 PM »
For current conditions it uses whatever you chose, for the max/min it always uses the db

Offline KapitainOne

  • Senior Contributor
  • ****
  • Posts: 256
    • Sanford Weather
Re: Meteotemplate - new free website template
« Reply #5455 on: January 09, 2017, 02:05:54 PM »
Getting weird results with the worldWeather Block

I either get this or a blank block, cache has been cleared!

Yahoo issue or ??

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5456 on: January 09, 2017, 02:10:07 PM »
This could be because you were using the old format settings file. Try just deleting the settings.php, note down the numbers you used and then set up the block again using those numbers and clear the cache.

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5537
    • KomokaWeather
Re: Meteotemplate - new free website template
« Reply #5457 on: January 09, 2017, 02:11:27 PM »
Code: [Select]
Field Example Description

  1 18/10/08 date (always dd/mm/yy)

  2 16:03:45 time(always hh:mm:ss)

  3 8.4 outside temperature

  4 84 relative humidity

  5 5.8 dewpoint

  6 24.2 wind speed (average)

  7 33.0 latest wind speed reading

  8 261 wind bearing (degrees)

  9 0.0 current rain rate

  10 1.0 rain today

  11 999.7 barometer

  12 W wind direction

  13 6 wind speed (beaufort)

  14 mph wind units

  15 C temperature units

  16 mb pressure units

  17 mm rain units

  18 146.6 wind run (today)

  19 +0.1 pressure trend value

  20 85.2 monthly rainfall

  21 588.4 yearly rainfall

  22 11.6 yesterday's rainfall

  23 20.3 inside temperature

  24 57 inside humidity

  25 3.6 wind chill

  26 -0.7 temperature trend value

  27 10.9 today's high temp

  28 12:00 time of today's high temp (hh:mm)

  29 7.8 today's low temp

  30 14:41 time of today's low temp (hh:mm)

  31 37.4 today's high wind speed (average)

  32 14:38 time of today's high wind speed (average) (hh:mm)

  33 44.0 today's high wind gust

  34 14:28 time of today's high wind gust (hh:mm)

  35 999.8 today's high pressure

  36 16:01 time of today's high pressure (hh:mm)

  37 998.4 today's low pressure

  38 12:06 time of today's low pressure (hh:mm)

  39 1.8.2 Cumulus version

  40 448 Cumulus build number

  41 36.0 10-minute high gust

  42 10.3 heat index

  43 10.5 humidex

  44 13 UV Index

  45 0.2 Evapotranspiration today

  46 14 Solar Radiation W/m2

  47 260 10-minute average wind bearing (degrees)

  48 2.3 rainfall last hour

  49 13 current forecast number (see samplestrings.ini). Negative means 'exceptional'

  50 1 Is it daylight? 1 if currently within daylight hours (between dawn and dusk), 0 if not

  51 0 Sensor contact lost (1 = yes) (Fine Offset only)

  52 NNW wind direction (average)

  53 2040 Cloudbase

  54 ft Cloudbase units

  55 12.3 Apparent Temperature

  56 11.1 Sunshine hours so far today

  57 420.1 Current theoretical max solar radiation

  58 1 Is it sunny? 1 if the sun is shining, otherwise 0. Requires your station to have a solar sensor.



Remember the above fields are counting from 1 to 58, whereas in most cases scripts start count at 0 so would be counted from 0 to 57!
Wind average = field number 6 [5]
Latest wind reading speed reading = field 7 [6]

Not sure where the higher Wind Run would come from.

Paul



Offline KapitainOne

  • Senior Contributor
  • ****
  • Posts: 256
    • Sanford Weather
Re: Meteotemplate - new free website template
« Reply #5458 on: January 09, 2017, 02:18:25 PM »
This could be because you were using the old format settings file. Try just deleting the settings.php, note down the numbers you used and then set up the block again using those numbers and clear the cache.

That didn't seem to work, will blow away the block, re-upload and start from scratch!

Reloaded and seems to be working, must have screwed up the update!!
« Last Edit: January 09, 2017, 02:25:28 PM by KapitainOne »

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5459 on: January 09, 2017, 02:24:26 PM »
OK, so here are the params sent using SS gauges:

"wlatest"
"wspeed"
"wgust"
"wgustTM"
"windTM"

It is sort of hard to guess what is what, so if you could help me and tell me which clientraw/realtime fields I should use for these (also possible to use the db of course for max etc.)

Offline N0BGS

  • Senior Member
  • **
  • Posts: 98
Re: Meteotemplate - new free website template
« Reply #5460 on: January 09, 2017, 02:36:05 PM »
The Cumulus realtime.txt field order can be see here: http://wiki.sandaysoft.com/a/Realtime.txt

I think we want field 7, "wlatest" for the current wind speed value.

Looking at http://www.kpw3.com/meteo/plugins/steelSeries/ssMeteotemplate.php it appears that the now value is the one in "wgust," whereas it should be in "wlatest."
« Last Edit: January 09, 2017, 02:47:27 PM by N0BGS »

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5461 on: January 09, 2017, 02:49:09 PM »
OK, so this is what it uses currently:

Cumulus:

wlatest - field 5 realtime
wspeed - daily avg wind (db)
wgust - realtime field 6
wgustTM - daily max (db)


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5462 on: January 09, 2017, 03:28:43 PM »
OK, so just to make sure,
which field in realtime should be used for wlatest and for wgust

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5537
    • KomokaWeather
Re: Meteotemplate - new free website template
« Reply #5463 on: January 09, 2017, 03:30:59 PM »
Quote
OK, so here are the params sent using SS gauges:

"wlatest"
"wspeed"
"wgust"
"wgustTM"
"windTM"

It is sort of hard to guess what is what, so if you could help me and tell me which clientraw/realtime fields I should use for these (also possible to use the db of course for max etc.)

There are several wind speed and direction data in the realtime.txt. Field numbers:
6 [5] Wind speed average
7 [6] Latest wind speed reading
31 [30] Today's high wind speed (average)
33 [32] Today's high wind gust
41 [40] 10-minute high gust

8 [7] Wind bearing (degrees)
12 [11] Wind direction - N or E, or W, etc
47 [46] 10-minute average wind bearing (degrees)
52 [51] Wind direction (average) - N or E, or W, etc.

For the Wind speed gauge:
for digital box "wspeed" Wind speed average Cumulus 6 [5]
for needle "wlatest" Latest wind speed reading Cumulus 7 [6]
for red highest speed indicator "???" Today's high wind gust Cumulus 33 [32]
for speed range highlight "???" Min to Max ???

For the Wind direction gauge:
for Current digital box "w...." Wind bearing (degrees) Cumulus 8 [7]
for Average digital box "w...." 10-minute average wind direction (degrees) Cumulus 47 [46]
for needles ?? could use Wind direction and Wind Direction (average) N, E, S, etc.

I see it can get pretty complicated, just have to determine what you can and want to display.

Hope this helps.
Paul


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5464 on: January 09, 2017, 03:35:41 PM »
I can sort of display anything I will use whatever you say you want to use, the script loads the entire realtime.txt and I just have to tell it which field to pass for which variable in the JSON

Offline N0BGS

  • Senior Member
  • **
  • Posts: 98
Re: Meteotemplate - new free website template
« Reply #5465 on: January 09, 2017, 03:38:37 PM »
I agree with what Paul has laid out.  "Wlatest" should make the needle move.

--K

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5466 on: January 09, 2017, 05:40:40 PM »
OK, I dont want to update the plugin again unless Im 100% sure it works.
Could I please ask you to open the ssMeteotemplate.php and find the section which is relevant to cumulus at the top and where realtime is parsed and change the field numbers for current['W'] and current['G']. At the very bottom you can then see these being passed to the particular parameters of the SS gauges. Then see if it works as expected and then let me know which fields you used

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
400
« Reply #5467 on: January 09, 2017, 05:45:00 PM »
Hi guys,

unbelievable for me… I would never imagine there will be more than 10 to 20 people using this…


Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5537
    • KomokaWeather
Re: Meteotemplate - new free website template
« Reply #5468 on: January 09, 2017, 07:16:43 PM »
I have looked at ssMeteotemplate.php and identified the source for 3 of the wind elements:

Line 198 $current ['W'] as field 5 which is Wind speed average
Line 199 $current ['G'] as field 6 which is Latest wind speed reading
but have not understood where these are shown on the Wind Speed Gauge (we have no wind currently), and where the other data comes from

Line 208 $current ['B'] as field 8 which is Wind bearing (degrees), but can't see where the other data comes from.

Nor have been able to match any of the hoover popup wind data in the gauges to actual wind data from Cumulus, except the Max Aver 12.9 in gauges compared to 12.9 High wind speed today in Cumulus.

Not sure where the other data comes from that is shown on the wind gauges.

On the wind run it looks like there might be a calculation bug.  Similar to this afternoon, now the Wind run on the gauge shows as 76.0 while the actual in Cumulus is 70.6.   Earlier it was 63.0 in the gauges and in Cumulus 60.3.  Can you detect the similarity?

Paul

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5469 on: January 09, 2017, 07:52:46 PM »
Hi Paul,
min values, max values, avgs, wind run etc is calculated from db. The realtime, clientraw etc. is only used for the current conditions. I think I need to change the current wind speed and wind gust fields for cumulus. I will look at it again tomorrow.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate Newsletter + Questionnaire
« Reply #5470 on: January 10, 2017, 10:02:55 AM »
Hi guys,
a new issue of the newsletter is now available in the blog as well as a questionnaire - if you want to tell me what you like/dont like about the template or what you would like to see in the future, this is your chance :-) I cannot guarantee everything you like is possible, but I can guarantee I will look at all your answers and reply to them (just be patient, given there is now over 400 of you it might take some time to go through all of it).


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5471 on: January 10, 2017, 11:22:40 AM »
So, regarding the gauges and Cumulus, this is what is currently being used:

wspeed: day average wind speed (using db)
wgust: realtime field 7 - latest wind speed reading
wgustTM: day maximum wind gust (using db)
wlatest: realtime field 6 - wind speed (average)

I guess I should change wlatest to field 6 (currently used for gust), but the question is what do we then use for the gust

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5537
    • KomokaWeather
Re: Meteotemplate - new free website template
« Reply #5472 on: January 10, 2017, 01:58:13 PM »
Hi Jachym,
I know you would want to standardize as much as possible between software sources so therefore using the DB.  However, in looking at the Steelseries Gauges wind speed gauge to me it is more realistic if the dial changes most frequent, i.e. with most current wind speed data. 

It looks like the dial is your wspeed Cumulus realtime 5 Wind speed (average)
and I would suggest realtime 6 Latest wind speed reading is more appropriate - your wgust.

It looks like the digital box is also your wspeed Cumulus 6 Wind speed (average)  and that would be fine

I have changed line 198 in ssMeteotemplate.php from 5 to 6 and line 199 from 6 to 40.
The needle now moves at each change of current wind speed reading.  However the digital box and needles both show the same, likely due to both using wgust (I have not fully understood the code as it uses a combination of realtime and DB).   www.komokaweather.com/j-template/plugins/steelSeries/index.php

Th pop up box for Wind speed gauge is mostly right on, except that the Wind gust and Max Wind gust today both show the same as 40.7, which is okay for current 10-min max gust of 40.7 but today's actual maximum gust is 49.2.

The wind run was showing pretty close earlier but now is running ahead of my Cumulus console.
The temp and pressure all seem fine in comparing to my Cumulus console.

Paul.


Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Re: Meteotemplate - new free website template
« Reply #5473 on: January 10, 2017, 02:08:35 PM »
Hi Paul,
I think I know already, that wlatest should definitely be that field you mentioned, I only need to change the gust now.

With regards to wind run, yes that is possible because the way this is calculated is this:
It takes the daily average wind speed (db) and multiplies that by the time elapsed since midnight.

However, your Cumulus has realtime values and so it can measure this almost exactly. It has info at much shorter intervals.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Meteotemplate - Block Update - Interactive Graph 4.0
« Reply #5474 on: January 10, 2017, 02:50:56 PM »
Block Update - Interactive Graph 4.0

Hi guys,

several of you have already sent me answers from the questionnaire and even though you sometimes have completely opposite views about things I do see one thing in common - even though I tried to make Meteotemplate extremely customizable, it will never be enough, so I will most likely now concentrate on extending customization possibilities of blocks, plugins and the template as a whole.

Here is one...

In the new version you can now enable/disable a line marking the freezing point (0°C/32°F). If you enable it, you can also specify its color. Just be careful with that, if you let your users to change the color schemes, keep in mind that some colors could be problematic.

DEMO: http://www.meteotemplate.com/template/indexBlockDemoWide.php?block=interactiveGraph

Enjoy