IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

FTP is broken. I advise all users using my server for their web site to make alternative arrangements.

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

Sparklines

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderators: daj, TNETWeather

User avatar
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

Postby jdc » Sat Feb 17, 2018 1:05 pm

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!
You do not have the required permissions to view the files attached to this post.
Last edited by jdc on Sun Jun 24, 2018 10:07 am, edited 1 time in total.

User avatar
beteljuice
Posts: 2474
Joined: Tue Dec 09, 2008 1:37 pm
Weather Station: None !
Operating System: XP SP3 - honest
Location: Dudley, West Midlands, UK

Re: Sparklines

Postby beteljuice » Sat Feb 17, 2018 11:24 pm

Welcome to the dark side John :lol:
Image
......................Imagine, what you will KNOW tomorrow !

User avatar
dazza1223
Posts: 393
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: Sparklines

Postby dazza1223 » Sat Feb 17, 2018 11:43 pm

yep john got them all working on my test page

http://www.davisworthing.co.uk/new/one.php
have fun and keep learning

dazza :D

User avatar
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

Postby jdc » Sun Feb 18, 2018 10:02 am

Welcome to the dark side John :lol:

Thank you, Emperor.

yep john got them all working on my test page

Great! I see you've added more parameters too.

User avatar
dazza1223
Posts: 393
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: Sparklines

Postby dazza1223 » Sun Feb 18, 2018 10:57 am

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 ?
have fun and keep learning

dazza :D

User avatar
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

Postby jdc » Mon Feb 19, 2018 10:59 am

That would be good - thanks.
I will leave the 'basic' settings and have your extras as an add-on.

User avatar
dazza1223
Posts: 393
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: Sparklines

Postby dazza1223 » Mon Feb 19, 2018 11:18 am

here you go jdc
You do not have the required permissions to view the files attached to this post.
have fun and keep learning

dazza :D

mitmania
Posts: 33
Joined: Tue Feb 07, 2012 11:51 am
Weather Station: WS2350 & Davis VP2
Operating System: Win 7
Location: Italy
Contact:

Re: Sparklines

Postby mitmania » Thu Feb 22, 2018 3:48 pm

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!

User avatar
dazza1223
Posts: 393
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: Sparklines

Postby dazza1223 » Thu Feb 22, 2018 3:58 pm

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.
have fun and keep learning

dazza :D

User avatar
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

Postby jdc » Thu Feb 22, 2018 4:16 pm

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.

User avatar
dazza1223
Posts: 393
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: Sparklines

Postby dazza1223 » Thu Feb 22, 2018 4:23 pm

yh John i think he downloaded my zip up one and my one was cuumuluswebtags.php not

cuumuluswebtags.txt
have fun and keep learning

dazza :D

mitmania
Posts: 33
Joined: Tue Feb 07, 2012 11:51 am
Weather Station: WS2350 & Davis VP2
Operating System: Win 7
Location: Italy
Contact:

Re: Sparklines

Postby mitmania » Thu Feb 22, 2018 8:32 pm

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");

User avatar
dazza1223
Posts: 393
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: Sparklines

Postby dazza1223 » Thu Feb 22, 2018 8:38 pm

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
have fun and keep learning

dazza :D

mitmania
Posts: 33
Joined: Tue Feb 07, 2012 11:51 am
Weather Station: WS2350 & Davis VP2
Operating System: Win 7
Location: Italy
Contact:

Re: Sparklines

Postby mitmania » Thu Feb 22, 2018 8:49 pm

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

User avatar
dazza1223
Posts: 393
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3 +
Location: worthing
Contact:

Re: Sparklines

Postby dazza1223 » Thu Feb 22, 2018 8:54 pm

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
have fun and keep learning

dazza :D


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 5 guests