Go Back   Home > Forums > >
Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

PC Based Computer music servers, crossovers, and equalization

Moode Audio Player for Raspberry Pi
Moode Audio Player for Raspberry Pi
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 3rd November 2016, 07:00 PM   #5101
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Quote:
Originally Posted by Giordano View Post
Hi, I have copied it into a previous message, but also packed here :

https://mega.nz/#!gwwD2RbR!GWYYRTBfz...lyWEWsDlj2f3I8

as well as the lcdi2c program, which is from here :
Utility To Control 1602 LCD On Raspberry Pi Via A PCF8574 I2C Backpack Module

Thanks,
JG
Hi,

Since it requires component software to be installed and configured, and you already have done this, it would easier if you debugged on your end.

What I would suggest is running lcdup.sh (the LCD updater engine) from the cmd line and checking for any errors, and/or adding some debug echo statements to it.

The file is: /var/www/command/lcdup.sh

To run it: /var/www/command/lcdup.sh <path to python script>

To verify that lcdup.sh actually works, you can create a simple shell script that does: cp /var/www/currentsong.txt ~/lcd.txt and supply path to this script when you run lcdup.sh.

-Tim
__________________
Enjoy the Music!
http://moodeaudio.org, http://twitter.com/MoodeAudio
  Reply With Quote
Old 3rd November 2016, 07:29 PM   #5102
Giordano is offline Giordano  Hungary
diyAudio Member
 
Join Date: May 2005
Location: Hungary
Thanks!

It is better now.
It was saying:
pi@radio:/var/www/command $ ./lcdup.sh /home/pi/update.py
./lcdup.sh: /home/pi/update.py: /usr/bin/python^M: bad interpreter: No such file or directory
pi@radio:/var/www/command $

I was wondering what is that ^M in the message and I found it in the file. I guess the problem is that I opened the file to edit in windows total commander's editor and it left some end of line things in it. From the call ./lcdup.sh /home/pi/update.py it works now fine.
When I returned first to the web interface and changed stations, the LCD wrote out strange things, but after reboot it works fine now.
I have to work on the script, to form the message better, but the update works fine now.
Thanks,
JG
  Reply With Quote
Old 3rd November 2016, 07:35 PM   #5103
Eyerex is offline Eyerex  United Kingdom
diyAudio Member
 
Join Date: Dec 2015
Location: South London
@Giordano

Hello do you have a script that shows info on a screen attached to the Pi just wondered is it text info or does it show info like album covers ?
  Reply With Quote
Old 3rd November 2016, 08:12 PM   #5104
jbg is offline jbg
diyAudio Member
 
Join Date: Sep 2016
Quote:
Originally Posted by TimCurtis View Post
Hi,

Moode does not contain an integrated multi-room audio feature with central management of endpoints, volume, etc. I'm not aware of any mature Open Source software that integrates with MPD and provides robust, reliable, multi-room synchronized audio that is also synchronized with local MPD, and that provides a management interface.

What can be done however is to turn on the Airplay receiver in Moode and then use PC or Mac iTunes as the multi-room sync and management solution. The Airplay receiver in Moode is shairport-sync which provides a sync mechanism that is used by host Airplay senders for example iTunes.

Regarding your other comments and observations:

1) Same Moode radio station stream playing on separate Raspberry Pi computers will not be synchronized. There is no mechanism in Moode that can sync the streams.

2) Moode doesn't not contain a facility for managing other Moode hosts. Moode host and service names must be distinct on each Raspberry Pi running Moode. These can be changed in System config. Accessing via Browser requires separate tab for each Moode host for example http: //moode1.local, http: //moode2.local, etc.

-Tim
Thanks Tim,
Doesn't the fact that all rooms are accessing the same radio stream mean they all get it at the same time ? or are you talking very slight differences between rooms? I am basing this brilliant assertion on the fact if I have two radios on, each in separate rooms they will "sound" synced.I'm prepared to be enlightened

Re the airplay, what's the connection between itunes and airplay?
I dont use anything apple at present and all my music is on NAS.
I'm not sure what exactly airplay is!
Is it apples multi-room sync and management solution software that's free if you join itunes?

Is this the same thing?
https://www.airserver.com/Usage/Entertainment

I take it I would need to have my PC on and running some airplay or other for any of this to work?
  Reply With Quote
Old 3rd November 2016, 08:19 PM   #5105
Giordano is offline Giordano  Hungary
diyAudio Member
 
Join Date: May 2005
Location: Hungary
Hello,
It is only an alfanumeric display.

There is still something not right. There is radio station it just does not update to. The currentsong.txt does update, but the LCD not. And after, the LCD writes out strange things again and updates not once, but a few times after the change, quickly flashing. It happens that I see the title for a flash.

After reboot it works fine again, until I hit this channel :
"SMOOTH GROOVING FM - UK (London): Unknown - Super Smoothing with Roddy lucas wk35"
Strange is, if I call manually : like ./lcdup.sh /home/pi/update.py , it works fine (on other channels). If I change station again from the web interface, it is a mess again on the LCD.

I worked for long with linux, but I'm new to python. I guess there is something wrong in the script.

Can someone help with that? I have cleaned out all the "^M"-s now.

What I can reproduce any time, even after boot is that when I change to the channel above, it does not update. If I try to update manually :
pi@radio:~ $ /var/www/command/lcdup.sh /home/pi/update.py
sh: 1: Syntax error: "(" unexpected
pi@radio:~ $

