Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired
Please read this post before posting
Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download
Please read this post before posting
Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download
Sparklines
Moderators: daj, TNETWeather
- jdc
- Posts: 134
- Joined: Tue Jun 19, 2012 8:51 pm
- Weather Station: Davis VP2 : Instromet
- Operating System: Win 10 : Win XP
- Location: Berwick-upon-Tweed, England.
- Contact:
Sparklines
I know this has been done before but.....
I have been in conversation with several people regarding 'Sparklines' recently. I have been using them for quite a few years with phpwebtags and decided to simplify my scripts and make them available.
The main proviso is I am not a skilled scripter and I'm sure there are better/more efficient ways to produce the same end result.
I do not know if commas as decimal marks will work.
This method uses php webtags - a basic set supplied.
Limited customisation - colour, size, parameters.
I have tried to 'keep it simple' so it should be straightforward to get sparklines up and running on your site.
Just read the README first!
I have been in conversation with several people regarding 'Sparklines' recently. I have been using them for quite a few years with phpwebtags and decided to simplify my scripts and make them available.
The main proviso is I am not a skilled scripter and I'm sure there are better/more efficient ways to produce the same end result.
I do not know if commas as decimal marks will work.
This method uses php webtags - a basic set supplied.
Limited customisation - colour, size, parameters.
I have tried to 'keep it simple' so it should be straightforward to get sparklines up and running on your site.
Just read the README first!
You do not have the required permissions to view the files attached to this post.
- beteljuice
- Posts: 2463
- Joined: Tue Dec 09, 2008 1:37 pm
- Weather Station: None !
- Operating System: XP SP3 - honest
- Location: Dudley, West Midlands, UK
Re: Sparklines
Welcome to the dark side John 

