Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
beteljuice AJAX testers wanted
Moderator: daj
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: beteljuice AJAX testers wanted
Hi Beteljuice,
what ajax tag wood match these tag thanks
<#wgust> The current wind gust reading.
<#wspeed> The current wind speed reading.
what ajax tag wood match these tag thanks
<#wgust> The current wind gust reading.
<#wspeed> The current wind speed reading.
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: beteljuice AJAX testers wanted
Good Question
I believe that the different template webtags have been more fully explained elsewhere, and in part may depend on your base station.
In Cumulus webtags there are:
<#wgust> highest speed last 10 min.
<#wspeed> 10min average speed
<#wlatest> current windspeed as displayed on your console
If you haven't edited the beteljuice 'detailed data' page yet, you can just <MOUSEOVER> any value to see its variable name.
Thus in beteljuice_ajax 10min max. gust <#wgust> is :
ajax_wind_mph_recent
ajax_wind_kts_recent
ajax_wind_kph_recent
ajax_wind_mph_recent
... and <#wlatest>, which is what I think is what you really want is:
ajax_wind_mph
ajax_wind_kts
ajax_wind_kph
ajax_wind_mph
... but if you really want <#wspeed> (10min average speed)
ajax_wind_mph_ave
ajax_wind_kts_ave
ajax_wind_kph_ave
ajax_wind_mph_ave
It should be explained in the README (although it doesn't mention webtag equivalents)
I believe that the different template webtags have been more fully explained elsewhere, and in part may depend on your base station.
In Cumulus webtags there are:
<#wgust> highest speed last 10 min.
<#wspeed> 10min average speed
<#wlatest> current windspeed as displayed on your console
If you haven't edited the beteljuice 'detailed data' page yet, you can just <MOUSEOVER> any value to see its variable name.
Thus in beteljuice_ajax 10min max. gust <#wgust> is :
ajax_wind_mph_recent
ajax_wind_kts_recent
ajax_wind_kph_recent
ajax_wind_mph_recent
... and <#wlatest>, which is what I think is what you really want is:
ajax_wind_mph
ajax_wind_kts
ajax_wind_kph
ajax_wind_mph
... but if you really want <#wspeed> (10min average speed)
ajax_wind_mph_ave
ajax_wind_kts_ave
ajax_wind_kph_ave
ajax_wind_mph_ave
It should be explained in the README (although it doesn't mention webtag equivalents)
Last edited by beteljuice on Fri 03 Jul 2009 10:52 am, edited 1 time in total.
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: beteljuice AJAX testers wanted
Hi Beteljuice,
could you add a ajax to go with ajax_wind_mph_recent to so gust wind dir
for example 25° NNE
Beau
could you add a ajax to go with ajax_wind_mph_recent to so gust wind dir
for example 25° NNE
Beau
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: beteljuice AJAX testers wanted
No sorry !
realtime.txt only gives latest and 10 min average direction bearings.
In order to do that you would have to create your own on-going database and use ajax style coding to access that. It inevitably involves server-side coding (eg. php), and 24/7 connection.
T-Net has worked along those lines.
I have deliberately 'limited' myself to realtime.txt and browser-side coding so that you don't have to be a guru to get a result - although it would help
It is possible, and quite acceptable to introduce javascript with cumulus Template (webtags) code in order to manipulate the information you want, and some of this could be 'worked' by ajax. eg. anything to do with almanac data.
Here's something I tried just javascript and webtags - no ajax (yet !)
http://www.beteljuice.com/betel_cumulus/spray.html
view source to get a idea of what it can do (and the Suns position on the page is determined by daylength )
realtime.txt only gives latest and 10 min average direction bearings.
In order to do that you would have to create your own on-going database and use ajax style coding to access that. It inevitably involves server-side coding (eg. php), and 24/7 connection.
T-Net has worked along those lines.
I have deliberately 'limited' myself to realtime.txt and browser-side coding so that you don't have to be a guru to get a result - although it would help
It is possible, and quite acceptable to introduce javascript with cumulus Template (webtags) code in order to manipulate the information you want, and some of this could be 'worked' by ajax. eg. anything to do with almanac data.
Here's something I tried just javascript and webtags - no ajax (yet !)
http://www.beteljuice.com/betel_cumulus/spray.html
view source to get a idea of what it can do (and the Suns position on the page is determined by daylength )
Last edited by beteljuice on Sun 18 Nov 2018 5:11 am, edited 1 time in total.
......................Imagine, what you will KNOW tomorrow !
- steve
- Cumulus Author
- Posts: 26702
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: beteljuice AJAX testers wanted
Yes - it's not just that it's not in realtime.txt, Cumulus doesn't bother storing the directions with the values it uses to calculate the 10-minute recent max gust, so at the moment it would require a few changes before it could start to provide that value.beteljuice wrote:realtime.txt only gives latest and 10 min average direction bearings.
Steve
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: beteljuice AJAX testers wanted
It is do-able, if a little messy ....
Here is a (test) one-shot cumulus template with the 10min gust with it's direction 'worked out' from the big wind variables list. (look underneath the usual table)
http://www.dickie.webfusion.co.uk/HWajax/
If you REALLY want it to ajax update, then you would need to create / upload a Template file either at your realtime interval or normal interval and an extra ajax 'file call' inserted in the beteljuice code, which would then do the functions you see in the example template.
BTW Steve, is latest data in the wind arrays first or 'last one in' ?
Here is a (test) one-shot cumulus template with the 10min gust with it's direction 'worked out' from the big wind variables list. (look underneath the usual table)
http://www.dickie.webfusion.co.uk/HWajax/
If you REALLY want it to ajax update, then you would need to create / upload a Template file either at your realtime interval or normal interval and an extra ajax 'file call' inserted in the beteljuice code, which would then do the functions you see in the example template.
BTW Steve, is latest data in the wind arrays first or 'last one in' ?
......................Imagine, what you will KNOW tomorrow !
- steve
- Cumulus Author
- Posts: 26702
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: beteljuice AJAX testers wanted
Undefined. It's just a circular buffer.beteljuice wrote:BTW Steve, is latest data in the wind arrays first or 'last one in' ?
Steve
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: beteljuice AJAX testers wanted
But which way does it circle
......................Imagine, what you will KNOW tomorrow !
- steve
- Cumulus Author
- Posts: 26702
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: beteljuice AJAX testers wanted
Clockwise
It adds a new value then increments the index. To know what the latest is, I think you'd need me to make the 'next' index available.
It adds a new value then increments the index. To know what the latest is, I think you'd need me to make the 'next' index available.
Steve
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: beteljuice AJAX testers wanted
Hi Beteljuice,
i have all Cumulus varables in text file that get updated how could i ajax it
here the example http://www.n9mfk.com/tags.php?sce=view
Beau
i have all Cumulus varables in text file that get updated how could i ajax it
here the example http://www.n9mfk.com/tags.php?sce=view
Beau
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: beteljuice AJAX testers wanted
You don't want much do you
First of all OK you have all the <#webtags>, but that isn't a text file and you have given everything php variable names.
Second. you have two choices - either make a CSV template (like realtime.txt) and put all your own determining logic in the middle of beteljuice_ajax OR make the template in xml format, where it effectively carries a variable name with the value and you interogate the file for each one.
The rationale for the xml call / decode is slightly different and examples may be seen in other various ajax scripts on the forum.
... good luck, you'll have many sleepless nights
.. Thanks for the info Steve, so no matter which end I started, if there were two or more speed values equal to the gust (out of 3,600 ), then I'd have no better than 50% chance of getting the latest - gotta love it
First of all OK you have all the <#webtags>, but that isn't a text file and you have given everything php variable names.
Second. you have two choices - either make a CSV template (like realtime.txt) and put all your own determining logic in the middle of beteljuice_ajax OR make the template in xml format, where it effectively carries a variable name with the value and you interogate the file for each one.
The rationale for the xml call / decode is slightly different and examples may be seen in other various ajax scripts on the forum.
... good luck, you'll have many sleepless nights
.. Thanks for the info Steve, so no matter which end I started, if there were two or more speed values equal to the gust (out of 3,600 ), then I'd have no better than 50% chance of getting the latest - gotta love it
......................Imagine, what you will KNOW tomorrow !
- steve
- Cumulus Author
- Posts: 26702
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: beteljuice AJAX testers wanted
I've exposed the 'next index' as a web tag in the latest beta:
http://www.nybbles.co.uk/downloads/beta ... sSetup.exe
The tag is <#nextwindindex> and gives the index (from zero) of the next location in the arrays which Cumulus is going to use. So to get to the latest value you need to subtract one, and allow for wrapping around.
http://www.nybbles.co.uk/downloads/beta ... sSetup.exe
The tag is <#nextwindindex> and gives the index (from zero) of the next location in the arrays which Cumulus is going to use. So to get to the latest value you need to subtract one, and allow for wrapping around.
Steve
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: beteljuice AJAX testers wanted
Something not right Steve !
At the moment (after update) the array(s) are still building, the 'count' is eg. 976 so I would expect nextwindindex to be the same, but it's 1 less eg. 975
ie. It's behaving like CURRENTwindindex.
count = array length, (1 > ) 976
nextwindindex = next available 'key', (0 > ) 976
Clarification please:
The variable name used in the gauges page (hwspd, hwdir) suggest data for the last hour, but it would appear to be the last 3600 successful readings of the base station.
In my case, cabled LaCrosse WS2300, every 8s = 8 hours of data
For a Watson (sic.) every 50s = 50 hours of data !
PS. Did you remember to put the humidity check and current temp check in the Heat Index code
At the moment (after update) the array(s) are still building, the 'count' is eg. 976 so I would expect nextwindindex to be the same, but it's 1 less eg. 975
ie. It's behaving like CURRENTwindindex.
count = array length, (1 > ) 976
nextwindindex = next available 'key', (0 > ) 976
Clarification please:
The variable name used in the gauges page (hwspd, hwdir) suggest data for the last hour, but it would appear to be the last 3600 successful readings of the base station.
In my case, cabled LaCrosse WS2300, every 8s = 8 hours of data
For a Watson (sic.) every 50s = 50 hours of data !
PS. Did you remember to put the humidity check and current temp check in the Heat Index code
......................Imagine, what you will KNOW tomorrow !
- steve
- Cumulus Author
- Posts: 26702
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: beteljuice AJAX testers wanted
The bug was that it was adding a spurious extra entry to the end of the array. Fixed in latest build:beteljuice wrote:At the moment (after update) the array(s) are still building, the 'count' is eg. 976 so I would expect nextwindindex to be the same, but it's 1 less eg. 975
ie. It's behaving like CURRENTwindindex.
http://www.nybbles.co.uk/downloads/beta ... sSetup.exe
Yes, probably, but not my code, remember. I just happened to have those arrays available, and they work OK with the gauges, so I used them.The variable name used in the gauges page (hwspd, hwdir) suggest data for the last hour,
Not quite. Don't forget that Cumulus doesn't know when the data has actually been updated in the Fine Offset case, so just reads the data every 10 seconds and uses each one as a new reading. So it's about 10 hours of data.In my case, cabled LaCrosse WS2300, every 8s = 8 hours of data
For a Watson (sic.) every 50s = 50 hours of data !
Of course notPS. Did you remember to put the humidity check and current temp check in the Heat Index code
Also fixed in latest build.
Steve
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: beteljuice AJAX testers wanted
Hi beteljuice
are there any ie8 updates needed in ajaxgizmo.js
thanks for all the help Beau
are there any ie8 updates needed in ajaxgizmo.js
thanks for all the help Beau