cloudy

Author Topic: Sparkline  (Read 21777 times)

0 Members and 1 Guest are viewing this topic.

Bashy

  • Guest
Re: Sparkline
« Reply #30 on: October 26, 2007, 05:57:34 PM »
Hi

I've just been playing and created 3 more, Wind Speed, Wind DIR and a Solar graph

I have added them to this post in case anyone is interested :)

You can view them here at the bottom

Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Sparkline
« Reply #31 on: October 26, 2007, 06:52:27 PM »
Thank you Bashy

Jozef

Bashy

  • Guest
Re: Sparkline
« Reply #32 on: October 26, 2007, 07:44:19 PM »
Ya welcome, tis the least i can do!!

Offline edje1205

  • edje
  • Posts: 1,818
  • Zaandam Holland, the Netherlands
    • http://www.weersverwachtingen.eu
Re: Sparkline
« Reply #33 on: October 26, 2007, 09:45:17 PM »


Yep like it ! Thanx !
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Bashy

  • Guest
Re: Sparkline
« Reply #34 on: October 27, 2007, 09:31:14 AM »
Ok just in case anyone wants it, I have created the Gust speed last 24 hrs
Added to this post

Offline edje1205

  • edje
  • Posts: 1,818
  • Zaandam Holland, the Netherlands
    • http://www.weersverwachtingen.eu
Re: Sparkline
« Reply #35 on: October 27, 2007, 09:57:53 AM »
Thnx 4 more total now, oops have to adapt my webpage.

Joseph,

Was just looking at your page again.
Yesterday the lines changed at about each minute.
Do you upload each minute clientrawhour.txt ? (own server I suppose?)

Here I can't faster then once in 5 min, so always much flat lines and a
change now and then.

(This is beside slow changes of temps baro wind of course)
What's different ?

grtz
edje
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Sparkline
« Reply #36 on: October 27, 2007, 10:29:56 AM »
Do you upload each minute clientrawhour.txt ? (own server I suppose?)

The answer is ..... mysql

Jozef

Bashy

  • Guest
Re: Sparkline
« Reply #37 on: October 27, 2007, 10:42:55 AM »
I upload my clientraw every minute i think it is and yeah its to a dedicated server over in the US  :)

Offline edje1205

  • edje
  • Posts: 1,818
  • Zaandam Holland, the Netherlands
    • http://www.weersverwachtingen.eu
Re: Sparkline
« Reply #38 on: October 27, 2007, 11:19:15 AM »

As in another thread mentioned I'm not allowed to upload mysql data to my host
I only can import with a script on the server. They say it's very common to do that.

Trying it manual, clientraw*.txt , data*csv wil give an error, don't know what's poss more. Are there any other files to import to work with on this ?

If I had should know ..............................(yes other host)  :x

Bashy,

For sparkline it's about clientrawhour.txt, only poss to upload it once at 5 min.
Do you use otherwise ?
« Last Edit: October 27, 2007, 11:21:28 AM by edje1205 »
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Offline broadstairs

  • Stuart
  • Posts: 6,175
  • Broadstairs, Kent, UK
    • Broadstairs
Re: Sparkline
« Reply #39 on: October 27, 2007, 11:24:44 AM »
One thing you can do is to run MySQL locally on your WD PC (if its powerful enough) and then access your MySQL data from your hosting site on your local PC. All you have to do is setup a read only userid on MySQL and open up the MySQL port to the internet. On my router I allow only access from the specific IP address where my web site is hosted so its pretty secure. I actually only access MySQL for other databases not related to WD as I can upload my clientraw files fast enough.

Stuart

Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Sparkline
« Reply #40 on: October 27, 2007, 11:37:54 AM »
or you can use this script with cron, it reads clientraw and updates your database

Offline edje1205

  • edje
  • Posts: 1,818
  • Zaandam Holland, the Netherlands
    • http://www.weersverwachtingen.eu
Re: Sparkline
« Reply #41 on: October 27, 2007, 11:45:54 AM »


Thanx both !

Broadstairs, my PC isn't dedicated enough to run it that way...wil change host soon.

Pinto,

aha, that's what I can work out , as I can see so far ( why not ? hm my host surprised me before, but keep :D)

Let you know !
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


Offline Tim Hanko

  • Posts: 1,108
  • Grand Rapids, Michigan, USA
    • Walker, MI Weather
Re: Sparkline
« Reply #42 on: October 27, 2007, 12:03:28 PM »
Is it possible to create/upload clientrawhour.txt every minute?

Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Sparkline
« Reply #43 on: October 27, 2007, 12:05:27 PM »
Is it possible to create/upload clientrawhour.txt every minute?
No, not unless Brian changes it in the settings, as for now, it is 5 minutes

Offline edje1205

  • edje
  • Posts: 1,818
  • Zaandam Holland, the Netherlands
    • http://www.weersverwachtingen.eu
Re: Sparkline
« Reply #44 on: October 27, 2007, 01:09:33 PM »
It's comming up, what is
Code: [Select]
Notice: Undefined variable: query in /var/www/vhosts/weersverwachtingen.eu/httpdocs/update_mysql.php on line 153

Error performing query:
Duplicate entry 'weersverwa' for key 1

in the script I see:
Code: [Select]
$id = "weersverwachtingen.eu"; //id as used by Weather Display (location of your weatherstation***
did
'zaanstreek' 'Zaandam'
but that's not it ,

Joseph ? assistentie aub
« Last Edit: October 27, 2007, 01:16:56 PM by edje1205 »
Ed
Woodenshoes,mills,hightech;but random weather
www.weersverwachtingen.eu
P4 2,2Ghz-2GB RAM-Win2K-Broadb.connect


 

cumulus