<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Programmer&#8217;s Corner: Asterisk Weather Station Updates	</title>
	<atom:link href="https://nerdvittles.com/asterisk-weather-application-updates/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdvittles.com/asterisk-weather-application-updates/</link>
	<description>Ward Mundy&#039;s Technobabblelog</description>
	<lastBuildDate>Thu, 02 Jun 2011 13:57:57 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Rod		</title>
		<link>https://nerdvittles.com/asterisk-weather-application-updates/comment-page-1/#comment-3044</link>

		<dc:creator><![CDATA[Rod]]></dc:creator>
		<pubDate>Sun, 23 Dec 2007 20:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=169#comment-3044</guid>

					<description><![CDATA[Could someone who has modified the &quot;nv-weather-zip.php&quot; to support the Allison-8khz Cepstral voice post the steps needed?

Thanks]]></description>
			<content:encoded><![CDATA[<p>Could someone who has modified the "nv-weather-zip.php" to support the Allison-8khz Cepstral voice post the steps needed?</p>
<p>Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: vadim		</title>
		<link>https://nerdvittles.com/asterisk-weather-application-updates/comment-page-1/#comment-2788</link>

		<dc:creator><![CDATA[vadim]]></dc:creator>
		<pubDate>Tue, 31 Jul 2007 15:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=169#comment-2788</guid>

					<description><![CDATA[In the CLI I see the following:
------------------------------------------
    -- Executing AGI(&quot;SIP/220-09c04be0&quot;, &quot;nv-weather-zip.php&#124;10118&quot;) in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/nv-weather-zip.php
    -- AGI Script nv-weather-zip.php completed, returning 0
    -- Executing NoOp(&quot;SIP/220-09c04be0&quot;, &quot;Wave file: &quot;) in new stack
    -- Executing Playback(&quot;SIP/220-09c04be0&quot;, &quot;&quot;) in new stack
  == Spawn extension (from-internal, 947, 10) exited non-zero on &#039;SIP/220-09c04be0&#039;
    -- Executing Macro(&quot;SIP/220-09c04be0&quot;, &quot;hangupcall&quot;) in new stack
------------------------------

looks like WAV file is missing - Any idea why?

&lt;i&gt;[WM: Are you sure you installed the original Weather Station by ZIP Code application? You can&#039;t update something that was never installed. Just reinstall the application from the &lt;a href=&quot;http://bestof.nerdvittles.com/applications/weather-zip/&quot;&gt;Best of Nerd Vittles site&lt;/a&gt;.]&lt;/i&gt;]]></description>
			<content:encoded><![CDATA[<p>In the CLI I see the following:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
    &#8212; Executing AGI("SIP/220-09c04be0&#8243;, "nv-weather-zip.php|10118&#8243;) in new stack<br />
    &#8212; Launched AGI Script /var/lib/asterisk/agi-bin/nv-weather-zip.php<br />
    &#8212; AGI Script nv-weather-zip.php completed, returning 0<br />
    &#8212; Executing NoOp("SIP/220-09c04be0&#8243;, "Wave file: ") in new stack<br />
    &#8212; Executing Playback("SIP/220-09c04be0&#8243;, "") in new stack<br />
  == Spawn extension (from-internal, 947, 10) exited non-zero on &#8216;SIP/220-09c04be0&#8217;<br />
    &#8212; Executing Macro("SIP/220-09c04be0&#8243;, "hangupcall") in new stack<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>looks like WAV file is missing &#8211; Any idea why?</p>
<p><i>[WM: Are you sure you installed the original Weather Station by ZIP Code application? You can&#8217;t update something that was never installed. Just reinstall the application from the <a href="http://bestof.nerdvittles.com/applications/weather-zip/">Best of Nerd Vittles site</a>.]</i></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: vadim		</title>
		<link>https://nerdvittles.com/asterisk-weather-application-updates/comment-page-1/#comment-2787</link>

		<dc:creator><![CDATA[vadim]]></dc:creator>
		<pubDate>Mon, 30 Jul 2007 19:50:46 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=169#comment-2787</guid>

					<description><![CDATA[Is it broken again? I can hear silence for few secs and then it disconnects.

&lt;i&gt;[WM: Works fine. Check the Asterisk CLI for errors.]&lt;/i&gt;]]></description>
			<content:encoded><![CDATA[<p>Is it broken again? I can hear silence for few secs and then it disconnects.</p>
<p><i>[WM: Works fine. Check the Asterisk CLI for errors.]</i></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: versodom		</title>
		<link>https://nerdvittles.com/asterisk-weather-application-updates/comment-page-1/#comment-2778</link>

		<dc:creator><![CDATA[versodom]]></dc:creator>
		<pubDate>Sun, 22 Jul 2007 17:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=169#comment-2778</guid>

					<description><![CDATA[Weather by Zip is broken again. They added more XML tags and data. Should be a simple fix.

&lt;i&gt;[WM: Yeah. They broke both the Weather by ZIP and Weather by Airport Code apps. Just download and reinstall the nv-weather-zip.zip and nv-weather2.zip files from Best of Nerd Vittles and you&#039;ll be back in business. Thanks for the heads up.]&lt;/i&gt;]]></description>
			<content:encoded><![CDATA[<p>Weather by Zip is broken again. They added more XML tags and data. Should be a simple fix.</p>
<p><i>[WM: Yeah. They broke both the Weather by ZIP and Weather by Airport Code apps. Just download and reinstall the nv-weather-zip.zip and nv-weather2.zip files from Best of Nerd Vittles and you&#8217;ll be back in business. Thanks for the heads up.]</i></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tom Schmitt		</title>
		<link>https://nerdvittles.com/asterisk-weather-application-updates/comment-page-1/#comment-2517</link>

		<dc:creator><![CDATA[Tom Schmitt]]></dc:creator>
		<pubDate>Tue, 27 Feb 2007 23:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=169#comment-2517</guid>

					<description><![CDATA[Thanks to you and your web site Nerd Vittles for the fine application(s) and updates.  Thanks to Lee Winsor above solving the password problem.  
I also noticed that the weather.agi &#039;*61&#039; in asterisk was not working. So I brought up the web page http://weather.noaa.gov and found that the ftp site for has been moved to &quot;tgftp.nws.noaa.gov&quot;.  When I change the /var/lib/asterisk/agi-bin/weather.agi file accordingly, all is now working.
Thanks again for the great applications.]]></description>
			<content:encoded><![CDATA[<p>Thanks to you and your web site Nerd Vittles for the fine application(s) and updates.  Thanks to Lee Winsor above solving the password problem.<br />
I also noticed that the weather.agi &#8216;*61&#8217; in asterisk was not working. So I brought up the web page <a href="http://weather.noaa.gov" rel="nofollow ugc">http://weather.noaa.gov</a> and found that the ftp site for has been moved to "tgftp.nws.noaa.gov".  When I change the /var/lib/asterisk/agi-bin/weather.agi file accordingly, all is now working.<br />
Thanks again for the great applications.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Lee Winsor		</title>
		<link>https://nerdvittles.com/asterisk-weather-application-updates/comment-page-1/#comment-2502</link>

		<dc:creator><![CDATA[Lee Winsor]]></dc:creator>
		<pubDate>Fri, 23 Feb 2007 21:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=169#comment-2502</guid>

					<description><![CDATA[After a frustrating couple of days of getting long delays followed by &#039;fast busy&#039; after entering the zip code, I finally read through your code and found out why it wasn&#039;t working for me. 

If you&#039;ve changed your root mysql password to increase security, you&#039;ll need to change the password in the php script to match your new one (a search for &#039;passw0rd&#039; will find the entry in the script). Once changed, the script work fine.

&lt;i&gt;[WM: Unless your Asterisk server is physically vulnerable, there is NO REASON to change the root MySQL password since it only permits access from localhost. As with all software, once you customize your setup, you&#039;ve got to find the wrinkles your setup causes. That&#039;s not a bad thing. But it&#039;s something to consider before making customizations.]&lt;/i&gt;]]></description>
			<content:encoded><![CDATA[<p>After a frustrating couple of days of getting long delays followed by &#8216;fast busy&#8217; after entering the zip code, I finally read through your code and found out why it wasn&#8217;t working for me. </p>
<p>If you&#8217;ve changed your root mysql password to increase security, you&#8217;ll need to change the password in the php script to match your new one (a search for &#8216;passw0rd&#8217; will find the entry in the script). Once changed, the script work fine.</p>
<p><i>[WM: Unless your Asterisk server is physically vulnerable, there is NO REASON to change the root MySQL password since it only permits access from localhost. As with all software, once you customize your setup, you&#8217;ve got to find the wrinkles your setup causes. That&#8217;s not a bad thing. But it&#8217;s something to consider before making customizations.]</i></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Glen Bernstein		</title>
		<link>https://nerdvittles.com/asterisk-weather-application-updates/comment-page-1/#comment-2498</link>

		<dc:creator><![CDATA[Glen Bernstein]]></dc:creator>
		<pubDate>Thu, 22 Feb 2007 17:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=169#comment-2498</guid>

					<description><![CDATA[You asked for a distance between 2 cities, here is one... it assumes that there are 2 cities and their web pages have been loaded into the 2 variables $city1value and $city2value.  The output is a simple message &quot;Distance x miles&quot;. One can obviously elaborate from here.

The program uses a &#039;simple&#039; great circle algorithm with the &#039;assumption&#039; that the earth has a radius of 3693 miles.  If you want kilometers, just change this to the radius in kilometers - 6378 (and the output of &#039;miles&#039; to &#039;kilometers&#039;).


        $latpos = strpos($city1value, &quot;Lat: &quot;) + 4;
        $lonpos = strpos($city1value, &quot;Lon: &quot;, $latpos) + 4;
        $elepos = strpos($city1value, &quot;Elev: &quot;, $lonpos) + 5;
        $endpos = strpos($city1value, &quot;&quot;, $elepos) + 3;

        $city1lat = substr($city1value, $latpos, $lonpos - $latpos - 4);
        $city1lon = substr($city1value, $lonpos, $elepos - $lonpos - 5);
        $city1ele = substr($city1value, $elepos, $endpos - $elepos - 3);


        $latpos = strpos($city2value, &quot;Lat: &quot;) + 4;
        $lonpos = strpos($city2value, &quot;Lon: &quot;, $latpos) + 4;
        $elepos = strpos($city2value, &quot;Elev: &quot;, $lonpos) + 5;
        $endpos = strpos($city2value, &quot;&quot;, $elepos) + 3;

        $city2lat = substr($city2value, $latpos, $lonpos - $latpos - 4);
        $city2lon = substr($city2value, $lonpos, $elepos - $lonpos - 5);
        $city2ele = substr($city2value, $elepos, $endpos - $elepos - 3);


        $radius = 3963; # Earth&#039;s Radius in Miles

        $distance = $radius * acos((sin(deg2rad($city1lat)) * sin(deg2rad($city2lat))) + (cos(deg2rad($city1lat)) * cos(deg2rad($city2lat)) * cos(deg2rad($city2lon) - deg2rad($city1lon))));

        print &#039;Distance: &#039;. $distance .&#039;miles&#039;;

&lt;i&gt;[WM: Looks like we already have a winner unless I&#039;ve missed something. Thanks, Glen.]&lt;/i&gt;
]]></description>
			<content:encoded><![CDATA[<p>You asked for a distance between 2 cities, here is one&#8230; it assumes that there are 2 cities and their web pages have been loaded into the 2 variables $city1value and $city2value.  The output is a simple message "Distance x miles". One can obviously elaborate from here.</p>
<p>The program uses a &#8216;simple&#8217; great circle algorithm with the &#8216;assumption&#8217; that the earth has a radius of 3693 miles.  If you want kilometers, just change this to the radius in kilometers &#8211; 6378 (and the output of &#8216;miles&#8217; to &#8216;kilometers&#8217;).</p>
<p>        $latpos = strpos($city1value, "Lat: ") + 4;<br />
        $lonpos = strpos($city1value, "Lon: ", $latpos) + 4;<br />
        $elepos = strpos($city1value, "Elev: ", $lonpos) + 5;<br />
        $endpos = strpos($city1value, "", $elepos) + 3;</p>
<p>        $city1lat = substr($city1value, $latpos, $lonpos &#8211; $latpos &#8211; 4);<br />
        $city1lon = substr($city1value, $lonpos, $elepos &#8211; $lonpos &#8211; 5);<br />
        $city1ele = substr($city1value, $elepos, $endpos &#8211; $elepos &#8211; 3);</p>
<p>        $latpos = strpos($city2value, "Lat: ") + 4;<br />
        $lonpos = strpos($city2value, "Lon: ", $latpos) + 4;<br />
        $elepos = strpos($city2value, "Elev: ", $lonpos) + 5;<br />
        $endpos = strpos($city2value, "", $elepos) + 3;</p>
<p>        $city2lat = substr($city2value, $latpos, $lonpos &#8211; $latpos &#8211; 4);<br />
        $city2lon = substr($city2value, $lonpos, $elepos &#8211; $lonpos &#8211; 5);<br />
        $city2ele = substr($city2value, $elepos, $endpos &#8211; $elepos &#8211; 3);</p>
<p>        $radius = 3963; # Earth&#8217;s Radius in Miles</p>
<p>        $distance = $radius * acos((sin(deg2rad($city1lat)) * sin(deg2rad($city2lat))) + (cos(deg2rad($city1lat)) * cos(deg2rad($city2lat)) * cos(deg2rad($city2lon) &#8211; deg2rad($city1lon))));</p>
<p>        print &#8216;Distance: &#8216;. $distance .&#8217;miles&#8217;;</p>
<p><i>[WM: Looks like we already have a winner unless I&#8217;ve missed something. Thanks, Glen.]</i></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kristopher		</title>
		<link>https://nerdvittles.com/asterisk-weather-application-updates/comment-page-1/#comment-2497</link>

		<dc:creator><![CDATA[Kristopher]]></dc:creator>
		<pubDate>Thu, 22 Feb 2007 14:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://nerdvittles.com/?p=169#comment-2497</guid>

					<description><![CDATA[Kudos on yet another fantastic Asterisk addition, NV crew!

In a related topic, I had noticed a set of recordings included in the Trixbox sounds that pertain to weather.  However, there doesn&#039;t seem to be any application out there that takes advantage of these.  Is there a known parser or converter of some sort that can string these together to speak weather conditions using Allison&#039;s voice?  Going a step further, is there a parser that can take advantage of the included recorded phoneme groups?  Although Flite and especially Cepstral are good and very useful speech synths, it would be neat to put the human-recorded voices to use.  Any thoughts?

Very respectfully,
Kris]]></description>
			<content:encoded><![CDATA[<p>Kudos on yet another fantastic Asterisk addition, NV crew!</p>
<p>In a related topic, I had noticed a set of recordings included in the Trixbox sounds that pertain to weather.  However, there doesn&#8217;t seem to be any application out there that takes advantage of these.  Is there a known parser or converter of some sort that can string these together to speak weather conditions using Allison&#8217;s voice?  Going a step further, is there a parser that can take advantage of the included recorded phoneme groups?  Although Flite and especially Cepstral are good and very useful speech synths, it would be neat to put the human-recorded voices to use.  Any thoughts?</p>
<p>Very respectfully,<br />
Kris</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
