Author Topic: Wxgraphic again.  (Read 3660 times)

0 Members and 1 Guest are viewing this topic.

Offline Jan-Ove

  • Member
  • *
  • Posts: 31
    • Magra Väderstation
Wxgraphic again.
« on: November 04, 2009, 04:32:01 PM »
Hi!

Now I run my head into the wall again, really well.javascript:void(0); I thought that I gonna make some new banner "wxgraphic" to use. But now I cant get any text on them. If there is some one out there who like to take a look you can see it here: www.magravaeder.se/wxlogo.php. The only text that is visible is: Data currently unavailable. I have the files in map whit the name:wxgraphic. And wxlogo.php is in the root of the website.

Thanks in advance
Jan-Ove

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
Re: Wxgraphic again.
« Reply #1 on: November 04, 2009, 08:41:54 PM »

In the file config.txt, you have a line 12 lines down that says:

$data_file_path  = '/wxgraphic/wxgraphic.php';

This means that the script is essentially calling itself. This line is supposed to point to the file containing the weather data. What is the name of the file containing the weather data?

Are you using Weather Display (WD) or Virtual Weather Station (VWS)?
Mae govannen!
Kevin  (Member AMS) http://www.wxbeacon.com               Genesee County, Michigan
Hardware:  Davis Vantage Pro Wireless, Midland WR-300
Software: VWS 14.01p43, WeatherFlash, & GRLevel3

Offline Jan-Ove

  • Member
  • *
  • Posts: 31
    • Magra Väderstation
Re: Wxgraphic again.
« Reply #2 on: November 05, 2009, 01:49:44 AM »
Hi!
I am using Weather Display

Offline Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: Wxgraphic again.
« Reply #3 on: November 05, 2009, 04:27:39 AM »
you need to change the data file patch.

$data_file_path  = '/www.magravaeder.se/clientraw.txt';

to

$data_file_path = '../clientraw.txt';
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

Offline Jan-Ove

  • Member
  • *
  • Posts: 31
    • Magra Väderstation
Re: Wxgraphic again.
« Reply #4 on: November 05, 2009, 06:21:40 AM »
Hi!

I tested with: $data_file_path = '/clientraw.txt'; before, and as you can see I forgott the two dotts before clientraw.txt. But now its working again.
Thank you very much for your help.
Best regards Jan-Ove.

Offline Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: Wxgraphic again.
« Reply #5 on: November 05, 2009, 06:27:18 AM »
They looks very good Jan-Ove, don't forget to change in your profile so that the banner is showed under your posts.
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

Offline TorH

  • Forecaster
  • *****
  • Posts: 405
    • Været på Fauske
Re: Wxgraphic again.
« Reply #6 on: November 05, 2009, 07:48:42 AM »
Nice Jan-Ove, but you maybe should change were it say "A Title Here" to your place, for instance Magra, Västra Götaland, Sverige, just a tip  :-)
Davis Vantage PRO2 wireless
VWS V14.00 p103, WD ver.10.37N, WL 5.8.2, VVP.
WeatherFlash
DW1549
WeatherUnderground: INORDLAN14
Location: Fauske, Northern Norway. N 67°15'41", E 15°24'41"
http://bjornli.net                     

Offline Jan-Ove

  • Member
  • *
  • Posts: 31
    • Magra Väderstation
Re: Wxgraphic again.
« Reply #7 on: November 05, 2009, 08:01:02 AM »
Thank you very much guys!
Yes, I'll change the text.
I wonder what the two dotts and the slash before the clientraw.txt means? It must mean a lot because it does not work without.

Jan-Ove

Offline Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: Wxgraphic again.
« Reply #8 on: November 05, 2009, 08:32:19 AM »
They mean that the file is one folder up in the tree structure
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

Offline Jan-Ove

  • Member
  • *
  • Posts: 31
    • Magra Väderstation
Re: Wxgraphic again.
« Reply #9 on: November 05, 2009, 10:42:39 AM »
Hi again!
Why is it only my text on the default banner? I've looked in the config.txt but have not found anything. What have I forgotten or missed ?

Jan-Ove.

Offline Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: Wxgraphic again.
« Reply #10 on: November 05, 2009, 11:18:55 AM »
you will need to change this in more places in the file.

Code: [Select]
imagecenteredtext(90, 12, "Magra ", 3, 10, $color2, 0);
  imagecenteredtext(90, 25, "Lokalt väder", 3, 10, $color2, 0);
« Last Edit: November 05, 2009, 11:43:46 AM by Axelvold »
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

Offline Jan-Ove

  • Member
  • *
  • Posts: 31
    • Magra Väderstation
Re: Wxgraphic again.
« Reply #11 on: November 05, 2009, 12:23:54 PM »
Thank you once again Lars.

Jan-Ove.

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2429
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Wxgraphic again.
« Reply #12 on: November 08, 2009, 09:32:54 PM »
They looks very good Jan-Ove, don't forget to change in your profile so that the banner is showed under your posts.

So what is the procedure one must go through in order do that?

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
Re: Wxgraphic again.
« Reply #13 on: November 08, 2009, 11:12:10 PM »
They looks very good Jan-Ove, don't forget to change in your profile so that the banner is showed under your posts.

So what is the procedure one must go through in order do that?

You would do something like this:

Click:

  Profile > Forum Profile Information

Then in Signature, enter:

Code: [Select]
[url=http://www.stillwaterweather.com/][img]http://www.wunderground.com/US/OK/Stillwater.html?bannertypeclick=bigtemp[/img][/url]
Then click the Change Profile button.
Mae govannen!
Kevin  (Member AMS) http://www.wxbeacon.com               Genesee County, Michigan
Hardware:  Davis Vantage Pro Wireless, Midland WR-300
Software: VWS 14.01p43, WeatherFlash, & GRLevel3

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2429
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Wxgraphic again.
« Reply #14 on: November 09, 2009, 04:03:07 PM »
Sorry, but doing that did not work.  Neither did it work when adapting it to use with my own banner.

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: Wxgraphic again.
« Reply #15 on: November 09, 2009, 04:13:11 PM »
Here you go, copy this and then paste it in your signature.

Code: [Select]
[url=http://www.stillwaterweather.com][img]http://weathersticker.wunderground.com/weathersticker/big2_cond/language/www/US/OK/Stillwater.gif
[/img][/url]

and it will look like this

« Last Edit: November 09, 2009, 04:15:36 PM by Axelvold »
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2429
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: Wxgraphic again.
« Reply #16 on: November 10, 2009, 01:42:06 AM »
Thanks for you help. However, I finally caught on as to how to use my own banner.  Seems there was a syntax error, a slash that didn't belong at the end.  All is good now.  For now it looks like the temp and dew point here is trying to get close enough together for fog formation.
« Last Edit: November 10, 2009, 01:45:06 AM by Bunty »

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php