Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Official moOde 6.5.1 support thread
#91
(05-02-2020, 01:30 PM)Tim Curtis Wrote: I can repro. It appears to be some sort of height issue related to the cover. What happens of you edit the cover and make it 300x300?

300 x 300 pixel image sorts it as a workaround.

Cheers,

Phil

#92
I got a strange glitch. Sometimes the button to delete the search string in the Tag Library View is misplaced:

[Image: glitch.png]

I think this happens after one has done a search in Tag mode, then switched to some other library view (such as Albim or Folder), not completely sure though. Yet to find a bomb proof way to reproduce the bug.
#93
(05-03-2020, 12:24 AM)duracell80 Wrote:
(05-02-2020, 02:19 PM)philrandal Wrote:
(05-02-2020, 01:30 PM)Tim Curtis Wrote: I can repro. It appears to be some sort of height issue related to the cover. What happens of you edit the cover and make it 300x300?

300 x 300 pixel image sorts it as a workaround.

Cheers,

Phil

As an aside to the issue I found that radio logos should be at least double that to be totally sharp on a desktop browser. I try to go for 700x700. I remember back in the day using PHP to crop uploaded images to a square ratio.

Regardless of that, it should just work whatever size icon is available. I'm sure the MoOde team will come up with a long term fix.

It's a small niggle about an excellent product. Loving 6.5.1 so far.

Phil

#94
Hi Tim ,

there appears to be an issue with the gpio-buttons script on the new 6.5.1 image.

I tried a fresh install of the image and with no configurations except wifi network set and gpio handler configuration for buttons saved

when I run ./gpio-buttons.py from terminal I get the error 


Code:
2020-05-03 13:59:51 sw_1: pin=26, enabled=1, bounce_time=500, cmd=mpc toggle
2020-05-03 13:59:51 sw_2: pin=27, enabled=1, bounce_time=500, cmd=/var/www/vol.sh up 1
2020-05-03 13:59:51 sw_3: pin=23, enabled=1, bounce_time=500, cmd=/var/www/vol.sh dn 1
Traceback (most recent call last):
 File "./gpio-buttons.py", line 57, in sw_1_event
   subprocess.call(sw_1_cmd)
 File "/usr/lib/python2.7/subprocess.py", line 172, in call
   return Popen(*popenargs, **kwargs).wait()
 File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
   errread, errwrite)
 File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
   raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
 File "./gpio-buttons.py", line 73, in sw_2_event
   subprocess.call(sw_2_cmd)
 File "/usr/lib/python2.7/subprocess.py", line 172, in call
   return Popen(*popenargs, **kwargs).wait()
 File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
   errread, errwrite)
 File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
   raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
 File "./gpio-buttons.py", line 89, in sw_3_event
   subprocess.call(sw_3_cmd)
 File "/usr/lib/python2.7/subprocess.py", line 172, in call
   return Popen(*popenargs, **kwargs).wait()
 File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
   errread, errwrite)
 File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
   raise child_exception
OSError: [Errno 2] No such file or directory
^CTraceback (most recent call last):
 File "./gpio-buttons.py", line 181, in <module>
   time.sleep(1)
any ideas?
#95
(04-29-2020, 07:02 PM)Cardone Wrote: Hello Tim, hello Kent,
Image 6.5.1 newly installed, configured, adjusted and now runs without problems.
PaspDac with Power Management (Thanks to Maartin) Okay ..
Download and install pydPiper (Winstar 80x16 OLED) Okay ..
Now everything fits ...

Wish you a nice evening..
Zeferino

Hey Zeferino, 
I have the Raspdac kit the same as you (love it!) and just in the process of installing 6.5.1, I've never had any problems with getting the 80x16 display to work but no luck with the power management LED, I'll try Maartin's code now and hopefully it will work.
Many thanks,
Mark
#96
Under the SAVE button in GPIO Config

NOTE: Use a comma to delimit arguments in the CMD field. Example: mpc,load,My Playlist
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
#97
(05-03-2020, 01:27 PM)Tim Curtis Wrote: Under the SAVE button in GPIO Config

NOTE: Use a comma to delimit arguments in the CMD field. Example: mpc,load,My Playlist

woops !!

completely overlooked this, my mistake Rolleyes .

I now have 


Code:
mpc, toggle

/var/www/vol.sh, up, 1

/var/www/vol.sh, dn, 1

in the cmd field and all is well again

thanks for your continued help Tim
#98
(04-30-2020, 02:09 PM)bitlab Wrote: Upgrading from 6.4.2 to 6.5.1 I noticed that I can see less albums at once in the album view.

The difference on my systems in available rows x columns thumbnails:
         tablet     pc
6.4.2   3.0x7     3.6x8
6.5.1   2.5x6     2.8x7

Is there a way how you can influence the scaling in 6.5.x ?

Thanks,
Marcel

ps found that changing panel.min.css does the trick (from thumbcols:16vw  to thumbcols:12vw), but not sure if that does have other unwanted side effects ?

(04-30-2020, 08:28 PM)Tim Curtis Wrote:
(04-30-2020, 02:09 PM)bitlab Wrote: Upgrading from 6.4.2 to 6.5.1 I noticed that I can see less albums at once in the album view.

The difference on my systems in available rows x columns thumbnails:
         tablet     pc
