| View previous topic :: View next topic |
| Author |
Message |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Wed Jul 16, 2008 1:19 pm Post subject: |
|
|
| anotheregglover wrote: | Hi,
I made the following patch for a friend which seems to work fine. My copy of 4.2.4 never stopped working, so I don't know why it didn't work for some of you guys.
But this patch seems to solve the problem regardless.
| Code: |
--- weather.tcl.old 2008-07-16 11:40:45.000000000 -0500
+++ weather.tcl 2008-07-16 11:35:10.000000000 -0500
@@ -749,6 +749,7 @@
lappend html $http
join html
}
+ set outtitle ""
regsub -all {\{|\}} $html {} html
regsub -all {<script.*?</script>} $html {} html
regsub -all {<img.*?>} $html {} html
|
For those not familiar with applying patches, add the following at line 752. The current line 752 would move down to line 753.
Hope it works for you guys. | outttitle is not initialized for a reason
those using your patch will have problems later on |
|
| Back to top |
|
 |
tilt Voice
Joined: 13 Feb 2008 Posts: 3
|
Posted: Wed Jul 16, 2008 5:46 pm Post subject: |
|
|
Thank you for the patch.
The issue seems to have fixed itself for whatever reason, i had problems this morning, but they are no longer occurring. The bot appears to function with or without the patch at this point.
Thanks for looking into this, everyone! |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Fri Sep 12, 2008 1:22 pm Post subject: |
|
|
These zip codes aren't working 15207, 15217, 15224 .. They are for Pittsburgh, Pa.. If I go to wunderground site they work, but in chat they don't display any results or errors.
SSH shows this error:
| Code: | | [12:22] Tcl error [pub_wz]: can't read "idew": no such variable |
|
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri Sep 12, 2008 2:15 pm Post subject: |
|
|
| cache wrote: | These zip codes aren't working 15207, 15217, 15224 .. They are for Pittsburgh, Pa.. If I go to wunderground site they work, but in chat they don't display any results or errors.
SSH shows this error:
| Code: | | [12:22] Tcl error [pub_wz]: can't read "idew": no such variable |
| This is because the reporting station does not show the required dew points. I'll fix it, but it will likely be a couple of days (setting up a new computer). |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Fri Sep 12, 2008 2:43 pm Post subject: |
|
|
| I suggest using KAGC for your Pitts. weather until I make the adjustments. |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Fri Sep 12, 2008 3:13 pm Post subject: |
|
|
Thanks, I'll just be patient and wait  |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sat Sep 27, 2008 1:45 pm Post subject: |
|
|
The server hosting the script is now down.
When I can locate my copy of the script I will upload it to the archive. |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Wed Oct 08, 2008 7:52 am Post subject: |
|
|
| DragnLord wrote: | | cache wrote: | These zip codes aren't working 15207, 15217, 15224 .. They are for Pittsburgh, Pa.. If I go to wunderground site they work, but in chat they don't display any results or errors.
SSH shows this error:
| Code: | | [12:22] Tcl error [pub_wz]: can't read "idew": no such variable |
| This is because the reporting station does not show the required dew points. I'll fix it, but it will likely be a couple of days (setting up a new computer). |
I see those zip codes work now, but I guess cause it don't need dew points at this time? |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Thu Oct 09, 2008 8:41 am Post subject: |
|
|
| cache wrote: | | DragnLord wrote: | | cache wrote: | These zip codes aren't working 15207, 15217, 15224 .. They are for Pittsburgh, Pa.. If I go to wunderground site they work, but in chat they don't display any results or errors.
SSH shows this error:
| Code: | | [12:22] Tcl error [pub_wz]: can't read "idew": no such variable |
| This is because the reporting station does not show the required dew points. I'll fix it, but it will likely be a couple of days (setting up a new computer). |
I see those zip codes work now, but I guess cause it don't need dew points at this time? | They have worked since the day after you posted that there were problems. This also means there was nothing for me to fix. |
|
| Back to top |
|
 |
rhn1379 Voice

Joined: 12 Oct 2008 Posts: 5
|
Posted: Sun Oct 12, 2008 9:08 pm Post subject: |
|
|
I am having difficulties with my weather script.
I am using version 4.2.4.
Everytime someone tries to use the weather script we get nothing. The bot simply just freezes up, and pings out. It returns shortly after.
[20:59] Tcl error [pub_wz]: can't read "outtitle": no such variable
We're just doing the simple .wz zipcode example .wz 44305
Any help would be greatly appreciated.
thanks! |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sun Oct 12, 2008 10:43 pm Post subject: |
|
|
| I'm not getting that issue, please make sure the bot is able to connect to the website. |
|
| Back to top |
|
 |
rhn1379 Voice

Joined: 12 Oct 2008 Posts: 5
|
Posted: Mon Oct 13, 2008 1:33 pm Post subject: |
|
|
| DragnLord wrote: | | I'm not getting that issue, please make sure the bot is able to connect to the website. |
how can i tell if the bot is connecting to the website?  |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Tue Oct 14, 2008 2:20 am Post subject: |
|
|
| Use a browser to see if it is reachable. |
|
| Back to top |
|
 |
rhn1379 Voice

Joined: 12 Oct 2008 Posts: 5
|
Posted: Wed Oct 15, 2008 12:53 am Post subject: |
|
|
| DragnLord wrote: | | Use a browser to see if it is reachable. |
to Wunderground I assume?
and yes, I am able to access Wunderground. |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Wed Oct 15, 2008 3:04 am Post subject: |
|
|
| Code: |
[Oct_15 3:01:36am] <WZ_Test> Akron, Ohio -- 3:01 AM EDT Updated: 3:01 AM EDT on October 15, 2008
[Oct_15 3:01:37am] <WZ_Test> Conditions: 58.4°F / 14.7°C | Overcast
[Oct_15 3:01:38am] <WZ_Test> Humidity: 88% Dew Point: 55°F / 13°C
[Oct_15 3:01:40am] <WZ_Test> Pressure: 30.07in / 1018.2hPa (Falling) Wind: Calm |
The problem is apparently on your end somewhere. |
|
| Back to top |
|
 |
|