[arm-allstar] Weather.sh not working
David McGough
kb4fxc at inttek.net
Sun Nov 19 00:26:35 EST 2023
Hi Rick,
I did some experimenting earlier today. I agree that the returned results
seem to be unreliable. I just read a comment in the Accuweather RSS
documentation that setting metric=1 is for Celsius and metric=2 is
Fahrenheit. I tried both and leaving the metric parameter out entirely.
Sometimes the query works, sometimes it reports 0 degrees.
Also, I tried running the query with and without TLS (HTTP/80 and then
HTTPS/443)....The HTTP/80 results seemed more consistent, but still not
perfect.
Looking further at their API documentation, I'm suspecting that they're
now requiring a key/subscription for "premium" access. Also, while
accessing their on-line docs, I had several pages time-out, getting
errors. So, they might have some kind of infrastructure issue going on??
I know this API had worked very reliably....Not sure when this changed?
73, David K4FXC
On Sat, 18 Nov 2023, R Harkins wrote:
> Same problem here. User reported that the node was saying 'temperature
> zero'. Here is the information you requested (using the stock weather.sh):
>
> [root at ssarcPi sbin]# host myip.hamvoip.org
> myip.hamvoip.org is an alias for hamvoip.org.
> hamvoip.org has address 74.91.126.182
> hamvoip.org mail is handled by 10 mail.hamvoip.org.
>
> [root at ssarcPi sbin]# wget -qO- http://myip.hamvoip.org
> 209.153.81.36
>
> [root at ssarcPi sbin]# weather.sh 64083
> 0ô¯F, -18ô¯C /
> [root at ssarcPi sbin]# weather.sh 28405
> 0ô¯F, -18ô¯C /
> [root at ssarcPi sbin]# weather.sh 28139
> 66ô¯F, 19ô¯C / Sunny
>
> I did some experimenting with the curl command as found in weather.sh. I
> found that if I removed the metric\=${FAHRENHEIT}\& from the curl command,
> everything worked. Put it back in and temp=0.
>
> [root at ssarcPi sbin]# weather.sh 64083 *modified script*
> 61ô¯F, 16ô¯C / Sunny
> [root at ssarcPi sbin]# weathersave.sh 64083 *this is the original script
> renamed*
> 0ô¯F, -18ô¯C /
>
> I got mixed results when visiting the same urls in a browser on my desktop.
> Sometimes it worked, sometimes I got zero temps. Very puzzling...
>
> Rick W0FH
>
> On Sat, Nov 11, 2023 at 11:01â¯PM David McGough via ARM-allstar <
> arm-allstar at hamvoip.org> wrote:
>
> >
> > Steve,
> >
> > This seems like some kind of network issue. From the bash shell prompt,
> > please try these commands and report the results:
> >
> > [root at RPi-Z2W ~]# host myip.hamvoip.org
> > myip.hamvoip.org is an alias for hamvoip.org.
> > hamvoip.org has address 74.91.126.182
> > hamvoip.org mail is handled by 10 mail.hamvoip.org.
> >
> > [root at RPi-Z2W ~]# wget -qO- http://myip.hamvoip.org
> > 12.17.28.216
> >
> > [root at RPi-Z2W ~]# weather.sh 28405
> > 52ðF, 11ðC / Cloudy
> >
> > [root at RPi-Z2W ~]# weather.sh 28139
> > 50ðF, 10ðC / Cloudy
> >
> >
> >
> > 73, David K4FXC
> >
> > On Sat, 11 Nov 2023, Steve Polley via ARM-allstar wrote:
> >
> > > I recently had to rebuild my node from a lightning hit. I have set up
> > > the node like my others and they work fine but this no always gives me a
> > > No Report when using in a bash shell with either weather.sh or
> > > saytime.pl. It says this on my superman page as well. I have tried
> > > multiple zip codes and airport codes with the same results. I have also
> > > copied over weather.sh from a working node and it will not work either.
> > >
> > > Any ideas?
> > >
> > > Steve N0SWP
> >
> > _______________________________________________
> >
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> >
>
More information about the ARM-allstar
mailing list