[GreenKeys] Another AFSK News Stream - Ras Pi
Harold Hallikainen
harold at w6iwi.org
Sun Aug 10 01:06:13 EDT 2025
THANKS! I just added another stream. It's CNN. It was a bit of a challenge
because they have all sorts of strange UTF-8 sequences. They seem to
display properly in a browser, but did not translate properly using
$text=iconv("UTF-8", "ASCII//TRANSLIT", $text);
So, I had to do this prior to calling iconv:
$text=str_replace("\xc3\xa2\xc2\x80\xc2\x94","--",$text); // emdash
$text=str_replace("\xc3\xa2\xc2\x80\xc2\x98","'",$text); // apostrophe
$text=str_replace("\xc3\xa2\xc2\x80\xc2\x99","'",$text); // Strange
CNN sequence for apostrophe
$text=str_replace("\xc3\xa2\xc2\x80\xc2\x9c",'"',$text); // open quote
$text=str_replace("\xc3\xa2\xc2\x80\xc2\x9d",'"',$text); // close quote
$text=str_replace("\xc3\xa2\xc2\x80\xc2\x93","--",$text); // emdash
Anyway, it SEEMS to be working now. So the news streams I now have are:
https://w6iwi.org/rtty/audio/npr
https://w6iwi.org/rtty/audio/csm
https://w6iwi.org/rtty/audio/cnn
W2JC, I could add an ad for people to order more paper from you at the
beginning of the feed...
Thanks!
Harold
https://w6iwi.org
On Sat, August 9, 2025 9:17 am, Daniel Jones wrote:
> I have updated RTTYonline.com with the link to the CSM Feed and added
> Frankie Caswell KD2PEP link to software that generates Art and Text from
> files.
>
>
> http://rttyonline.com
>
>
>
>
> Daniel Jones (K6YIC)
> DJones at k6yic.com
> http://K6YIC.com
> HH Phone #11973
> SKCC#28598
> CCA# AC20-13565
>
>
>
> 
>
>> On Jul 30, 2025, at 19:29, Harold Hallikainen via GreenKeys
>> <greenkeys at mailman.qth.net> wrote:
>>
>>
>> And here's a shell script:
>>
>>
>>
>> ----------------------
>> #/bin/bash
>>
>>
>> # Loop playing of NPR AFSK audio
>>
>>
>> while true do mpv https://w6iwi.org/rtty/audio/npr/audio/60wpm/latest.php
>> done
>>
>> --------------------------
>>
>>
>> Good luck!
>>
>>
>> Harold
>>
>>
>>
>> On Wed, July 30, 2025 5:52 pm, Harold Hallikainen wrote:
>>
>>> I just tried the below on cygwin:
>>>
>>>
>>>
>>> mpv https://w6iwi.org/rtty/audio/npr/audio/60wpm/latest.php
>>>
>>> and it worked... You could have a shell script that calls this over
>>> and over, and it SHOULD give you continuous audio always feeding the
>>> latest.
>>>
>>> Good luck!
>>>
>>>
>>>
>>> Harold
>>>
>>>
>>>
>>> On Wed, July 30, 2025 5:24 pm, Duncan Brown wrote:
>>>
>>>
>>>> Harold,
>>>>
>>>>
>>>>
>>>>
>>>> Your urls work on a laptop (downloads the wav file to be played)
>>>> but the Ras Pi doesnt seem to know what to do with the php urls.
>>>>
>>>>
>>>>
>>>> The Museum's computer manager is looking into it.
>>>>
>>>>
>>>>
>>>>
>>>> Anyone else been able to use a RasPi to dowload & play Harolds
>>>> files?
>>>>
>>>>
>>>>
>>>> Thanks,
>>>>
>>>>
>>>>
>>>>
>>>> Duncan
>>>> K2OEQ
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On 7/28/2025 6:13 PM, Harold Hallikainen via GreenKeys wrote:
>>>>
>>>>
>>>>
>>>>>
>>>>> Thanks! The URLs are:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> https://w6iwi.org/rtty/audio/csm/audio/60wpm/latest.php
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> and
>>>>>
>>>>> https://w6iwi.org/rtty/audio/npr/audio/60wpm/latest.php
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> A new AFSK file for each of these is created every 2 hours.
>>>>> latest.php does a redirect to the most recent one. The most recent
>>>>> 10
>>>>> files are kept so you can continue to play one without it being
>>>>> overwritten by a new one.
>>>>>
>>>>> I just tried this:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> curl
>>>>> --Locationhttps://w6iwi.org/rtty/audio/npr/audio/60wpm/latest.php
>>>>>
>>>>>
>>>>>
>>>>>> test.wav
>>>>> and it worked. The --Location tells curl to follow the
>>>>> redirection. The
>>>>> fetched file is sent to standard output. Here I sent it to
>>>>> test.wav. You
>>>>> would pipe it to an audio player.
>>>>>
>>>>> Note that the audio is 8 bit WAV at 8 kbps. It is NOT MP3, so
>>>>> don't send it through lame or other MP3 decoders.
>>>>>
>>>>> Let me know if I can provide any further information!
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Harold
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Mon, July 28, 2025 2:23 pm, Duncan Brown wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Harold,
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> What are the URLs for the individual NPR & CSM audio streams?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> The AWA Museum presently uses a RasPi to bring out the ITTY
>>>>>> streams and send the AFSK signal to a TU for printing.Ã I
>>>>>> would like to add your 60wpm NPR & CSM streams, but don't see
>>>>>> the individual URLs for them.
>>>>>>
>>>>>>
>>>>>> -...-
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Looked at all the details in your email and it looks like the
>>>>>> audio stream is generated with the newest information whenever a
>>>>>> request to play the file is made?
>>>>>>
>>>>>> Any easy way this could be made such that the latest file could
>>>>>> be stuffed into a fixed location so that it could be retrieved
>>>>>> from a fixed url by a simple device such as a RasPi with no
>>>>>> display?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Duncan Brown, K2OEQ
>>>>>> USASAÃ Ã 31J30
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Antique Wireless Association
>>>>>> Ã Communication Technologies Museum
>>>>>> Ã Ã Asst. Curator, Commercial Equipment
>>>>>> (also chief TTY op & repairman)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> i-Telex: 212503
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> www.antiquewireless.org
>>>>>>
>>>>>> AWA Youtube channel:
>>>>>> https://www.youtube.com/channel/UCX55peBhzeX1qps_VYXdLBA
>>>>>> Virtual AWA Museum TTY
>>>>>> Tour:https://www.youtube.com/watch?v=TpB6jM90VV8
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 7/28/2025 12:51 AM, Harold Hallikainen via GreenKeys wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Today I added the Christian Science Monitor to the available
>>>>>>> news streams. It is athttps://w6iwi.org/rtty/audio/csm/
>>>>>>>
>>>>>>>
>>>>>>> Harold
>>>>>>> https://w6iwi.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> ______________________________________________________________
>>>>>> GreenKeys mailing list
>>>>>> Home:http://mailman.qth.net/mailman/listinfo/greenkeys
>>>>>> Help:http://mailman.qth.net/mmfaq.htm
>>>>>> Post:mailto:GreenKeys at mailman.qth.net
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>> Jordan Spencer Cunningham's GreenKeys Search Tool:
>>>>>>>>> https://teletype.net/gksearch
>>>>>>>>> 2002-to-present greenkeys archive:
>>>>>>>>> http://mailman.qth.net/pipermail/greenkeys/
>>>>>>>>> 1998-to-2001 greenkeys archive:
>>>>>>>>> http://mailman.qth.net/archive/greenkeys/greenkeys.html
>>>>>>>>> Randy Guttery's 2001-to-2009 GreenKeys Search Tool:
>>>>>>>>> http://comcents.com/tty/greenkeyssearch.html
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>> This list hosted by:http://www.qsl.net
>>>>>> Please help support this email
>>>>>> list:http://www.qsl.net/donate.html
>>>>>> Message delivered toharold at w6iwi.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> ______________________________________________________________
>>>> GreenKeys mailing list
>>>> Home: http://mailman.qth.net/mailman/listinfo/greenkeys
>>>> Help: http://mailman.qth.net/mmfaq.htm
>>>> Post: mailto:GreenKeys at mailman.qth.net
>>>>
>>>>
>>>>
>>>>
>>>>>>> Jordan Spencer Cunningham's GreenKeys Search Tool:
>>>>>>> https://teletype.net/gksearch
>>>>>>> 2002-to-present greenkeys archive:
>>>>>>> http://mailman.qth.net/pipermail/greenkeys/
>>>>>>> 1998-to-2001 greenkeys archive:
>>>>>>> http://mailman.qth.net/archive/greenkeys/greenkeys.html
>>>>>>> Randy Guttery's 2001-to-2009 GreenKeys Search Tool:
>>>>>>> http://comcents.com/tty/greenkeyssearch.html
>>>>>>>
>>>>>>>
>>>>>>>
>>>>
>>>> This list hosted by: http://www.qsl.net
>>>> Please help support this email list: http://www.qsl.net/donate.html
>>>> Message delivered to harold at w6iwi.org
>>>>
>>>>
>>>
>>>
>>> --
>>> Not sent from an iPhone.
>>>
>>>
>>>
>>
>>
>> --
>> Not sent from an iPhone.
>> ______________________________________________________________
>> GreenKeys mailing list
>> Home: http://mailman.qth.net/mailman/listinfo/greenkeys
>> Help: http://mailman.qth.net/mmfaq.htm
>> Post: mailto:GreenKeys at mailman.qth.net
>>
>>
>>>>> Jordan Spencer Cunningham's GreenKeys Search Tool:
>>>>> https://teletype.net/gksearch
>>>>> 2002-to-present greenkeys archive:
>>>>> http://mailman.qth.net/pipermail/greenkeys/
>>>>> 1998-to-2001 greenkeys archive:
>>>>> http://mailman.qth.net/archive/greenkeys/greenkeys.html
>>>>> Randy Guttery's 2001-to-2009 GreenKeys Search Tool:
>>>>> http://comcents.com/tty/greenkeyssearch.html
>>>>>
>>
>> This list hosted by: http://www.qsl.net
>> Please help support this email list: http://www.qsl.net/donate.html
>> Message delivered to djones at k6yic.com
>>
>
>
--
https://w6iwi.org
More information about the GreenKeys
mailing list