Page 1 of 1

Some text may hang the pistar when transmitting POCSAG

Posted: Fri Sep 07, 2018 10:41 am
by 9w2lwk
I encounter something which, the pistar will hang when sending certain strings
below are the string that send via POCSAG

#!/bin/sh
export LANG=C.UTF-8
METRIC=1 # 0 for F, 1 for C
#PLACE=Heihe
#PLACE=Yukagir
#PLACE=Resolute
#PLACE=Yakutsk
#PLACE=Winnipeg
#PLACE=Buckland
#PLACE=Harbin
#PLACE=Beijing
PLACE=Subang+Jaya
#PLACE=Puchong+New+Village
#PLACE=Kuala+Lumpur
#PLACE=Shanghai
#PLACE=Manila
#PLACE=toronto
#PLACE=Oymyakon
#PLACE=Oslo
#PLACE=Moscow
#PLACE=Sydney
#PLACE=Dudinka
CALLSIGN=9W2LWK

result1=`curl -s http://rss.accuweather.com/rss/liveweat ... e\=${PLACE} | sed -n '/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3, \L\1/p'`
result2=`echo ${result1} | sed 's/\xB0/ degree /g' `
result=`echo ${result2} | sed 's/[^[:print:]\t]//g' `

PLACE=`echo ${PLACE} | sed 's/\+/ /g' `
if [[ ${result} =~ .*thunderstorms.* ]]
then
word="${PLACE}, ${result}, please bring umbrella"
echo $word
/usr/local/sbin/pistar-dapnetapi ${CALLSIGN} '${word}' debug
elif [[ ${result} =~ .*showers.* ]]
then
word="${PLACE}, ${result}, please bring raincoat"
echo $word
/usr/local/sbin/pistar-dapnetapi ${CALLSIGN} '${word}' debug
else
word="${PLACE}, ${result}, have a nice day"
echo $word
/usr/local/sbin/pistar-dapnetapi ${CALLSIGN} '${word}' debug
fi
the MMDVM still alive, u still can ssh into it, but the MMDVM service is eventually hang. i need to power of and on it back again

but when u use other "PLACE=Kuala+Lumpur" for instance, the POCSAG go through... i wonder what's going on?

it confirm will hang on "PLACE=Dudinka" , "PLACE=Oslo", "PLACE=Moscow" and "PLACE=Sydney"

anyone wanna try on their pistar?

Re: Some text may hang the pistar when transmitting POCSAG

Posted: Thu Sep 13, 2018 9:55 am
by M0GLJ
your problem will likely have something to do with getting the data you are requesting from the rss.accuweather.com server. Check the information that your are trying to request. If you get not errors with the request then you are good to go