Author Topic: thermometer  (Read 8089 times)

0 Members and 1 Guest are viewing this topic.

Offline wxkpt

  • Kingsport, TN Weather
  • Senior Contributor
  • ****
  • Posts: 284
  • When The Weather Gets Tough.. Get With The Weather
    • Kingsport, TN Live and Local weather
Re: thermometer
« Reply #25 on: January 17, 2009, 09:06:41 AM »
Morning Folks,

Thanks to wxflint and saratogaWX for the assistance last night.  I have one other issue.  There is some other characters besides the "F" on top of the thermometer.  How do I remove those?

Thanks,

John

Try This in thermometer.php

Actually, it's fairly simple :)

Your thermometer.php has
Code: [Select]
    $cnt = '°' . $UOM; in it, and it should read
Code: [Select]
    $cnt = '°' . $UOM; for that line.

Somehow, the degree sign got replaced with a character code, instead of the literal degree sign.

Since the GD functions only understand characters (not HTML &symbols; characters), it was just producing the ° instead of ° .

Hope this helps...
Best regards,
Ken

« Last Edit: January 17, 2009, 09:09:00 AM by wxflint »

Offline John Sacrey

  • Member
  • *
  • Posts: 23
    • Saline Weather
Re: thermometer
« Reply #26 on: January 17, 2009, 09:12:22 AM »
Thank you very much, Kevin.  That was it.  Obviously I"m not awake yet.

John
Benton/Salem, AR
Vantage Pro 2, GR2AE, GR3,

Offline wxkpt

  • Kingsport, TN Weather
  • Senior Contributor
  • ****
  • Posts: 284
  • When The Weather Gets Tough.. Get With The Weather
    • Kingsport, TN Live and Local weather
Re: thermometer
« Reply #27 on: January 17, 2009, 09:20:57 AM »
I had the same issue when editing my thermometer.php file with cPanels file editor seems to mess it up every time

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
Re: thermometer
« Reply #28 on: January 17, 2009, 03:11:44 PM »
Thank you very much, Kevin.  That was it.  Obviously I"m not awake yet.

John

Glad I could help. :?: :-k :lol: ;) :oops: :grin:
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 Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: thermometer
« Reply #29 on: January 17, 2009, 03:33:55 PM »
I cant get this working, do i have to weatherflash or could i just use the regular version of VWS?
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

Offline wxkpt

  • Kingsport, TN Weather
  • Senior Contributor
  • ****
  • Posts: 284
  • When The Weather Gets Tough.. Get With The Weather
    • Kingsport, TN Live and Local weather
Re: thermometer
« Reply #30 on: January 17, 2009, 03:38:34 PM »

Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: thermometer
« Reply #31 on: January 17, 2009, 03:53:54 PM »
For this one you have to be uploading the weatherflash files from vws, but you do not need weatherflash installed on your site.
Andrew

ps: for the ajax scripts you need weatherflash installed on site.

I cant get this working, do i have to weatherflash or could i just use the regular version of VWS?

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

Offline Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: thermometer
« Reply #32 on: January 17, 2009, 04:00:16 PM »
how could i upload weatherflash files if i dint have it installed?

What information should there be in that file?
Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: thermometer
« Reply #33 on: January 17, 2009, 05:55:07 PM »
In VWS click Internet, then Weathflash (last in menu)
Put DEMO in ID, choose a timer setting, click activate, pick a location.
Then schedule the ftp upload of the files.

There is a wflash.txt and a wflash2.txt

That's it.   Assuming you have installed Ken's PHP already

Andrew

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
Re: thermometer
« Reply #34 on: January 17, 2009, 05:57:35 PM »
In VWS click Internet, then Weathflash (last in menu)
Put DEMO in ID, choose a timer setting, click activate, pick a location.
Then schedule the ftp upload of the files.

There is a wflash.txt and a wflash2.txt

That's it.   Assuming you have installed Ken's PHP already

Andrew

I think Lars is saying that he doesn't have WeatherFlash and is wondering if there's a work-around.
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 Axelvold

  • Forecaster
  • *****
  • Posts: 1704
    • Axelvold's weather and photo
Re: thermometer
« Reply #35 on: January 17, 2009, 06:01:52 PM »
Your right Kevin, but i did do just what Andrew wrote and it did work.

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus

Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: thermometer
« Reply #36 on: January 17, 2009, 06:02:39 PM »
I know.  You dont need weatherflash.  I did not have it when I setup my thermometer.  The menu item is always in VWS.   The weatherflash actual installation is solely residing on your website, not on the pc or in vws at all.
Andrew



I think Lars is saying that he doesn't have WeatherFlash and is wondering if there's a work-around.

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: thermometer
« Reply #37 on: January 17, 2009, 10:15:57 PM »
Lars does need to install WeatherFlash on his website (so the WeatherFlash scripts to upload the data will be there).
It can run in 'DEMO' mode, and VWS needs to update the wflash.txt/wflash2.txt files using the WF PHP script.

The thermometer.php does read the wflash.txt file for the current temperature, and wflash2.txt for the min and max for the day. 
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline mackbig

  • Forecaster
  • *****
  • Posts: 4128
    • Mackie's Main Street, Unionville, ON Canada Weather
Re: thermometer
« Reply #38 on: January 18, 2009, 07:11:22 AM »
well Ken is the expert, so I will obviously defer.  But I could have sworn my thermo worked, and lars's seems to be working sans wf program, just using the wf files... 

maybe it "worked" but was unsustainable with the wflash site install?  regardless i have wfalsh now on site to make ajax work....

Andrew

Andrew - Davis VP2+ 6163, serial weatherlink, wireless anemometer, running Weather Display.  Boltek PCI Stormtracker, Astrogenic Nexstorm, Strikestar - UNI, CWOP CW8618, GrLevel3, (Station 2 OS WMR968, VWS 13.01p09), Windows 7-64

 

anything