It is strange for me, that if there is a "(" in the string, than I have this problem. Why is it matter what is in the string?

Thanks a lot!
*******************#!/usr/bin/python
import time
import os

# Timing constants
E_PULSE = 0.00005
E_DELAY = 0.00005

def main():
# Main program block

f=os.popen("mpc current")
station = ""
for i in f.readlines():
station += i
# Send some text
station = station[0:32]
os.system("lcdi2c -i -l -b 1 -x 0 -y 0 " + station)


if __name__ == '__main__':
main()

Last edited by Giordano; 3rd November 2016 at 08:23 PM.
  Reply With Quote
Old 3rd November 2016, 08:31 PM   #5106
TimCurtis is offline TimCurtis  United States
diyAudio Member
 
TimCurtis's Avatar
 
Join Date: Jan 2012
Location: Metro-Detroit
Quote:
Originally Posted by jbg View Post
Thanks Tim,
Doesn't the fact that all rooms are accessing the same radio stream mean they all get it at the same time ? or are you talking very slight differences between rooms? I am basing this brilliant assertion on the fact if I have two radios on, each in separate rooms they will "sound" synced.I'm prepared to be enlightened

Re the airplay, what's the connection between itunes and airplay?
I dont use anything apple at present and all my music is on NAS.
I'm not sure what exactly airplay is!
Is it apples multi-room sync and management solution software that's free if you join itunes?

Is this the same thing?
https://www.airserver.com/Usage/Entertainment

I take it I would need to have my PC on and running some airplay or other for any of this to work?
Hi,

Internet based streaming radio is not a broadcast technology like FM radio and thus there is no guarantee that individual computers will receive their particular stream in sync with any other.

-Tim
__________________
Enjoy the Music!
http://moodeaudio.org, http://twitter.com/MoodeAudio
  Reply With Quote
Old 3rd November 2016, 08:59 PM   #5107
Giordano is offline Giordano  Hungary
diyAudio Member
 
Join Date: May 2005
Location: Hungary
I think there is guarantee that it will not be in sync.
We would need to sync the clock what the output audio signal clock is devided from and we would need to start the audio in same time and same point. Nothing in the chain is designed for that. A little phase delay, especially around voice frequencies would do strange things.

I'm sorry if I chat into something I should not, but I think it is not Moode specific, I do not think any inet radio would be capable to do that.

In professional audio, they solve it very different way and all delays are controlled accurately in the system.

Regards,
JG
  Reply With Quote
Old 3rd November 2016, 09:15 PM   #5108
Giordano is offline Giordano  Hungary
diyAudio Member
 
Join Date: May 2005
Location: Hungary
I got help from other source. It does not work this way unfortunately. The problem is that, the script runs command on shell with parameters. The string I want to write out is a parameter too and if it contains special characters, it mess up everything. :-(
JG
  Reply With Quote
Old 3rd November 2016, 09:27 PM   #5109
jonners is offline jonners  United Kingdom
diyAudio Member
 
jonners's Avatar
 
Join Date: Jan 2007
Location: Gloucestershire
Quote:
Originally Posted by jbg View Post
I take it I would need to have my PC on and running some airplay or other for any of this to work?
It needn't necessarily be a PC or a Mac. At the moment I'm using a cheap Android tablet. With Moode I can use that to select files from my USB hard drive, or play radio streams, and also have the choice of several streaming services such as Tidal, Qobuz, and Google Play which will work via UPNP through Moode.

John

Last edited by jonners; 3rd November 2016 at 09:29 PM.
  Reply With Quote
Old 3rd November 2016, 10:14 PM   #5110
jbg is offline jbg
diyAudio Member
 
Join Date: Sep 2016
Quote:
Originally Posted by jonners View Post
It needn't necessarily be a PC or a Mac. At the moment I'm using a cheap Android tablet. With Moode I can use that to select files from my USB hard drive, or play radio streams, and also have the choice of several streaming services such as Tidal, Qobuz, and Google Play which will work via UPNP through Moode.

John
Thanks John
I'm a bit fixated on having something that plays radio and NAS in any room and simultaneously if possible without needing anything else on i.e screens or PCs

If I got a tablet of some sort I suppose it doesn't stop me using my phone mostly and the airplay can run in the background on the tablet even with the screen off?
Also individual rooms would work on my phone with the tablet off?
Is that the setup you've got?

Would the airplay sync radio streams in separate rooms too?
  Reply With Quote

Reply


Moode Audio Player for Raspberry PiHide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
My DAC for the Raspberry Pi usul27 Digital Line Level 156 29th April 2017 11:10 PM
DSP for the Raspberry Pi usul27 Digital Line Level 39 30th August 2016 07:29 AM
Raspberry Pi + CirrusLogic Audio Card = FAIL solderhead PC Based 31 26th January 2016 06:48 PM
RaspyFi/Volumio - Turn raspberry Pi into Audiophile audio Player mikelangeloz PC Based 295 14th June 2014 05:32 PM
miniAMP and raspberry pi kp93300 miniDSP 0 3rd March 2014 03:38 AM


New To Site? Need Help?

All times are GMT. The time now is 12:59 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 14.29%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
Copyright ©1999-2018 diyAudio
Wiki