......................Imagine, what you will KNOW tomorrow !
- jdc
- Posts: 134
- Joined: Tue Jun 19, 2012 8:51 pm
- Weather Station: Davis VP2 : Instromet
- Operating System: Win 10 : Win XP
- Location: Berwick-upon-Tweed, England.
- Contact:
Re: Sparklines
Welcome to the dark side John
Thank you, Emperor.
yep john got them all working on my test page
Great! I see you've added more parameters too.
-
- Posts: 241
- Joined: Sun Jan 25, 2015 8:41 pm
- Weather Station: davis vantage vue
- Operating System: raspberry pi 3
- Location: worthing
- Contact:
Re: Sparklines
yh i done all off them mate do u want me to zip it back up and send it to u as it took a long time to add all of them ?
- jdc
- Posts: 134
- Joined: Tue Jun 19, 2012 8:51 pm
- Weather Station: Davis VP2 : Instromet
- Operating System: Win 10 : Win XP
- Location: Berwick-upon-Tweed, England.
- Contact:
Re: Sparklines
That would be good - thanks.
I will leave the 'basic' settings and have your extras as an add-on.
I will leave the 'basic' settings and have your extras as an add-on.
-
- Posts: 241
- Joined: Sun Jan 25, 2015 8:41 pm
- Weather Station: davis vantage vue
- Operating System: raspberry pi 3
- Location: worthing
- Contact:
Re: Sparklines
here you go jdc
You do not have the required permissions to view the files attached to this post.
-
- Posts: 33
- Joined: Tue Feb 07, 2012 11:51 am
- Weather Station: WS2350 & Davis VP2
- Operating System: Win 7
- Location: Italy
- Contact:
Re: Sparklines
Hello everyone, I use Cumulus 1.9 and I would like to integrate these fantastic graphics on my home page. I can not find the file cuumuluswebtags.txt .... where am I wrong?
Thank you!
Thank you!
My Weather Station: http://piavemeteo.altervista.org
-
- Posts: 241
- Joined: Sun Jan 25, 2015 8:41 pm
- Weather Station: davis vantage vue
- Operating System: raspberry pi 3
- Location: worthing
- Contact:
Re: Sparklines
sorry mate it there but in php formate but here is the txt file aswell
You do not have the required permissions to view the files attached to this post.
- jdc
- Posts: 134
- Joined: Tue Jun 19, 2012 8:51 pm
- Weather Station: Davis VP2 : Instromet
- Operating System: Win 10 : Win XP
- Location: Berwick-upon-Tweed, England.
- Contact:
Re: Sparklines
You don't need a full cumuluswebtags.txt there is sparklines_tags.txt in the zipped file purely for Sparklines.
The Readme explains how to use it with Cumulus.
The Readme explains how to use it with Cumulus.
-
- Posts: 241
- Joined: Sun Jan 25, 2015 8:41 pm
- Weather Station: davis vantage vue
- Operating System: raspberry pi 3
- Location: worthing
- Contact:
Re: Sparklines
yh John i think he downloaded my zip up one and my one was cuumuluswebtags.php not
cuumuluswebtags.txt
cuumuluswebtags.txt
-
- Posts: 33
- Joined: Tue Feb 07, 2012 11:51 am
- Weather Station: WS2350 & Davis VP2
- Operating System: Win 7
- Location: Italy
- Contact:
Re: Sparklines
Hi, unfortunately I can not configure this script .... are not clear the steps below taken from the file readme.txt, especially the second point where I would like to use the file 'sparkline_tags.txt
1) If you are already using cumuluswebtags add the contents of sparkline_tags.txt to your cumuluswebtags.txt file.
2) If you have no existing webtags file, Save 'sparkline_tags.txt' and have Cumulus Process and Upload as sparkline_tags.php
In spark.php change the path to your webtags file.
FOR EXAMPLE:
include("/sparkline_tags.php");
OR
include($_SERVER["DOCUMENT_ROOT"] . "/cumulus/cumuluswebtags.php");
1) If you are already using cumuluswebtags add the contents of sparkline_tags.txt to your cumuluswebtags.txt file.
2) If you have no existing webtags file, Save 'sparkline_tags.txt' and have Cumulus Process and Upload as sparkline_tags.php
In spark.php change the path to your webtags file.
FOR EXAMPLE:
include("/sparkline_tags.php");
OR
include($_SERVER["DOCUMENT_ROOT"] . "/cumulus/cumuluswebtags.php");
My Weather Station: http://piavemeteo.altervista.org
-
- Posts: 241
- Joined: Sun Jan 25, 2015 8:41 pm
- Weather Station: davis vantage vue
- Operating System: raspberry pi 3
- Location: worthing
- Contact:
Re: Sparklines
send me ur cuumulus location
in ur php /html put
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="sparkline.min.js"></script>
<script type="text/javascript" src="spark.php"></script>
then where u want to put the graphics
<span class="temp"></span></td>
and so on
ps if it help look at mine
http://www.davisworthing.co.uk/new/one.php
in ur php /html put
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="sparkline.min.js"></script>
<script type="text/javascript" src="spark.php"></script>
then where u want to put the graphics
<span class="temp"></span></td>
and so on
ps if it help look at mine
http://www.davisworthing.co.uk/new/one.php
-
- Posts: 33
- Joined: Tue Feb 07, 2012 11:51 am
- Weather Station: WS2350 & Davis VP2
- Operating System: Win 7
- Location: Italy
- Contact:
Re: Sparklines
hen this part of the modification of the index.htm file is clear to me ... it's the part of the configuration I do not understand
My Weather Station: http://piavemeteo.altervista.org
-
- Posts: 241
- Joined: Sun Jan 25, 2015 8:41 pm
- Weather Station: davis vantage vue
- Operating System: raspberry pi 3
- Location: worthing
- Contact:
Re: Sparklines
so u put cuumuluswebtagsT.txt in the cuumulus web folder this in cuumulus go to Extra web files
PROCESS cuumuluswebtagsT.txt REMOTE FILENAME cumuluswebtags.php
PROCESS cuumuluswebtagsT.txt REMOTE FILENAME cumuluswebtags.php
Return to “Web site - General”
Who is online
Users browsing this forum: geoffw and 4 guests