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 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
help
Moderator: mcrossley
- mcrossley
- Posts: 12767
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: help
The Wiki seems pretty clear?
... giving data values from 1 minute ago, up to 1 week ago, in 1 minute intervals.
...
For example, <#RecentOutsideTemp m=1> will give the temperature one minute ago, <#RecentOutsideTemp h=1> will give the temperature one hour ago (as will <#RecentOutsideTemp m=60>), and <#RecentOutsideTemp d=1> will give the temperature one day ago. <#RecentOutsideTemp d=1 h=1 m=1> will give the temperature one day, one hour and one minute ago. All values supplied for parameters must be whole numbers.
-
- Posts: 3254
- Joined: Sat 13 Aug 2011 9:33 am
- Weather Station: Ecowitt HP2551
- Operating System: Windows 10 64bit
- Location: Burnham-on-Sea
- Contact:
Re: help
If you posted your settings and what you are expecting it might help as at the moment no one has the slightest clue what you are trying to do.
- dazza1223
- Posts: 867
- Joined: Sun 25 Jan 2015 8:41 pm
- Weather Station: Davis Vantage Pro 2 plus
- Operating System: Raspberry pi 4 (4gb)
- Location: Worthing
- Contact:
Re: help
so im trying to add Sparklines line but when i hover over the chrat
i want to to show
Temp in the period 14:37 to 23:34
11.2 °C
Is there a way to show the actual time of each recent data point?
ie
[<#RecentOutsideTemp h=0 m=61>,<#RecentOutsideTemp h=0 m=56>,<#RecentOutsideTemp h=0 m=51>,<#RecentOutsideTemp h=0 m=46>,
<#RecentOutsideTemp h=0 m=41>,<#RecentOutsideTemp h=0 m=36>,<#RecentOutsideTemp h=0 m=31>,<#RecentOutsideTemp h=0 m=26>,
<#RecentOutsideTemp h=0 m=21>,<#RecentOutsideTemp h=0 m=16>,<#RecentOutsideTemp h=0 m=11>,<#RecentOutsideTemp h=0 m=6>];
i haven't got a page yet as im trying to get me heard around this
i made a temp page
http://www.davisworthing.co.uk/new/one.php
i want to to show
Temp in the period 14:37 to 23:34
11.2 °C
Is there a way to show the actual time of each recent data point?
ie
[<#RecentOutsideTemp h=0 m=61>,<#RecentOutsideTemp h=0 m=56>,<#RecentOutsideTemp h=0 m=51>,<#RecentOutsideTemp h=0 m=46>,
<#RecentOutsideTemp h=0 m=41>,<#RecentOutsideTemp h=0 m=36>,<#RecentOutsideTemp h=0 m=31>,<#RecentOutsideTemp h=0 m=26>,
<#RecentOutsideTemp h=0 m=21>,<#RecentOutsideTemp h=0 m=16>,<#RecentOutsideTemp h=0 m=11>,<#RecentOutsideTemp h=0 m=6>];
i haven't got a page yet as im trying to get me heard around this
i made a temp page
http://www.davisworthing.co.uk/new/one.php
- 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: help
As far as I can see your values ARE been populated in your code:
... but only 'the last man standing' is being displayed. That suggests there is something not right for the sparkline / tooltip code.
Code: Select all
/* <![CDATA[ */
$(function() {
/* temperature sparkline() function */
var recent_outside_temp = [5.8,5.7,5.7,5.7,
5.7,5.7,5.6,5.6,
5.6,5.6,5.6,5.6];
$('.temperature').sparkline(recent_outside_temp, {
type: "line",
tooltipSuffix: " °C",
width: 60,
tooltipChartTitle: 'Temperatures in the period<br/>12:32 to 01:27'
});
// Insert a second/subsequent sparkline function here
});
/* ]]> */
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 1183
- Joined: Fri 27 Jul 2012 11:29 am
- Weather Station: Chas O, Maplin N96FY, N25FR
- Operating System: rPi 3B+ with Buster (full)
Re: help
As Mark says, is the Wiki not clear enough?dazza1223 wrote:Is there a way to show the actual time of each recent data point?
<#RecentTS> Takes parameters like the 'recent data' web tags (e.g. <#RecentOutsideTemp>) and gives the timestamp of the data that will be returned for those web tags with the supplied parameters (it may not have the data for the exact time specified). Format can be specified in the usual way with the 'format' parameter.
- 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: help
Afterthought - excuse the old beteljuice ignorance, but aren't sparklines some sort of graph ?
In which case no y-axis (timeline) has been defined !
In which case no y-axis (timeline) has been defined !
......................Imagine, what you will KNOW tomorrow !
- dazza1223
- Posts: 867
- Joined: Sun 25 Jan 2015 8:41 pm
- Weather Station: Davis Vantage Pro 2 plus
- Operating System: Raspberry pi 4 (4gb)
- Location: Worthing
- Contact:
Re: help
yh it is mate and ive seen on some one site that when u hover over it it will show u the right time not like this
tooltipChartTitle: 'Temperatures in the period<br/><#RecentTS h=0 m=61 format=hh:mm> to <#RecentTS h=0 m=6
ie
10.54
13.c
11.15
12c
12.15
9c
and so on
tooltipChartTitle: 'Temperatures in the period<br/><#RecentTS h=0 m=61 format=hh:mm> to <#RecentTS h=0 m=6
ie
10.54
13.c
11.15
12c
12.15
9c
and so on
- jdc
- Posts: 142
- Joined: Tue 19 Jun 2012 8:51 pm
- Weather Station: Davis VP2 : Instromet
- Operating System: Win 10
- Location: Portsoy,.
- Contact:
Re: help
To get that effect (and I have no idea if this is the 'best' way to do it) I created two sets of variables using webtags
Then I basically superimposed two graphs, one for 'temp' and one for 'time'.
The time graph is completely the background colour ('#bed8bf')
The Sparkline website is very helpful.
https://omnipotent.net/jquery.sparkline/#s-docs
Code: Select all
<!-- Temp -->
var temp = [2.1,1.8,1.3,1.2,1.5,2,2,2.2,2,2,2.2,2.5,2.3];
var temptime = ['05.15','05.45','06.15','06.45','07.15','07.45','08.15','08.45','09.15','09.45','10.15','10.45','11.15'];
The time graph is completely the background colour ('#bed8bf')
Code: Select all
$(function() {
$('.temp').sparkline(temptime, {
type: 'line',
lineColor: '#bed8bf',
fillColor: '#bed8bf',
spotColor: '#bed8bf',
minSpotColor: '#bed8bf',
maxSpotColor: '#bed8bf',
numberFormatter: function(y) {return (('0000'+(y.toFixed(2))).slice (-5));},
width: 60,
tooltipClassname: 'spark',
tooltipPrefix: 'Time: ',
tooltipFormat:'<span style="color: {{color}}"></span> {{prefix}}{{y}}{{suffix}}',
tooltipChartTitle: 'Temperature Today.'
});
$('.temp').sparkline(temp, {
composite: true,
type: 'line',
lineColor: '#008000',
fillColor: '#bed8bf',
spotColor: '#00007f',
minSpotColor: '#007fff',
maxSpotColor: '#ff0000',
tooltipClassname: 'spark',
tooltipFormat:'<span style="color: {{color}}"></span>{{prefix}}{{y}}{{suffix}}',
tooltipPrefix: 'Temp: ',
tooltipSuffix: " °C",
width: 60
});
});
https://omnipotent.net/jquery.sparkline/#s-docs
- dazza1223
- Posts: 867
- Joined: Sun 25 Jan 2015 8:41 pm
- Weather Station: Davis Vantage Pro 2 plus
- Operating System: Raspberry pi 4 (4gb)
- Location: Worthing
- Contact:
Re: help
var temptime = ['05.15','05.45','06.15','06.45','07.15','07.45','08.15','08.45','09.15','09.45','10.15','10.45','11.15'];.......... so like this yh??
[<#RecentOutsideTemp h=5 m=15>
<#RecentOutsideTemp h=5 m=45>
[<#RecentOutsideTemp h=6 m=15>
[<#RecentOutsideTemp h=6 m=45>
[<#RecentOutsideTemp h=7 m=15>
[<#RecentOutsideTemp h=7 m=45>
[<#RecentOutsideTemp h=8 m=15>
and so yh plz say im right
[<#RecentOutsideTemp h=5 m=15>
<#RecentOutsideTemp h=5 m=45>
[<#RecentOutsideTemp h=6 m=15>
[<#RecentOutsideTemp h=6 m=45>
[<#RecentOutsideTemp h=7 m=15>
[<#RecentOutsideTemp h=7 m=45>
[<#RecentOutsideTemp h=8 m=15>
and so yh plz say im right
- jdc
- Posts: 142
- Joined: Tue 19 Jun 2012 8:51 pm
- Weather Station: Davis VP2 : Instromet
- Operating System: Win 10
- Location: Portsoy,.
- Contact:
Re: help
I'm using php webtags so here is a section of how I did it:
HTH
Code: Select all
$temp0 ="<#RecentOutsideTemp h=0 m=0>";
$temptime0 ="<#RecentTS h=0 m=0 format=HH.mm>";
$temp1 ="<#RecentOutsideTemp h=0 m=30>";
$temptime1 ="<#RecentTS m=30 format=HH.mm>";
$temp2 ="<#RecentOutsideTemp h=1>";
$temptime2 ="<#RecentTS h=1 format=HH.mm>";
$temp3 ="<#RecentOutsideTemp h=1 m=30>";
$temptime3 ="<#RecentTS h=1 m=30 format=HH.mm>";
$temp4 ="<#RecentOutsideTemp h=2>";
$temptime4 ="<#RecentTS h=2 format=HH.mm>";
$temp5 ="<#RecentOutsideTemp h=2 m=30>";
$temptime5 ="<#RecentTS h=2 m=30 format=HH.mm>";
- dazza1223
- Posts: 867
- Joined: Sun 25 Jan 2015 8:41 pm
- Weather Station: Davis Vantage Pro 2 plus
- Operating System: Raspberry pi 4 (4gb)
- Location: Worthing
- Contact:
Re: help
hy just want to say a big thank to u all helping me and even a bigher thank to jdc for showing me the php file and puting me on the right tracks
jdc,beteljuice,sfws,water01,mcrossley
jdc,beteljuice,sfws,water01,mcrossley