6.4.2   3.0x7     3.6x8
6.5.1   2.5x6     2.8x7

Is there a way how you can influence the scaling in 6.5.x ?

Thanks,
Marcel

ps found that changing panel.min.css does the trick (from thumbcols:16vw  to thumbcols:12vw), but not sure if that does have other unwanted side effects ?

What make and model are the tablets and do you know their viewport sizes?

I tested with:


Code:
https://mydevice.io

                 dia     jsres*      dpr   dpi
Samsung S9    |         740x320      3.0   288
Samsung Tab A | 10.5"   1280x720     1.5   144
PC Monitor    |  24"    1920x1200    1.0    96


The following media queries did give a nice result in my case:

Code:
/* phone portrait ~4 col(*/
@media (min-width:320px) and (max-width:470px) and (min-resolution: 180dpi){    
    html, body{
        --thumbcols:23vw;
    }
}

/* phone landscape ~5 col*/
@media (min-width:480px) and (min-resolution: 180dpi) {    
/// defaults are fine
}


/* tablet landscape with large screen (*/
@media (min-width:720px) and (max-resolution: 150dpi) {    
    html, body{
        --thumbcols:18.5vw;
    }
}

/* tablet portrait with large screen (*/
@media (min-width:1280px) and (max-resolution: 150dpi) {    
    html, body{
        --thumbcols:13.6vw;
    }
}

/* pc screen fullhd  ~9 cols */
@media (min-width:1920px) and (max-resolution: 130dpi) {    
    html, body{
       --thumbcols:10.6vw;
   };

}

/* pc screen fullhd+ ~12 cols */
@media (min-width:1921px) and (max-resolution: 130dpi) {    
    html, body{
        --thumbcols:8vw;
    }
}


Thanks,
Marcel
#99
The new album year (range) search is great, only I have a very small issue with.

If I do album search my intention is to lookup music from that range.
Only a lot of albums doesn't show up, due the album is re-release or remastered with a more actual date.


Luckily my entire library is tagged with MusicBrainz, which adds additional tags to it like 'Original Release Date' and Original Year'.
So it was easy to make a small fix so that in playerlib.inc:genLibrary it first checks if there is 'Original Release Date' to use and if not the use 'Date'. 
Patch at the bottom of the post.

But I can image that this solution is to personal (depends on 'Original Release Date' not sure what other taggers use).
Maybe it would be nice if this behaviour could be configured ?

Thanks
Marcel

Code:
www/inc/playerlib.php | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)

diff --git a/www/inc/playerlib.php b/www/inc/playerlib.php
index af1f0ae..a6e61f4 100755
--- a/www/inc/playerlib.php
+++ b/www/inc/playerlib.php
@@ -416,6 +416,32 @@ function genFlatList($sock) {
    }
}

+/*
+  Try to get the oldest date when the track/album is released.
+
+  When a album is remastered and/or released probably you don't want
+  that date, but the original date of release (if present).
+
+  eac        : Date (y)
+  musicbrainz: Date (y-m-d), Original Release Date(y-m-d), Original Year (y)
+
+*/
+function getTrackYear($trackData) {
+    $trackYear = "";
+    
+    if (array_key_exists('OriginalDate', $trackData)) {
+        $trackYear = $trackData['OriginalDate'];
+    }
+    else if (array_key_exists('OriginalReleaseDate', $trackData)) {
+        $trackYear = $trackData['OriginalReleaseDate'];
+    }
+    else if (array_key_exists('Date', $trackData)) {
+        $trackYear = $trackData['Date'];        
+    }
+
+    return $trackYear ? substr($trackYear,0,4) : "";
+}
+
// Generate library array (@chris-rudmin rewrite)
function genLibrary($flat) {
    $lib = array();
@@ -429,7 +455,7 @@ function genLibrary($flat) {
            'artist' => ($flatData['Artist'] ? $flatData['Artist'] : 'Unknown Artist'),
            'album_artist' => $flatData['AlbumArtist'],
            'composer' => ($flatData['Composer'] ? $flatData['Composer'] : 'Composer tag missing'),
-            'year' => substr($flatData['Date'], 0, 4),
+            'year' => getTrackYear($flatData),
            'time' => $flatData['Time'],
            'album' => ($flatData['Album'] ? $flatData['Album'] : 'Unknown Album'),
            'genre' => ($flatData['Genre'] ? $flatData['Genre'] : 'Unknown'),
@@ -511,7 +537,7 @@ function genLibraryUTF8Rep($flat) {
            'artist' => utf8rep(($flatData['Artist'] ? $flatData['Artist'] : 'Unknown Artist')), //r44f add inner brackets
            'album_artist' => utf8rep($flatData['AlbumArtist']),
            'composer' => utf8rep(($flatData['Composer'] ? $flatData['Composer'] : 'Composer tag missing')),
-            'year' => utf8rep(substr($flatData['Date'], 0, 4)),
+            'year' => utf8rep(getTrackYear($flatData)),            
            'time' => utf8rep($flatData['Time']),
            'album' => utf8rep(($flatData['Album'] ? $flatData['Album'] : 'Unknown Album')),
            'genre' => utf8rep(($flatData['Genre'] ? $flatData['Genre'] : 'Unknown')),
This would prolly be a good in general. I'll add to TODO list for 6.6.0 :-)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub


Forum Jump: