Some text may hang the pistar when transmitting POCSAG

Here is where you can get help with using and setting up POCSAG and related topics
Post Reply
User avatar
9w2lwk
Posts: 12
Joined: Mon Jul 09, 2018 9:26 am
Location: Kuala Lumpur
Contact:

Some text may hang the pistar when transmitting POCSAG

Post by 9w2lwk » Fri Sep 07, 2018 10:41 am

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?

M0GLJ

Re: Some text may hang the pistar when transmitting POCSAG

Post by M0GLJ » Thu Sep 13, 2018 9:55 am

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

Post Reply