I have a feeling this is wrong, but I am not sure how to make it work cleanly.. This: |s| s := (((PipeableOSProcess command: '/usr/local/bin/mpc status') output) findTokens: Character lf) first should i have all the parenthesis in there? is there a cleaner way to do this? thanks! ---- peace, sergio photographer, journalist, visionary #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV http://www.Village-Buzz.com http://www.ThoseOptimizeGuys.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
You can just do (PipeableOSProcess command: 'mpc status') output lines first (also +1 for mpd :)) On Tue, Jun 7, 2016 at 8:27 PM, sergio ruiz <sergio.rrd@gmail.com> wrote:
I have a feeling this is wrong, but I am not sure how to make it work cleanly..
This:
|s|
s := (((PipeableOSProcess command: '/usr/local/bin/mpc status') output) findTokens: Character lf) first
should i have all the parenthesis in there? is there a cleaner way to do this?
thanks!
---- peace, sergio photographer, journalist, visionary #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV http://www.Village-Buzz.com http://www.ThoseOptimizeGuys.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
On Jun 7, 2016, at 2:36 PM, Peter Uhnák <i.uhnak@gmail.com> wrote:
(PipeableOSProcess command: 'mpc status') output lines first
(also +1 for mpd :))
got it! thanks! you might like this project.. this is going to run on raspberry pi.. the reason i am doing mpc status is to get the first line, and send it out to a 16x2 LCD.. i am making a raspberry pi based internet radio.. and i need it to display the song title, among other things.. ---- peace, sergio photographer, journalist, visionary #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV http://www.Village-Buzz.com http://www.ThoseOptimizeGuys.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
On 07 Jun 2016, at 20:42, sergio ruiz <sergio.rrd@gmail.com> wrote:
On Jun 7, 2016, at 2:36 PM, Peter Uhnák <i.uhnak@gmail.com> wrote:
(PipeableOSProcess command: 'mpc status') output lines first
(also +1 for mpd :))
got it! thanks!
you might like this project..
this is going to run on raspberry pi..
the reason i am doing mpc status is to get the first line, and send it out to a 16x2 LCD..
i am making a raspberry pi based internet radio.. and i need it to display the song title, among other things..
Hi Sergio, I have a (almost complete) MPD client in Pharo, talks the protocol directly. As well as a simple web UI to control music selection/playback. I wrote it for fun and for my own usage, but it works pretty well, I use it every day as an alternative to volumio.org (see my side project web shop http://audio359.eu). I did not (yet) publish it, because I do not want to support it as I do with my other open source projects. Interested ? Sven
---- peace, sergio photographer, journalist, visionary #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV http://www.Village-Buzz.com http://www.ThoseOptimizeGuys.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
I have a (almost complete) MPD client in Pharo, talks the protocol directly. As well as a simple web UI to control music selection/playback.
wow! this sounds like a good building block for what i am doing. i am building a standalone/headless player that just uses buttons to select tags, and flip through the tags.. having a web client would be good in that you could edit the radio station lists through the client via wifi..
I wrote it for fun and for my own usage, but it works pretty well, I use it every day as an alternative to volumio.org (see my side project web shop http://audio359.eu). I did not (yet) publish it, because I do not want to support it as I do with my other open source projects.
Interested ?
yes! the only catch is, iâd like to open source the whole thing.. and maybe start a few pharo based open source projects for raspberry pi.. if you would be willing to open source it, i would be willing to help you support it.. i think pharo is a natural fit with raspberry pi.. and if we can get some hands on, it would be a killer .. thanks! ---- peace, sergio photographer, journalist, visionary #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV http://www.Village-Buzz.com http://www.ThoseOptimizeGuys.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
Sergio, Here is my code: https://github.com/svenvc/mpdclient - the README.md should get you started. Have fun ! Sven
On 07 Jun 2016, at 22:17, sergio ruiz <sergio.rrd@gmail.com> wrote:
I have a (almost complete) MPD client in Pharo, talks the protocol directly. As well as a simple web UI to control music selection/playback.
wow! this sounds like a good building block for what i am doing.
i am building a standalone/headless player that just uses buttons to select tags, and flip through the tags..
having a web client would be good in that you could edit the radio station lists through the client via wifi..
I wrote it for fun and for my own usage, but it works pretty well, I use it every day as an alternative to volumio.org (see my side project web shop http://audio359.eu). I did not (yet) publish it, because I do not want to support it as I do with my other open source projects.
Interested ?
yes! the only catch is, iâd like to open source the whole thing.. and maybe start a few pharo based open source projects for raspberry pi..
if you would be willing to open source it, i would be willing to help you support it..
i think pharo is a natural fit with raspberry pi.. and if we can get some hands on, it would be a killer ..
thanks!
---- peace, sergio photographer, journalist, visionary #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV http://www.Village-Buzz.com http://www.ThoseOptimizeGuys.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
wow! on it! thanks!
On Jun 8, 2016, at 4:53 AM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Sergio,
Here is my code: https://github.com/svenvc/mpdclient - the README.md should get you started.
---- peace, sergio photographer, journalist, visionary #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV http://www.Village-Buzz.com http://www.ThoseOptimizeGuys.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
Keep us up to date It looks like an exciting project. BTW I love the audio stuff made by sven (I did not buy because I have too many loud speakers around me) but they keep telling me that I should buy them. Stef Le 7/6/16 à 20:42, sergio ruiz a écrit :
On Jun 7, 2016, at 2:36 PM, Peter Uhnák <i.uhnak@gmail.com> wrote:
(PipeableOSProcess command: 'mpc status') output lines first
(also +1 for mpd :)) got it! thanks!
you might like this project..
this is going to run on raspberry pi..
the reason i am doing mpc status is to get the first line, and send it out to a 16x2 LCD..
i am making a raspberry pi based internet radio.. and i need it to display the song title, among other things..
---- peace, sergio photographer, journalist, visionary #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV http://www.Village-Buzz.com http://www.ThoseOptimizeGuys.com http://www.coffee-black.com http://www.painlessfrugality.com http://www.twitter.com/sergio_101 http://www.facebook.com/sergio101
participants (4)
-
Peter Uhnák -
sergio ruiz -
stepharo -
Sven Van Caekenberghe