Hi again!

2012/3/3 Romain Beauxis <[email protected]>:
> 2012/3/3 Quentin Drouet <[email protected]>:
>> Hey to fall back on this...
>>
>> How do you point radios on map (based on IPs?)
>>
>> For example, Groovalizacion (http://www.groovalizacion.com) is based
>> in Dublin, the server is in France, the content come from South
>> America / Spain / UK ...
>>
>> Shortly... How can I have the point in Dublin? ;)
>
> Localization is extracted from the radio's IP address using geoip.
>
> I totally understand your concern, I'll see what I can do to allow you
> to change this value.

Ok, I guess it is time to introduce the flows client:
  https://github.com/savonet/flows-client
:-)

The code is still experimental but it should work. This is a command
line utility to interact with your radio using the credential you
provided. It works as follows:


toots@zulu client  % ./flow
User: radiopi
Password: *********
Signed in!

Please choose an action:
  1) Display user info
  2) Get radio info
  3) Edit radio name
  4) Edit radio location
  5) Delete radio
  6) Add twitter to radio
  7) Remove twitter from radio
  8) Exit
  : 1
User info:
{ email: '[email protected]',
  last_seen: '2012-03-03T18:48:29.513Z',
  last_ip: 'xxx.xxx.xxx.xxx',
  radios:
   [ { name: 'RadioPi - Canal Jazz',
       token: 'c9885ec09acb37331ff10c0fe3d45bfcd74051c9' },
     { name: 'RadioPi - Canal Rock',
       token: '8b4247af58b313d1aac60e9ca61fb96d90ea8ed5' },
     { name: 'RadioPi - Canal That70Sound',
       token: '3640689693660e3a2690f30f1e23a04349092a30' },
     { name: 'RadioPi - Canal Reggae',
       token: '6c0ce629f24ba3b086126d0e177bbf8cdb361dea' } ],
  user: 'radiopi' }

Please choose an action:
  1) Display user info
  2) Get radio info
  3) Edit radio name
  4) Edit radio location
  5) Delete radio
  6) Add twitter to radio
  7) Remove twitter from radio
  8) Exit
  : 4
Token: c9885ec09acb37331ff10c0fe3d45bfcd74051c9
Latitude: 0
Longitude: 0
Location successfuly edited!

Please choose an action:
  1) Display user info
  2) Get radio info
  3) Edit radio name
  4) Edit radio location
  5) Delete radio
  6) Add twitter to radio
  7) Remove twitter from radio
  8) Exit
  : 2
Token: c9885ec09acb37331ff10c0fe3d45bfcd74051c9
{ name: 'RadioPi - Canal Jazz',
  token: 'c9885ec09acb37331ff10c0fe3d45bfcd74051c9',
  website: 'http://www.radiopi.org/',
  title: 'Chameleon',
  artist: 'Herbie Hancock',
  genre: 'jazz',
  description: 'Cool vibes from Chatenay!',
  longitude: 0,
  latitude: 0,
  last_seen: '2012-03-03T18:47:56.564Z',
  streams: [ { format: 'mp3/128k', url: 'http://radiopi.org:8080/jazz' } ],
  twitters: [] }

Please choose an action:
  1) Display user info
  2) Get radio info
  3) Edit radio name
  4) Edit radio location
  5) Delete radio
  6) Add twitter to radio
  7) Remove twitter from radio
  8) Exit
  : 2
Token: 8b4247af58b313d1aac60e9ca61fb96d90ea8ed5
{ name: 'RadioPi - Canal Rock',
  token: '8b4247af58b313d1aac60e9ca61fb96d90ea8ed5',
  website: 'http://www.radiopi.org/',
  title: 'Best Of You',
  artist: 'Foo Fighters',
  genre: 'Rock',
  description: 'Cool vibes from Chatenay!',
  longitude: 2.26669999999999,
  latitude: 48.7667,
  last_seen: '2012-03-03T18:47:55.240Z',
  streams: [ { format: 'mp3/128k', url: 'http://radiopi.org:8080/Rock' } ],
  twitters: [] }

Please choose an action:
  1) Display user info
  2) Get radio info
  3) Edit radio name
  4) Edit radio location
  5) Delete radio
  6) Add twitter to radio
  7) Remove twitter from radio
  8) Exit
  : 4
Token: c9885ec09acb37331ff10c0fe3d45bfcd74051c9
Latitude: 48.7667
Longitude: 2.26669999999999
Location successfuly edited!

Please choose an action:
  1) Display user info
  2) Get radio info
  3) Edit radio name
  4) Edit radio location
  5) Delete radio
  6) Add twitter to radio
  7) Remove twitter from radio
  8) Exit
  : 8
Bye!


Documentation is totally inexistant but you should be able to figure it out..

Let me know if it works for you!

Romain

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to