spacer
spacer search

SwissCenter

Search
spacer
Main Menu
Home
Documentation + FAQ
Screenshots
Downloads
Forums
Bug Tracking
History
Login
Username

Password

Remember me
?
No account yet?

Locations of visitors to this page

 
Home arrow Forums

SwissCenter Forums  


<< Start < Previous 1 2 Next > End >>
LastFM - 2007/10/10 14:27 Hi all,

Enthusiastic about the LastFM topic I copied all related files from the trunk (CS714, CS717, CS721, CS725, CS733, CS741 and CS815) into the SwissCenter folders. Unfortunately, nothing happened; there’s not a single trace of LastFM in the SwissCenter.

Is the LastFM feature still under construction or am I doing something wrong (in case of the latter: what else can I do except for plugging in the files from the changesets and run patch_0002 in SQL?

regards, Klaas

--------------------
SwissCenter 1.18
Simese 1.40
Windows XP
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2007/10/10 15:13 I must admit I've not tried this myself, don't really use this for radio streaming.

But... having looked at the code it may be just a case of not yet having a Config screen for LastFM to setup the username and password to logon to the LastFM server.

I presume you have a username and password for LastFM. If you have then enter these into the USER_PREFS table as fields LASTFM_USERNAME and LASTFM_PASSWORD.

You have me interested now so I'll try this later myself. I'm sure Rob will explain more later.

Edit: Looks like it requires a little more work.
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: LastFM - 2007/10/10 17:28 Hi Pernod,

Thanks for your reply, but two questions come immediately across my mind. The first one might be easy to answer, which is how do I enter the username and password into the USER_PREFS table (maybe you could give an example).

And secondly, if I’ve done so, what’s the next step; I couldn’t find anything that relates to LastFM in the screens, so how can I log on to the LastFM servers?



regards, Klaas

--------------------
SwissCenter 1.18
Simese 1.40
Windows XP
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2007/10/12 14:52 Last.fm support is one of the most wanted features - at least for me. Is it in bet stage or still alpha? 2x SC200 (wired), SwissCenter latest SVN, Simese 2.57
http://www.knecht-ruprecht.info
  | | The administrator has disabled public write access.
Re: LastFM - 2007/10/12 15:39 >>>Is it in bet stage or still alpha?

It is a high priority ticket item slated for the 1.19 release which has been delayed...

You see our illustrious developer become overheated and disoriented while in the midst of a squash match thus causing him to lose concentration and have an accident in which several key bones were broken.

Thus the accident with the developer, the delay in SwissCenter development, and you not having the specific feature that you desire can all be attributed (much like everything else) to Global Warming.
Showcenters 1000g/250HD/Popcorn Hour A-100
Netgear HDX101 Powerline Adapters
Windows XP SP3 Simese 2.6.4 Beta SwissCenter latest SVN
NAS Server Intel PD 2.66Ghz/2GB Mem/1.5TB Storage
Hauppauge HVR 1600 GB-PVR
  | | The administrator has disabled public write access.
Re: LastFM - 2007/11/10 15:42 Hi all,

Recently CS853 was added to the trunk. After copying all files to the various SwissCenter directories, I got the following error messages:

Fatal error: main() [function.require]: Failed opening required '' (include_path='.;c:\php4\pear') in C:\Documents and Settings\All Users\Application Data\Simese\Data\config\index.php on line 15

Fatal error: Cannot redeclare url_add_param() (previously declared in C:\Documents and Settings\All Users\Application Data\Simese\Data\base\utils.php:454) in C:\Documents and Settings\All Users\Application Data\Simese\Data\base\urls.php on line 10

Fatal error: main() [function.require]: Failed opening required '' (include_path='.;c:\php4\pear') in C:\Documents and Settings\All Users\Application Data\Simese\Data\music_radio_lastfm_artists.php on line 8

Fatal error: main() [function.require]: Failed opening required '' (include_path='.;c:\php4\pear') in C:\Documents and Settings\All Users\Application Data\Simese\Data\music_radio_lastfm_tags.php on line 8

My PHP-knowledge is too limited to find the origin of the error and respond to that, so what should I do to get LastFM running.

regards, Klaas

-------------------
SwissCenter 1.18
Simese 1.40
Windows XP
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2007/11/11 12:58 You can download a full copy of the current development branch (changeset 853) from the following location: http://swisscenter.co.uk/downloads/DevRelease.zip

This isn't a supported release, but it should allow you to get Last.FM support and provide some feedback for me

Rob
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re: LastFM - 2007/11/12 16:04 Hi Rob,

Thanks for the reply. I went through some of the files and I noticed files were requested I don’t have and that I couldn’t find in the trunk. It concerns:

'/base/patching.php' requested by “index.php” in line 10

'/ext/lastfm/datafeeds.php' requested by “music_radio_lastfm_artists.php” and “music_radio_lastfm_tags.php” (both in line 8)

Plugging in these files may solve the problems as:

Fatal error: Call to undefined function: station_playing_image() in C:\Documents and Settings\All Users\Application Data\Simese\Data\music_radio_image.php on line 21
{being: $image = station_playing_image($_REQUEST["station"]);}

and

Fatal error: Cannot redeclare url_add_param() (previously declared in C:\Documents and Settings\All Users\Application Data\Simese\Data\base\utils.php:454) in C:\Documents and Settings\All Users\Application Data\Simese\Data\base\urls.php on line 10
{being: function url_add_param($url, $param, $value}

Could you please send me the missing files, so I can continue with trying.

many thanks & regards, Klaas

PS how's your arm, getting better?

-----------------
SwissCenter 1.18
Simese 1.40
Windows XP
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2007/11/12 17:16 Thanks for the reply. I went through some of the files and I noticed files were requested I don’t have and that I couldn’t find in the trunk. It concerns:
Oops, sorry

When I created the zipfile I forgot to include all subdirectories. Try the link again and you should get a complete release (about 3.7 Mb). http://swisscenter.co.uk/downloads/DevRelease.zip

PS how's your arm, getting better?
Yes, much better thanks

Rob
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re: LastFM - 2007/11/13 18:34 Hi Rob,

I tried the Last.FM feature and I must say it worked out very good: chapeau!!!!

I found a few minor issues, that you could check:

[1] the “personal stations” (no 3 through 6) do time-out quite often, however by repeating the selection the radio station is moved to play;

[2] the “play now” screen shows artist, track title, album and total playing time, but the album art isn't shown; I get the standard music image in stead;

[3] the “music progress bar” isn’t shown in the “play now” screen.

Once again, I think you did an excellent job by integrating Last.FM with the SwissCenter the way you did. If feasible, addressing the points above would make this feature complete (at least for me).

regards, Klaas

--------------------
SwissCenter 1.18
Simese 1.40
Windows XP
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2007/11/13 19:08 [1] the “personal stations” (no 3 through 6) do time-out quite often, however by repeating the selection the radio station is moved to play;

I wasn't able to test these station very well as I haven't scrobbled much music on Last.FM - so the site reports that it doesn't have enough information. I'll take another look in a few weeks

[2] the “play now” screen shows artist, track title, album and total playing time, but the album art isn't shown; I get the standard music image in stead;

Your "cache location" setting has probably been corrupted and now points to an invalid location. Check "Cache Settings" under "advanced options" in the config pages.

[3] the “music progress bar” isn’t shown in the “play now” screen.

The firmware doesn't display a progress bar for radio streams unfortunately, so there's nothing I can do about this.

Another point to note is that there's no way to "love" or "hate" a song that is playing. This is due to the fact that the hardware player will not communicate with Swisscenter in any way whilst media is being played back... it's a feature I'd like to add, but can't!!!

Rob
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re: LastFM - 2007/11/14 18:56 Hi Rob,

I wasn't able to test these station very well as I haven't scrobbled much music on Last.FM - so the site reports that it doesn't have enough information. I'll take another look in a few weeks
Take your time, it's not a big issue

Your "cache location" setting has probably been corrupted and now points to an invalid location. Check "Cache Settings" under "advanced options" in the config pages.
Indeed, that was the trick, for some reason in the path to the cache all backslaches were doubled; after correcting the path all album arts as well as the photos are shown in the "play now" screen.

The firmware doesn't display a progress bar for radio streams unfortunately, so there's nothing I can do about this.
too bad, but fine.

many thanks for your support, regards, Klaas

--------------------
SwissCenter 1.18
Simese 1.40
Windows XP
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2007/11/17 04:46 Hi Rob,

The “time-out”-problem is getting more present. After an evening listening to LastFM through the SwissCentger without any problems, yesterday and today I couldn’t connect to the LastFM stream at all except for one time. Below you'll find a part of the logfile


[2007.11.17 10:26:07] ------------------------------------------------------------------------------
[2007.11.17 10:26:07] Page Requested : http://192.168.1.4:8080/ext/lastfm/stream.php?session_id=6e0b5fef6526cb95f9d29a87d48cc205&station=lastfm://user/SC200/recommended/100
[2007.11.17 10:26:07] SQL> select value from system_prefs where name='CACHE_STYLE_DETAILS'
[2007.11.17 10:26:07] SQL> select value from system_prefs where name='CACHE_LANGUAGE_STRINGS'
[2007.11.17 10:26:07] SQL> select value from user_prefs where user_id = 1 and name='LASTFM_USERNAME'
[2007.11.17 10:26:07] SQL> select value from user_prefs where user_id = 1 and name='LASTFM_PASSWORD'
[2007.11.17 10:26:07] Attempting to login with username 'KlaasVaak' and encrypted password 'fff5cd4d4cad13937fcd2a706159d669'
[2007.11.17 10:26:08] Successfully authenticated
[2007.11.17 10:26:08] Array
[2007.11.17 10:26:08] (
[2007.11.17 10:26:08] [Session] => c1ee6204f66635a601468ba006cfa636
[2007.11.17 10:26:08] [Stream URL] => http://87.117.229.85:80/last.mp3?Session=c1ee6204f66635a601468ba006cfa636
[2007.11.17 10:26:08] )
[2007.11.17 10:26:08]
[2007.11.17 10:26:08] Attempting to change station: lastfm://user/SC200/recommended/100
[2007.11.17 10:26:08] Tuned into station:
[2007.11.17 10:26:08] Attempting to stream
[2007.11.17 10:26:08] http://87.117.229.85:80/last.mp3?Session=c1ee6204f66635a601468ba006cfa636
[2007.11.17 10:26:08] Attempting to obtain now playing information
[2007.11.17 10:26:08] Attempt 1: LastFM is not streaming (or is unavailable).
[2007.11.17 10:26:11] Attempt 2: LastFM is not streaming (or is unavailable).
[2007.11.17 10:26:14] Attempt 3: LastFM is not streaming (or is unavailable).
[2007.11.17 10:26:18] Attempt 4: LastFM is not streaming (or is unavailable).
[2007.11.17 10:26:21] Attempt 5: LastFM is not streaming (or is unavailable).
[2007.11.17 10:26:24] Now playing information
[2007.11.17 10:26:24] Array
[2007.11.17 10:26:24] (
[2007.11.17 10:26:24] [eaming] => false
[2007.11.17 10:26:24] )
[2007.11.17 10:26:24]
[2007.11.17 10:26:26] SQL> select value from system_prefs where name='NEW_MESSAGES_CHECK_TIME'
[2007.11.17 10:26:26] SQL> select value from system_prefs where name='MESSAGES_ENABLED'
[2007.11.17 10:26:26] SQL> select value from system_prefs where name='INTERNET_SETTING'
[2007.11.17 10:26:26] SQL> select value from system_prefs where name='INTERNET_CHECK_TIME'
[2007.11.17 10:26:26] SQL> select value from system_prefs where name='INTERNET_AVAILABLE'
[2007.11.17 10:26:26] ------------------------------------------------------------------------------


Going through the logfile I noticed that SwissCenter cannot find the requested streams although you can play them through both the LastFM website and the LastFm proxy server. Is this a common problem or is there something wrong with my settings?

regards, Klaas

------------------
SwissCenter 1.18
Simese 1.40
Windows XP
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2007/12/12 14:55 The problem of timing out seems to be related to the speed of the internet connection. I've increased it and the timing out problem disappeared.

Howver another issue popped up: the music and the PLAY NOW screen are not in sync. Maybe again this is a problem with the internet connection. This week the speed will be increased again and let's see if it will solve the out of sync issue.

regards, Klaas

-------------------
SwissCenter 1.18
Simese 1.40
Windows XP
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2007/12/13 11:18 klaasvaak wrote:
The problem of timing out seems to be related to the speed of the internet connection. I've increased it and the timing out problem disappeared.
OK, good to know.

klaasvaak wrote:
Howver another issue popped up: the music and the PLAY NOW screen are not in sync. Maybe again this is a problem with the internet connection. This week the speed will be increased again and let's see if it will solve the out of sync issue.
Ah... now I know what causes this, but there's absolutely nothing I can do about it .

The showcenter requests the MP3 stream from last.fm and reads it into a cache. It is only when a certain amount of data has been received that playback starts. So, in effect, the Last.FM server will be sending out the data for the 2nd song when the 1st song is still cached and being played back.

The playback information shown on the screen is refreshed every 30 seconds, but the details do not come from the stream - they come from a webservice provided by Last.FM.

So... what happens is that when the details are requested, Last.FM knows that the 2nd song is being streamed, and so provides information about the 2n song. BUT... in actual fact, the showcenter is still playing the first song due to the caching involved. therefore the details appear out of sync.

Hope that all makes sense!

Rob
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/08 23:20 OK, I am completely lost as to how the LastFM feature in 1.19 works...



Any help would be appreciated...
Showcenters 1000g/250HD/Popcorn Hour A-100
Netgear HDX101 Powerline Adapters
Windows XP SP3 Simese 2.6.4 Beta SwissCenter latest SVN
NAS Server Intel PD 2.66Ghz/2GB Mem/1.5TB Storage
Hauppauge HVR 1600 GB-PVR
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 13:51 Hi Stu2j,

In the WickiPedia you can find a general description on LastFM.

Assuming that you have signed up with LastFM, you enter your username and password in the radio option of the config-screen. In addition you may choose your selection to be “scrobbled” or not.

The internet radio screen of the SwissCenter now will show an additional radio station being LastFM. When selecting this radio station, you get a number of options. The first two being “genre” and “artist” refer to genres and artists in your DB. When you select one, LastFM will start with the genre or artist you selected, seeks and plays the same kind of music afterwards.

The other selection options depend on how much you have “scrobbled” you music.

Hope this helps, regards, Klaas

------------------
SwissCenter 1.18
Apache 2 / PHP 5.2.0
Linux Synology 2.6.15
Synology DS107+ (128)
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 14:16 Thanks for the post..

However ...

I created a profile on last.fm

Under Internet, I have enabled last.fm

Under Radio, I have entered my username and password.

However, there is no button showing on the Internet Radio menu.

Is there some Last.fm software or something that needs to be downloaded?

Like to try this feature...
Showcenters 1000g/250HD/Popcorn Hour A-100
Netgear HDX101 Powerline Adapters
Windows XP SP3 Simese 2.6.4 Beta SwissCenter latest SVN
NAS Server Intel PD 2.66Ghz/2GB Mem/1.5TB Storage
Hauppauge HVR 1600 GB-PVR
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 15:02 last.fm doesn't work for me too.

No Radio an no scrobbling.
Showcenter 1000 on Thomson 32" / 81cm Widescreen CRT
Windows Vista, 2gb Ram, 700gb HDD, Intel Core2Duo E6750
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 15:18 Same here. I just upgraded to 1.19.1 and cannot see a last.fm button on the radio interface.

Nevertheless, thanks for the upgrade!!! I'm more than happy that SC is not dead

Regarding last.fm: Should scroobling work if I play (local) MP3s? I can't see any indication. Maybe a short info could be added to the Music play screen?
2x SC200 (wired), SwissCenter latest SVN, Simese 2.57
http://www.knecht-ruprecht.info
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 15:30 upD8R wrote:

Regarding last.fm: Should scroobling work if I play (local) MP3s? I can't see any indication. Maybe a short info could be added to the Music play screen?


Yes, scrobbling works with local mp3s, The Player sends the information to last.fm an after that you are able to see in your last.fm profile what you've heard in the last time.

Look here for example: http://www.lastfm.de/user/Psychotoxical/
Showcenter 1000 on Thomson 32" / 81cm Widescreen CRT
Windows Vista, 2gb Ram, 700gb HDD, Intel Core2Duo E6750
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 15:35 Well, I've discovered a small bug (not quite enough for another release on it's own... we'll see what other bugs come to light over the next few days!)...

If you go to Advanced Options > Internet Connectivity then you will notice that Last.FM support is show as enabled. This is incorrect, and Last.FM support is actually disabled by default. You will need to click on the "Save settings" button to actually enabled Last.FM.

You will also need to register on the Last.FM website and then enter your username and password into the Media management > Internet Radio page.

Note: If scrobbling is enabled, then you might experience the occasional pause in the playback of mp3s when the last.FM server is busy (its fine about 99% of the time). I'm hoping to have this completely stable in the next version, but didn't want to hold up the 1.19 release any more than a few broken bones and a new job have already!

Sorry for the inconvenience
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 15:41 Thanks, now it works Showcenter 1000 on Thomson 32" / 81cm Widescreen CRT
Windows Vista, 2gb Ram, 700gb HDD, Intel Core2Duo E6750
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 15:42 Another possibilty is to change the code of /ext/lastfm/lastfm.php on row 467 from

elseif (get_sys_pref('LASTFM_ENABLED','NO') != 'YES')

into

elseif (get_sys_pref('LASTFM_ENABLED','YES') != 'YES')

After doing so, the LastFM bar appears. Or am I ruining something?

Regards, Klaas

------------------
SwissCenter 1.18
Apache 2 / PHP 5.2.0
Linux Synology 2.6.15
Synology DS107+ (128)
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 15:49 Shhh! that's the permanent fix to the code Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 15:59 Hey whaddya know there it is...

It's the little things...

Another great feature....
Showcenters 1000g/250HD/Popcorn Hour A-100
Netgear HDX101 Powerline Adapters
Windows XP SP3 Simese 2.6.4 Beta SwissCenter latest SVN
NAS Server Intel PD 2.66Ghz/2GB Mem/1.5TB Storage
Hauppauge HVR 1600 GB-PVR
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/09 16:10 I fully agree, I really like LastFM; and through SwissCenter it comes out of the study into the living room, it's really great.

Klaas

------------------
SwissCenter 1.18
Apache 2 / PHP 5.2.0
Linux Synology 2.6.15
Synology DS107+ (128)
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/10 14:32 I have found a small bug, as I played some songs with "umlauts" (is that the correct englisch word for the german letters ä,ö,ü ?)

I played a record by Mötley Crüe with Swisscenter (scrobbling enabled)
After that I played the record again on my pc with Winamp.

The song played with Winamp is displayed correctly, the songs scrobbled with Swiss are not ok.

I've attached a screenshot:
Showcenter 1000 on Thomson 32" / 81cm Widescreen CRT
Windows Vista, 2gb Ram, 700gb HDD, Intel Core2Duo E6750
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/10 14:49 I can confirm the Umlaut issue, it doesn't matter whether the letter is in the title, artist or whatever.

Probably some encoding issue!?!
2x SC200 (wired), SwissCenter latest SVN, Simese 2.57
http://www.knecht-ruprecht.info
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/11 05:24 acknowledged. Recorded as bug #117 Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/11 05:54 Psychotoxic wrote:
upD8R wrote:

Regarding last.fm: Should scroobling work if I play (local) MP3s? I can't see any indication. Maybe a short info could be added to the Music play screen?


Yes, scrobbling works with local mp3s, The Player sends the information to last.fm an after that you are able to see in your last.fm profile what you've heard in the last time.

Look here for example: http://www.lastfm.de/user/Psychotoxical/



Do I have to download the Scrobbling-Software from Last.fm and keep it running so that the informations will be send to last.fm ?
SwissCenter SVN 1339
Simese 2.5.9 / PHP 5.2.9-1 / MySQL 5.1.32 / Windows 7 Home Premium
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/11 06:47 hhbernd wrote:
Do I have to download the Scrobbling-Software from Last.fm and keep it running so that the informations will be send to last.fm ?

No, SC scobbles the titles on its own. So, it worked for me w/o having last.fm app open ... 2x SC200 (wired), SwissCenter latest SVN, Simese 2.57
http://www.knecht-ruprecht.info
  | | The administrator has disabled public write access.
Re: LastFM - skip song - 2008/01/13 07:08 Is there a way you can skip a song while listening to Last FM through showcenter? or it's an impossible thing to implement?
  | | The administrator has disabled public write access.
Re: LastFM - skip song - 2008/01/13 07:46 In short - it's impossible.

Unfortunately, once control is passed to the hardware there is no communication with Swisscenter until the STOP button is pressed and you start to navigate through the pages once again.

One of my really big requests to the various companies that make these boxes s a feature where any remote cotnrol button pressed during playback is signalled to the server - this would allow features such as "love/hate" and skip in Last.FM, as well as being able to rate MP3s whilst listening to them.

Rob
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/18 17:54 Hi,

I do like the LastFM feature, but when I log in to LastFM & look at 'Recently Played Tracks' it is showing a list of tracks with the top one showing 'Just Listened' in spite of all the media players (4 x Wired ADSTech Media Links) having been turned off some hours ago.

If I check Miscellaneous in SwissCentre it shows 2 listings for ADSTECH even though I have disconnected them all from the network.

Any thoughts ?

Regards
Windows 7 server
Pentium 4, 3.00 GHz, 1 Gb RAM
Various disk drives
4 x ADS Mediacenter
Hardwired network including Netgear HomePlug devices.
Webserver : Simese v2.5.10
PHP : v5.2.9-1
MySQL : v5.1.32-community
SwissCenter : SVN Revision [1408]
  | | The administrator has disabled public write access.
Re: LastFM - 2008/01/20 14:16 Ticket #128 created. Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re: LastFM - 2008/02/26 12:47 The scrobbling is strange for me. The songs I play on my SC200 comes up on Last.fm as now listening, but it disappears when I change song or when the song is over.

It worked in the beginning but stopped yesterday...
  | | The administrator has disabled public write access.
Re: LastFM - 2008/04/30 04:47 Is someone working on bug #117? 2x SC200 (wired), SwissCenter latest SVN, Simese 2.57
http://www.knecht-ruprecht.info
  | | The administrator has disabled public write access.
Re: LastFM - 2008/04/30 07:06 Is someone working on bug #117?
I have a fix for this. I'll submit it (and post here) after some further testing.
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: LastFM - 2008/04/30 07:33 Sounds great, if you need testing support just drop me a note ...

Thanks!
2x SC200 (wired), SwissCenter latest SVN, Simese 2.57
http://www.knecht-ruprecht.info
  | | The administrator has disabled public write access.
Re: LastFM - 2008/04/30 17:40 Here's the fix for the incorrect encoding of umlauts etc.

Copy the lastfm.php to your \ext\lastfm folder.
File Attachment:
File name: lastfm.zip
File size:4274 bytes
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: LastFM - 2008/05/01 04:28 @Pernod

Thanks, works great here.
Now we have two things open, the timezone issue and it seems that each track is immediately scrobbled, i.e. even if I skip a song 2s after start in the Now Playiing screen it is scrobbled. Maybe there should be some delay as in the original Last.FM client?
2x SC200 (wired), SwissCenter latest SVN, Simese 2.57
http://www.knecht-ruprecht.info
  | | The administrator has disabled public write access.
Re: LastFM - 2008/05/01 06:04 the timezone issue
The time of the scrobble is supposed to be submitted as GMT and I see there is already code in there to handle this. However, when I go to LastFM I see my tracks listed an hour earlier, even though I'm in UK which is GMT. Are you also seeing an hour difference or something else, and which timezone are you in? I'm thinking it may be due to Daylight Savings Time not being accounted for.

and it seems that each track is immediately scrobbled
Ideally a track should be scrobbled after half of it has been played. Unfortunately our media players don't send information back to SwissCenter to tell us how much of the track has been played though. We simply tell the player to stream a file. Even if a whole file has been buffered there is no way for us to know if it has been played or not. So basically we scrobble when we finish sending the file. I don't think there is anything we can do about this.
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: LastFM - 2008/05/01 06:18 Oky, I understood the scrobbling issue. Nothing we can change, I assume.

Regarding timezone:

My songs are scrobbled two hours too early which obviously means one our difference to GMT (as I'm based in Germany) and one additonal hour for the Daylight saving.
2x SC200 (wired), SwissCenter latest SVN, Simese 2.57
http://www.knecht-ruprecht.info
  | | The administrator has disabled public write access.
Re: LastFM - 2008/05/01 07:45 The time of the scrobble is supposed to be submitted as GMT and I see there is already code in there to handle this. However, when I go to LastFM I see my tracks listed an hour earlier, even though I'm in UK which is GMT. Are you also seeing an hour difference or something else, and which timezone are you in? I'm thinking it may be due to Daylight Savings Time not being accounted for.

I think the GMT date functions in PHP rely on you setting your current timezone within the PHP ini file - it's not automatically picked up from windows.

I've been thinking that we should check the current GMT time (via a website or internet service) and compare it to the user's time as returned by PHP. We'd then be able to calculate the difference and use it when submitting dates to the Lasft.FM server.

Ideally a track should be scrobbled after half of it has been played. Unfortunately our media players don't send information back to SwissCenter to tell us how much of the track has been played though. We simply tell the player to stream a file. Even if a whole file has been buffered there is no way for us to know if it has been played or not. So basically we scrobble when we send the file. I don't think there is anything we can do about this.

Tracks are streamed via stream.php, which includes code to scrobble the track once the file has been completely streamed to the player.

In theory, this means that the scrobbling is only done when the song has been listened to, but in practice the player buffers the song and therefore the scrobbling takes place far too early.

Rob
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
Re: LastFM - 2008/05/01 09:03 I'm not sure, but this problem could be related to the hour time difference due to the current daylight time. In fact I've got the same issue with my Skype phone, apparently unable to catch up with the daylight time.

regards, Klaas

-----------------------------------------
SwissCenter 1.20
Simese 1.40 & Apache 2 / PHP 5.2.0
Windows XP & Linux Synology 2.6.15
Synology DS107+ (128)
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: LastFM - 2008/05/01 20:32 Can you guys try this:
File Attachment:
File name: utils.zip
File size:5482 bytes

This is working for me, and I temporarily changed my timezone and still worked. The previous implementation submitted the time as GMT whereas this submits the current time in the GMT timezone, ie. adds the daylight hour.

To ensure the LastFM site shows the correct time make sure you have your timezone set in your profile. On the Charts - Recent Tracks page the time is shown without daylight time added, but on the Overview tracks are shown as 'just listened', '10 minutes ago', etc. I've compared behaviour of iTunes and SwissCenter and they seem to match.

Also note that if a track is being shown as 'just listened' rather than 'now playing' this is because the file has finished streaming to your player, as Rob described earlier.

Nigel
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: LastFM - 2008/05/02 01:46 Well, what profile do you mean?

I'm asking because I still have a difference of one hour.
2x SC200 (wired), SwissCenter latest SVN, Simese 2.57
http://www.knecht-ruprecht.info
  | | The administrator has disabled public write access.
Re: LastFM - 2008/05/02 04:11 Well, what profile do you mean?
Your LastFM profile. When logged in to the LastFM site, click settings and ensure your Time Zone is correct.
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: LastFM - 2008/05/02 04:46 Pernod,

Could we use this webservice instead do you think? We could calculate the offset between the user's current timestamp and the GMT time and then store it in the session or database for later use. It saves them updating their profile and should be reliable for DST as well.

The details are here:
http://www.quantumsoftware.com.au/WorldTimeWebService/WorldTimeWebService.asmx?op=GetTimeZoneInfo

Take your pick of protocols... HTTP GET, POST or SOAP.

(btw - the timezone string is "(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London").
Server : Windows Home Server (HP MediaSmart EX470)
Player #1: Pinnacle Showcenter 200 (wired ethernet)
Player #2: Popcorn Hour A110 (wired ethernet)


  | | The administrator has disabled public write access.
<< Start < Previous 1 2 Next > End >>
spacer
 

Screenshots

www.flickr.com
This is a Flickr badge showing public photos from swisscenter. Make your own badge here.


 

Mambo is Free Software released under the GNU/GPL License.
spacer