Author Topic: Issue with WXSim Script  (Read 655 times)

0 Members and 1 Guest are viewing this topic.

Offline UpstateWeather.com

  • Signature
  • Contributor
  • ***
  • Posts: 146
    • Upstate Weather
Issue with WXSim Script
« on: June 30, 2017, 04:39:37 PM »
Hello,

I recently downloaded WXSIM to try it out and get a handle on the program. I wanted to upload the forecast to my website using the Saratoga Weather Script. However, I'm getting error messages when I use it.
 
Warning: implode(): Invalid arguments passed in /home1/paintpac/public_html/ericboettner/weather/plaintext-parser.php on line 972

Weather Display is uploading the plaintext.txt file, but obviously I'm doing something else wrong.

Help! Any suggestions?

My website is www.ericboettner.com/weather

The WXSim page is http://www.ericboettner.com/weather/wxsimforecast.php

Thanks!
Eric

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Issue with WXSim Script
« Reply #1 on: June 30, 2017, 05:47:37 PM »
Hi Eric,
The issue is that the file 'plaintext.txt' at http://www.ericboettner.com/weather/plaintext.txt contains raw METAR data, not a plaintext.txt forecast from c:\wxsim\plaintext.txt

That file should look like
Quote
   WXSIM text forecast for Saratoga, initialized at  2:00 PM Jun 30, 2017
 _______________________________________________________________________________
 
 This afternoon: Clear. High 80. UV index up to 10. Wind northwest around 9 mph,
 gusting to 21 mph.
 
 Tonight: Clear. Patchy light fog after midnight. Low 52. Wind west-northwest
 around 4 mph, gusting to 16 mph, in the evening, becoming west-southwest after
 midnight.
 
 Saturday: Mostly sunny in the morning, becoming sunny in the afternoon. Patchy
 light fog in the morning. High 88. UV index up to 10. Wind west-southwest around
 4 mph, gusting to 15 mph, in the morning, becoming 8 mph, gusting to 18 mph, in
 the afternoon.
 
 Saturday night: Clear. Low 54. Wind west-southwest around 3 mph, gusting to 16
 mph.
 
 Sunday: Sunny. High 91. UV index up to 10. Wind southwest around 3 mph in the
 morning, becoming 7 mph, gusting to 16 mph, in the afternoon.
 
 Sunday night: Clear. Low 54. Wind west-southwest around 2 mph.
 
 Monday: Sunny. High 91. UV index up to 10. Wind west-southwest around 3 mph in
 the morning, becoming 8 mph, gusting to 17 mph, in the afternoon.
 
 Monday night: Clear. Low 54. Wind west-southwest around 2 mph.
 
 Tuesday: Sunny. High 91. UV index up to 10. Wind west-southwest around 3 mph in
 the morning, becoming 7 mph, gusting to 16 mph, in the afternoon.
 
 Tuesday night: Clear. Low 54. Wind west-southwest around 2 mph.
 
 Wednesday: Sunny. High 90. UV index up to 10. Wind west-southwest around 3 mph,
 gusting to 15 mph, in the morning, becoming 8 mph, gusting to 17 mph, in the
 afternoon.
 
 Wednesday night: Clear. Low 54. Wind west around 2 mph.
 
 * THIS FORECAST WAS MADE IN AUTOMATED MODE AND MAY BE LESS ACCURATE THAN OTHERWISE *
for the plaintext-parser.php to work.
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 UpstateWeather.com

  • Signature
  • Contributor
  • ***
  • Posts: 146
    • Upstate Weather
Re: Issue with WXSim Script
« Reply #2 on: June 30, 2017, 06:58:07 PM »
Thanks Ken! You are a rock star and a hero.

Stupid error on my part. But all fixed now. Thanks!!


Sent from my iPhone using Tapatalk

 

anything