<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.calafou.org//api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Apksmods</id>
	<title>Wiki-Fou - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.calafou.org//api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Apksmods"/>
	<link rel="alternate" type="text/html" href="http://wiki.calafou.org//index.php/Special:Contributions/Apksmods"/>
	<updated>2026-06-01T22:24:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>http://wiki.calafou.org//index.php?title=Radio_Calafou&amp;diff=3837</id>
		<title>Radio Calafou</title>
		<link rel="alternate" type="text/html" href="http://wiki.calafou.org//index.php?title=Radio_Calafou&amp;diff=3837"/>
		<updated>2020-03-15T10:53:47Z</updated>

		<summary type="html">&lt;p&gt;Apksmods: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Radio Calafou ? =&lt;br /&gt;
A FM and stream radio based in Calafou that broadcast very locally on 108 Mhz and on http://radio.calafou:8000/airtime_128.m3u&lt;br /&gt;
[[File:Radiocalafou anarchaserver.redim.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
= Global set-up =&lt;br /&gt;
[[File:radiocalaflowschema.png]]&lt;br /&gt;
The PiBox read the stream that comes from Airtime and play it to the transmitter&amp;lt;br /&amp;gt;&lt;br /&gt;
* To Airtime : http://radio.calafou user : calafou pwd : calafou (admin / sudosu)&lt;br /&gt;
* To Icecast : http://radio.calafou:8000 user : source pwd : hackme&lt;br /&gt;
* To the PiBox : http://172.31.23.158 user : pibox pwd : pnodeaccesspass - ssh pi@172.31.23.158 pwd : pipinode&lt;br /&gt;
&lt;br /&gt;
[[File:IMG_2919.redim.JPG|center]]&lt;br /&gt;
&lt;br /&gt;
= What can we do with it ? =&lt;br /&gt;
== Airtime ==&lt;br /&gt;
Threw Media Builder&lt;br /&gt;
* Possible to add any type of audio file, the library already include all the files that are stored in ftp://omnius.calafou/MEDIATECA/0_audio/music/ and create a playlist&lt;br /&gt;
* Possible to create a smart playlist that randomly include files from the library in function of criterias (genre, album name, langage, BPM, last played, year, ...)&lt;br /&gt;
* Possible to create a webstream program from any type of stream (.mp3, .ogg, .opus, ...)&lt;br /&gt;
Threw Calendar&lt;br /&gt;
* Possible to create a show that can be repeated in different manner and can be filled with playlist, smart playlist or webstream&lt;br /&gt;
* Possible to set up a live show where someone can broadcast from her home sending a stream to a specific mountpoint&lt;br /&gt;
Threw Master Source&lt;br /&gt;
* Possible to take the control of the direct broadcast with a specific mountpoint&lt;br /&gt;
== Icecast ==&lt;br /&gt;
* Possible to stream audio and video in .ogg, .ogv, .mp3 and .opus with software like [http://en.flossmanuals.net/VLC/StreamingIcecast/ VLC], [http://www.darkice.org/ DARKICE], [http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/live-shows-with-mixxx/ MIXXX], [https://sourceforge.net/projects/butt/ BUTT] or any other software listed here : http://www.icecast.org/apps/&lt;br /&gt;
== PiBox ==&lt;br /&gt;
* Possible to play sounds located in the Pi, to play a stream, to play the live input of the sound card&lt;br /&gt;
* Possible to listen to a sonification on the output of the integrated soundcard&lt;br /&gt;
* Possible to shout in the radio threw a microphone plugged into the input of the external soundcar&lt;br /&gt;
[[File:IMG_2916.redim.JPG|center]]&lt;br /&gt;
[[File:PiBoxAnarcha.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
= How To use Radio Calafou =&lt;br /&gt;
== Airtime : add content ==&lt;br /&gt;
The main documentation is here : http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/what-is-airtime/&lt;br /&gt;
[[File:Airtime_nowplaying.png|1280px|center]]&lt;br /&gt;
&lt;br /&gt;
== Airtime : add a media ==&lt;br /&gt;
Note : the audio folder of MEDIATECA has been added as a [http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/media-folders/ watched folder], so you can find all the audio files of the MEDIATECA in Airtime library&lt;br /&gt;
* http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/add-media/&lt;br /&gt;
[[File:Screenshot383-Add_media.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Airtime : To create a smart block, a playlist or a webstream, you have to open the Media Builder ==&lt;br /&gt;
In the &amp;quot;Library&amp;quot;menu&lt;br /&gt;
[[File:Screenshot500-Open_media_builder_240.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Airtime : create a smart block ==&lt;br /&gt;
A smart block is an intelligent playlist built with criteria&lt;br /&gt;
* http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/library/&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
For the moment the calendar has been filled with different smart blocks repeated, it is possible to remove a smart block in the Calendar menu :&#039;&#039;&#039;&lt;br /&gt;
 Clic on the block in the calendar you want to remove and in the sub menu &amp;gt; delete &amp;gt; delete this instance&lt;br /&gt;
&lt;br /&gt;
[[File:Capture du 2016-08-28 16-40-17.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Airtime : create a playlist ==&lt;br /&gt;
* http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/library/&lt;br /&gt;
&lt;br /&gt;
== Airtime : create a webstream ==&lt;br /&gt;
* http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/library/&lt;br /&gt;
&lt;br /&gt;
== Airtime : add a show to the calendar with a smart block, a playlist or a webstream as content ==&lt;br /&gt;
* http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/calendar/&lt;br /&gt;
&lt;br /&gt;
=== SmartPhone journalism ===&lt;br /&gt;
It is possible to use Airtime with a smartphone, see http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/smartphone-journalism/ &lt;br /&gt;
&lt;br /&gt;
=== Taking the control live with a smartphone ===&lt;br /&gt;
As mentionned, it is possible to take the control of the radio with a specific mountpoint (the master source mountpoint), it is also possible with an (android) smartphone with the application &amp;quot;Broadcast Myself&amp;quot; that allow one to stream the mic of the smartphone or files&lt;br /&gt;
&lt;br /&gt;
This software can be downloaded here without a google account : https://apkpure.com/broadcastmyself/sa.broadcastmyself or https://www.apksmods.com/&lt;br /&gt;
&lt;br /&gt;
The settings &amp;gt; Output settings :&lt;br /&gt;
* Hostname : radio.calafou&lt;br /&gt;
* Port : 8003&lt;br /&gt;
* Path : /dictat.ogg&lt;br /&gt;
* Username : mistress&lt;br /&gt;
* Password : mistress&lt;br /&gt;
* MP3 Encoder Bitrate (as you wish) : 96 Kbit/s&lt;br /&gt;
&lt;br /&gt;
[[File:screen-0=x355.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
=== Re-stream the output of airtime on another server ===&lt;br /&gt;
In theory, you can set up several output to an icecast server with Airtime Settings, in practive, it doesn&#039;t alway work, so you can also do :&lt;br /&gt;
 avconv -i http://radio.calafou:8000/airtime_128.ogg -f ogg -|oggfwd -p -d &amp;quot;Hack The Earth&amp;quot; -g &amp;quot;Ecochonies&amp;quot; -u &amp;quot;https://calafoorg/ca/content/hack-earth-2017&amp;quot; labomedia.org 8000 ****** /hacktheearth.ogg&lt;br /&gt;
&lt;br /&gt;
= Hardware installation =&lt;br /&gt;
* Omnius server is in the hacklab&lt;br /&gt;
* Pibox and the transmiter is in anarchaserver&lt;br /&gt;
* The antenna is on the roof of anarchaserver&lt;br /&gt;
[[File:harware-install-anarcha.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
= Software installation =&lt;br /&gt;
== AirTime ==&lt;br /&gt;
Airtime is a simple, open source platform that lets you broadcast streaming radio on the web. https://www.sourcefabric.org/en/airtime/ (also see this fork : https://github.com/radiorabe/airtime)&lt;br /&gt;
&lt;br /&gt;
It is installed on omnius : http://radio.calafou&lt;br /&gt;
&lt;br /&gt;
To install it, install dependencies :&lt;br /&gt;
 sudo apt-get install postgresql-9.4 python-virtualenv apache2 coreutils curl ecasound flac gzip libapache2-mod-php5 libcamomile-ocaml-data liquidsoap locales lsof monit mp3gain multitail patch php5-cli php5-curl php5-gd php5-json php5-pgsql php5-fpm php-apc php-pear pwgen python rabbitmq-server silan sudo sysv-rc tar unzip vorbisgain vorbis-tools zendframework icecast2&lt;br /&gt;
&lt;br /&gt;
 /!\ for debian jessie, you must install postgresql-9.4 and not postgresql without -9.4 else the calendar does&#039;nt show up /!\&lt;br /&gt;
&lt;br /&gt;
Clone the repository and launch the installer :&lt;br /&gt;
 git clone https://github.com/sourcefabric/Airtime&lt;br /&gt;
 cd Airtime&lt;br /&gt;
 sudo ./install&lt;br /&gt;
Follow the configuration process, at the end, you&#039;ll see the IP adress of the pibox on wich you can connect with a browser to finish the configuration threw the proposed interface&lt;br /&gt;
* Réf : http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/manual-installation/&lt;br /&gt;
&lt;br /&gt;
== PiBox ==&lt;br /&gt;
See documentation here : http://p-node.org/doc/index.php/V-2&lt;br /&gt;
&lt;br /&gt;
For the moment (see troubleshouting), 2 script are launched by /etc/rc.local :&lt;br /&gt;
 /home/pi/omnioussonification.sh 2&amp;gt; /home/pi/streamlog.txt &amp;gt;/dev/null &amp;amp;&lt;br /&gt;
 /home/pi/airtimeplayer.sh 2&amp;gt; /home/pi/streamlog.txt &amp;gt;/dev/null &amp;amp;&lt;br /&gt;
omnioussonification.sh :&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 while true;do&lt;br /&gt;
  AUDIODEV=hw:0,0 play -t ogg http://radio.calafou:8000/omniussonification.ogg&lt;br /&gt;
  sleep 3&lt;br /&gt;
 done&lt;br /&gt;
airtimeplayer.sh&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 while true;do&lt;br /&gt;
  AUDIODEV=hw:1,0 play -t ogg http://radio.calafou:8000/airtime_128.ogg&lt;br /&gt;
  sleep 3&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
[[File:piboxv2calafou.png|center]]&lt;br /&gt;
&lt;br /&gt;
= Troubleshouting =&lt;br /&gt;
== Airtime ==&lt;br /&gt;
=== The main stream doesn&#039;t output sound ===&lt;br /&gt;
It happens sometimes, to repair it, you can send a master source with a streaming software and then disconnect it, the sound reappear ! ...&lt;br /&gt;
* To send a master source, the parameters are here : http://p-node.org/doc/index.php/V-2&lt;br /&gt;
** Master username : mistress&lt;br /&gt;
** Master password : mistress&lt;br /&gt;
** Port : 8003&lt;br /&gt;
** Mountpoint : dictat.ogg&lt;br /&gt;
** Master Source Connection URL : http://radio.calafou:8003/dictat.ogg&lt;br /&gt;
=== Airtime doesn&#039;t seems to play sound, show the media builder or eat new sounds ===&lt;br /&gt;
The 3 magic command to restart everything (you have to be logged in omnius :&lt;br /&gt;
 sudo service airtime-media-monitor restart&lt;br /&gt;
 sudo service airtime-liquidsoap stop&lt;br /&gt;
 sudo service airtime-liquidsoap start&lt;br /&gt;
 /!\ it appears that &#039;restart&#039; doesn&#039;t work, liquidsoap doesn&#039;t take the modifications made in System &amp;gt; Streams&lt;br /&gt;
 sudo service airtime-playout restart&lt;br /&gt;
also, see the logs in /var/log/airtime/&lt;br /&gt;
&lt;br /&gt;
=== Airtime doesn&#039;t take into account the modifications made in System &amp;gt; Streams ===&lt;br /&gt;
Relaunching liquidsoap seems necessary : &lt;br /&gt;
 sudo service airtime-liquidsoap stop&lt;br /&gt;
 sudo service airtime-liquidsoap start&lt;br /&gt;
&lt;br /&gt;
=== Test a stream configuration ===&lt;br /&gt;
 liquidsoap &#039;output.icecast(%vorbis, host = &amp;quot;radio.calafou&amp;quot;, port = 8000, user = &amp;quot;source&amp;quot; password = &amp;quot;hackme&amp;quot;, mount = &amp;quot;liq.ogg&amp;quot;, sine())&#039;&lt;br /&gt;
&lt;br /&gt;
=== Airtime doesn&#039;t alway wait for the end of the track ===&lt;br /&gt;
Don&#039;t know why ...&lt;br /&gt;
&lt;br /&gt;
== PiBox ==&lt;br /&gt;
For the moment (28.08.2016), this interface of pibox is not used because the python script often switch to a fall back mode, so scripts with a player for Airtime stream and Omnius sonification are launched instead by rc.local&lt;br /&gt;
&lt;br /&gt;
== Antenna ==&lt;br /&gt;
The tube on which I was planning to fix the antenna is about to fall !&lt;br /&gt;
&lt;br /&gt;
So I used instead a solid metal piece fixed to the wall, but the antenna is only fixed in one point with plastic bracelets (colson) and 2 wires fixed to 2 solid metal points&lt;br /&gt;
&lt;br /&gt;
I&#039;m not sure it is really good on a long time perspective ...&lt;br /&gt;
&lt;br /&gt;
= Audio sources - web radios =&lt;br /&gt;
* Coordinadora de Ràdios Lliures de Catalunya http://www.radioslliures.info/&lt;br /&gt;
* http://www.contrabanda.org/&lt;br /&gt;
* http://radiobalamanresa.wordpress.com/&lt;br /&gt;
* http://www.radiobronka.info/&lt;br /&gt;
* http://www.radiolinea4.net/&lt;br /&gt;
* http://www.radiopica.net/&lt;br /&gt;
* http://www.radiorsk.info/&lt;/div&gt;</summary>
		<author><name>Apksmods</name></author>
	</entry>
</feed>