LCD Display Info and Monitoring Tool + Kodi install

User avatar
AreaScout
Posts: 1057
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 15 times
Been thanked: 47 times
Contact:

Re: LCD Display Info and Monitoring Tool + Kodi install

Unread post by AreaScout » Sat Apr 13, 2019 7:51 pm

maki26 wrote:
Sat Apr 13, 2019 4:46 am
@AreaScout thank You for updated LCD tool.

I had installed Kodi as well, it's working as should, but now I tried to activate CEC and I'm lost.

1. actvate CEC in boot.ini
2. installed cec-utils
no results

cec-client -l
libCEC version: 4.0.1, compiled on Linux-3.16.0-4-armmp-lpae ... , features: P8_USB, DRM, P8_detect, randr
Found devices: NONE

3. install libcec4_4.0.2.1_xenialubuntu1hk1_armhf.deb
libCEC version: 4.0.2, git revision: v4l2linuxbuild+1-d1f106b~dirty, compiled on Seg Dez 4 16:49:34 UTC 2017 by root@1604_builder_armhf on Linux 3.10.96+ (armv7l), features: P8_USB, DRM, P8_detect, randr, Exynos, Linux
Found devices: NONE

meantime compile whole CEC from https://wiki.odroid.com/odroid-xu4/soft ... rom_source
still no /dev/cec0 adapter, so no cec in kodi as well. Maybe You can gave me some "trick" to get it work.
To use CEC on OpenMediaVault you have to patch and build the kernel, here is a small instruction how to do so, you can build the kernel packages on Windows 10 with Ubuntu bash as well as on any intel based x32/x64 machine running Linux with the build system of armbian

First we need to checkout the build system with

Code: Select all

git clone https://github.com/armbian/build.git
then you have to edit the kernel config to enable CEC config/kernel/linux-odroidxu4-default.config and add this five lines

Code: Select all

CONFIG_MEDIA_CEC_SUPPORT=y
CONFIG_CEC_CORE=y
CONFIG_CEC_NOTIFIER=y
CONFIG_CEC_PLATFORM_DRIVERS=y
CONFIG_VIDEO_SAMSUNG_S5P_CEC=y
and build with:

Code: Select all

./compile.sh BOARD=odroidxu4 BRANCH=default KERNEL_ONLY=yes
Just hit enter whenever the script ask you and if it's finished you have a kernel as well as kernel-headers deb package inside the output directory, this of course can then be installed with dpkg on OMV

I have tested it some month ago and it works, but I still prefer a bluetooth mini keyboard for kodi, it's 100 times easier to handle, for example searching the Netflix database with TV remote and onscreen keyboard is a pain

p.s.: If you enable the "enable adjust display refresh rate" feature inside kodi it will disable CEC that's a "bug" in 4.14 and that feature is a must to enable, the movie quality is way better with it

RG

User avatar
AreaScout
Posts: 1057
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 15 times
Been thanked: 47 times
Contact:

Re: LCD Display Info and Monitoring Tool + Kodi install

Unread post by AreaScout » Tue Apr 16, 2019 8:54 pm

    Just a side note, to make it compile on WSL (Ubuntu) under Windows 10 you need that patch ...

    Code: Select all

    diff --git a/lib/general.sh b/lib/general.sh
    index 138fb1e4..c8997712 100644
    --- a/lib/general.sh
    +++ b/lib/general.sh
    @@ -564,9 +564,9 @@ prepare_host()
                    fi
            fi
    
    -       if grep -qE "(Microsoft|WSL)" /proc/version; then
    -               exit_with_error "Windows subsystem for Linux is not a supported build environment"
    -       fi
    +       #if grep -qE "(Microsoft|WSL)" /proc/version; then
    +       #       exit_with_error "Windows subsystem for Linux is not a supported build environment"
    +       #fi
    
            grep -q i386 <(dpkg --print-foreign-architectures) || dpkg --add-architecture i386
            if systemd-detect-virt -q -c; then
    
    ...and fire up this command before start compiling

    Code: Select all

    sudo update-alternatives --set fakeroot /usr/bin/fakeroot-tcp
    
    RG
    These users thanked the author AreaScout for the post (total 2):
    paramedic233 (Sat Apr 20, 2019 11:18 am) • mad_ady (Sun Apr 21, 2019 9:25 pm)

    User avatar
    AreaScout
    Posts: 1057
    Joined: Sun Jul 07, 2013 3:05 am
    languages_spoken: german, english
    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
    N1, Go, VU5A, Show2, CloudShell2,
    H2, N2, VU7A, VuShell
    Has thanked: 15 times
    Been thanked: 47 times
    Contact:

    Re: LCD Display Info and Monitoring Tool + Kodi install

    Unread post by AreaScout » Sun Apr 21, 2019 8:38 pm

      @all

      I have compiled new Kodi 18.2 packages for Debian Stretch and updated the Kodi install guide

      Have fun !

      User avatar
      odroid
      Site Admin
      Posts: 32121
      Joined: Fri Feb 22, 2013 11:14 pm
      languages_spoken: English
      ODROIDs: ODROID
      Has thanked: 119 times
      Been thanked: 292 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by odroid » Mon Apr 22, 2019 9:55 am

      Nice update.
      This cool NAS-MediaCenter is getting better and better.

      User avatar
      AreaScout
      Posts: 1057
      Joined: Sun Jul 07, 2013 3:05 am
      languages_spoken: german, english
      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
      N1, Go, VU5A, Show2, CloudShell2,
      H2, N2, VU7A, VuShell
      Has thanked: 15 times
      Been thanked: 47 times
      Contact:

      Re: LCD Display Info and Monitoring Tool + Kodi install

      Unread post by AreaScout » Tue Apr 23, 2019 1:04 am

      odroid wrote:
      Mon Apr 22, 2019 9:55 am
      Nice update.
      This cool NAS-MediaCenter is getting better and better.
      Thank you odroid ! :D

      @all

      New version 1.0.8-1 is online:

      cloudshell2 LCD display and monitoring tool 1.0.8

      before installing please remove any older version with sudo dpkg -r cloudshell2-monitoring
        • HDD1/2 values are turning red now if they reach a critical value, the rule is More than 50°C: Too hot -> red, so if the fan runs but HDD1 or 2 temp. value is red, you can visually check that something is wrong
        • CPU Usage, CPU temp. and GPU temp. value also turns red on critical value, >80% on CPU usage and CPU/GPU temp. on >75°C
        • Fixed an overflow where CPU Usage starts to stay always on 100% when CloudShell2 uptime is more then weeks or month ( thanks meveric for testing )
        • Added config file /etc/cloudshell2-monitoring/cloudshell2-monitoring.conf after changing values in there, the tool has to be restarted systemctl restart cloudshell2-monitoring
        • Added current RAID Level indicator, only tested on RAID0/1 and PM, if someone uses SPAN please report if it's working ;)
        • Renamed binary from CloudShell2_lcd to cloudshell2-monitoring and move all executable files from /usr/local/bin to /usr/bin

          Image
            Image
                  Just for Info if you want to get the mails the tool sends in case of errors you don't have to do anything on OMV but i.e on Ubuntu/Debian distros you need package mailutils something like postfix with working smtp setup and an mail alias from root to your personal email address

                  Have fun :ugeek:

                  flyingalbert
                  Posts: 4
                  Joined: Sun Apr 28, 2019 8:10 am
                  languages_spoken: english
                  ODROIDs: ODROID-XU4 ODROID-HC1
                  Has thanked: 0
                  Been thanked: 0
                  Contact:

                  Re: LCD Display Info and Monitoring Tool + Kodi install

                  Unread post by flyingalbert » Sun Apr 28, 2019 9:24 am

                  For people like me using game station console with XU4 and not cloudshell2, is there any support for USB attached drives.

                  I attached external RAID AMS Venus T5c which using JMicron JMB393 to the USB port. I am using OMV image.

                  root@odroid252:~# smartctl --scan
                  /dev/sda -d usbjmicron # /dev/sda [USB JMicron], ATA device
                  /dev/sdc -d usbjmicron # /dev/sdc [USB JMicron], ATA device

                  Just a future request. I am very happy with your display in my Game console display even it does not have any info on my external drives.

                  Great work
                  Albert.

                  User avatar
                  AreaScout
                  Posts: 1057
                  Joined: Sun Jul 07, 2013 3:05 am
                  languages_spoken: german, english
                  ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                  N1, Go, VU5A, Show2, CloudShell2,
                  H2, N2, VU7A, VuShell
                  Has thanked: 15 times
                  Been thanked: 47 times
                  Contact:

                  Re: LCD Display Info and Monitoring Tool + Kodi install

                  Unread post by AreaScout » Sun Apr 28, 2019 4:54 pm

                  flyingalbert wrote:
                  Sun Apr 28, 2019 9:24 am
                  For people like me using game station console with XU4 and not cloudshell2, is there any support for USB attached drives.

                  I attached external RAID AMS Venus T5c which using JMicron JMB393 to the USB port. I am using OMV image.

                  root@odroid252:~# smartctl --scan
                  /dev/sda -d usbjmicron # /dev/sda [USB JMicron], ATA device
                  /dev/sdc -d usbjmicron # /dev/sdc [USB JMicron], ATA device

                  Just a future request. I am very happy with your display in my Game console display even it does not have any info on my external drives.

                  Great work
                  Albert.
                  Hello, I have made a test program to print controller information because with my cloudshell2-monitoring tool I have "branded" the tool only for JMS56X controllers.

                  So please can you run this from command line and post the output here in order to add support for other jmicron controllers too ?

                  Code: Select all

                  wget https://www.areascout.at/jmraid
                  sudo chmod 755 jmraid
                  ./jmraid /dev/sda
                  
                  RG

                  flyingalbert
                  Posts: 4
                  Joined: Sun Apr 28, 2019 8:10 am
                  languages_spoken: english
                  ODROIDs: ODROID-XU4 ODROID-HC1
                  Has thanked: 0
                  Been thanked: 0
                  Contact:

                  Re: LCD Display Info and Monitoring Tool + Kodi install

                  Unread post by flyingalbert » Mon Apr 29, 2019 1:18 am

                  JMicron RAID info

                  Code: Select all

                  Check "/dev/sda" ...
                    
                    Get chip info ...
                    
                      Firmware version = 09.87.55.80
                      Manufacturer     = Sunnytek Information            
                      Product name     = Hardware RAID                   
                      Serial number    = 1
                    
                    Get SATA info ...
                    
                      SATA Port 0
                      
                        Model name        = Hitachi HDE721010SLA330                 
                        Serial number     =       STN607MS18VM2K
                        Capacity          = 931.50 GB
                        Port type         = 2 (RAID Disk)
                        Port speed        = 2 (Gen 2)
                        Page 0 state      = 2 (Hooked to PM)
                        RAID index        = 0
                        RAID member index = 2
                        Port              = 15
                      
                      SATA Port 1
                      
                        Model name        = ST1000LM024 HN-M101MBB                  
                        Serial number     = S2ZPJ9CD480339      
                        Capacity          = 931.50 GB
                        Port type         = 2 (RAID Disk)
                        Port speed        = 2 (Gen 2)
                        Page 0 state      = 2 (Hooked to PM)
                        RAID index        = 0
                        RAID member index = 1
                        Port              = 15
                    
                    Get RAID port 0 info ...
                    
                      Model name       = SNT H/W CLONE                           
                      Serial number    = VTBMZS591BKY0263GWOR
                      Port state       = 1 
                      Level            = 4 (CLONE)
                      Capacity         = 931.47 GB
                      State            = 3 (Normal)
                      Member count     = 3
                      Rebuild priority = 4096 (Medium)
                      Standby timer    = 60 sec
                      Password         = 
                      Rebuild progress = 0.00 %
                      
                      Member 0
                      
                        Ready         = 1
                        LBA48 support = 1
                        SATA port     = 2
                        SATA page     = 0
                        SATA base     = 0
                        SATA size     = 931.47 GB
                      
                      Member 1
                      
                        Ready         = 1
                        LBA48 support = 1
                        SATA port     = 1
                        SATA page     = 0
                        SATA base     = 0
                        SATA size     = 931.47 GB
                      
                      Member 2
                      
                        Ready         = 1
                        LBA48 support = 1
                        SATA port     = 0
                        SATA page     = 0
                        SATA base     = 0
                        SATA size     = 931.47 GB
                    
                    Get RAID port 1 info ...
                    
                      Model name       = SNT H/W LARGE                           
                      Serial number    = C00TC54WAR7PUHE8GLZE
                      Port state       = 1 
                      Level            = 2 (JBOD / LARGE)
                      Capacity         = 931.47 GB
                      State            = 3 (Normal)
                      Member count     = 1
                      Rebuild priority = 4096 (Medium)
                      Standby timer    = 60 sec
                      Password         = 
                      Rebuild progress = 0.00 %
                      
                      Member 0
                      
                        Ready         = 1
                        LBA48 support = 1
                        SATA port     = 3
                        SATA page     = 0
                        SATA base     = 0
                        SATA size     = 931.47 GB
                    
                    Get SMART info (disk 0) ...
                    
                        1 | 000B |  16 | 100 | 100 | 000000000000 |               0 | Raw Read Error Rate
                        2 | 0005 |  54 | 132 | 132 | 000000000072 |             114 | Throughput Performance
                        3 | 0007 |  24 | 127 | 127 | 0000000001CE |             462 | Spin Up Time
                        4 | 0012 |   0 |  99 |  99 | 0000000012C1 |            4801 | Start/Stop Count
                        5 | 0033 |   5 | 100 | 100 | 000000000002 |               2 | Reallocated Sectors Count
                        7 | 000B |  67 | 100 | 100 | 000000000000 |               0 | Seek Error Rate
                        8 | 0005 |  20 | 123 | 123 | 000000000022 |              34 | Seek Time Performance
                        9 | 0012 |   0 |  98 |  98 | 000000003FBA |           16314 | Power-On Time Count
                       10 | 0013 |  60 | 100 | 100 | 000000000000 |               0 | Spin Retry Count
                       12 | 0032 |   0 | 100 | 100 | 000000000061 |              97 | Drive Power Cycle Count
                      192 | 0032 |   0 |  96 |  96 | 0000000012EB |            4843 | Power off Retract Cycle
                      193 | 0012 |   0 |  96 |  96 | 0000000012EB |            4843 | Load/Unload Cycle Count
                      194 | 0002 |   0 | 171 | 171 | 000000000023 |              35 | HDD Temperature
                      196 | 0032 |   0 | 100 | 100 | 000000000002 |               2 | Reallocation Event Count
                      197 | 0022 |   0 | 100 | 100 | 000000000000 |               0 | Current Pending Sector Count
                      198 | 0008 |   0 | 100 | 100 | 000000000000 |               0 | Off-Line Uncorrectable Sector Count
                      199 | 000A |   0 | 200 | 200 | 000000000000 |               0 | Ultra ATA CRC Error Count
                    
                    Get SMART info (disk 1) ...
                    
                        1 | 002F |  51 | 100 | 100 | 000000000000 |               0 | Raw Read Error Rate
                        2 | 0026 |   0 | 252 | 252 | 000000000000 |               0 | Throughput Performance
                        3 | 0023 |  25 |  86 |  86 | 00000000116B |            4459 | Spin Up Time
                        4 | 0032 |   0 |  99 |  99 | 000000000756 |            1878 | Start/Stop Count
                        5 | 0033 |  10 | 252 | 252 | 000000000000 |               0 | Reallocated Sectors Count
                        7 | 002E |  51 | 252 | 252 | 000000000000 |               0 | Seek Error Rate
                        8 | 0024 |  15 | 252 | 252 | 000000000000 |               0 | Seek Time Performance
                        9 | 0032 |   0 | 100 | 100 | 0000000001CF |             463 | Power-On Time Count
                       10 | 0032 |  51 | 252 | 252 | 000000000000 |               0 | Spin Retry Count
                       11 | 0032 |   0 | 100 | 100 | 000000000003 |               3 | Drive Calibration Retry Count
                       12 | 0032 |   0 | 100 | 100 | 0000000000AB |             171 | Drive Power Cycle Count
                      191 | 0022 |   0 | 100 | 100 | 000000000001 |               1 | ?
                      192 | 0022 |   0 | 252 | 252 | 000000000000 |               0 | Power off Retract Cycle
                      194 | 0002 |   0 |  64 |  52 | 000000000020 |              32 | HDD Temperature
                      195 | 003A |   0 | 100 | 100 | 000000000000 |               0 | Hardware ECC Recovered
                      196 | 0032 |   0 | 252 | 252 | 000000000000 |               0 | Reallocation Event Count
                      197 | 0032 |   0 | 252 | 252 | 000000000000 |               0 | Current Pending Sector Count
                      198 | 0030 |   0 | 252 | 252 | 000000000000 |               0 | Off-Line Uncorrectable Sector Count
                      199 | 0036 |   0 | 200 | 200 | 000000000000 |               0 | Ultra ATA CRC Error Count
                      200 | 002A |   0 | 100 | 100 | 000000000011 |              17 | Write Error Rate
                      223 | 0032 |   0 | 100 | 100 | 000000000003 |               3 | ?
                      225 | 0032 |   0 |  99 |  99 | 000000002E07 |           11783 | ?

                  flyingalbert
                  Posts: 4
                  Joined: Sun Apr 28, 2019 8:10 am
                  languages_spoken: english
                  ODROIDs: ODROID-XU4 ODROID-HC1
                  Has thanked: 0
                  Been thanked: 0
                  Contact:

                  Re: LCD Display Info and Monitoring Tool + Kodi install

                  Unread post by flyingalbert » Mon Apr 29, 2019 4:37 am

                  Forgot to mention, I set the dip switch to PM. But the RAID port 0 is "CLONE" and the RAID port 1 is "JBOD/LARGE". They were created manually by JMicron HW Manager software, hence override the dip switch. Sorry so complicate.

                  User avatar
                  AreaScout
                  Posts: 1057
                  Joined: Sun Jul 07, 2013 3:05 am
                  languages_spoken: german, english
                  ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                  N1, Go, VU5A, Show2, CloudShell2,
                  H2, N2, VU7A, VuShell
                  Has thanked: 15 times
                  Been thanked: 47 times
                  Contact:

                  Re: LCD Display Info and Monitoring Tool + Kodi install

                  Unread post by AreaScout » Mon Apr 29, 2019 2:36 pm

                  @flyingalbert

                  Thank you for the RAID info posted, but I have to withdraw my plan to make support for other RAID controllers, it does have support for two RAID ports and I don't have room in my display layout to make all this information visible

                  RG

                  flyingalbert
                  Posts: 4
                  Joined: Sun Apr 28, 2019 8:10 am
                  languages_spoken: english
                  ODROIDs: ODROID-XU4 ODROID-HC1
                  Has thanked: 0
                  Been thanked: 0
                  Contact:

                  Re: LCD Display Info and Monitoring Tool + Kodi install

                  Unread post by flyingalbert » Wed May 01, 2019 1:25 pm

                  That's OK. Again, Great work!

                  Albert.

                  maki26
                  Posts: 8
                  Joined: Sat Jan 19, 2019 4:25 am
                  languages_spoken: english, polish
                  ODROIDs: XU4 + Cloudshell 2
                  Has thanked: 2 times
                  Been thanked: 0
                  Contact:

                  Re: LCD Display Info and Monitoring Tool + Kodi install

                  Unread post by maki26 » Thu May 02, 2019 6:46 pm

                  AreaScout wrote:
                  Sat Apr 13, 2019 7:51 pm
                  maki26 wrote:
                  Sat Apr 13, 2019 4:46 am
                  @AreaScout thank You for updated LCD tool.

                  I had installed Kodi as well, it's working as should, but now I tried to activate CEC and I'm lost.

                  1. actvate CEC in boot.ini
                  2. installed cec-utils
                  no results

                  cec-client -l
                  libCEC version: 4.0.1, compiled on Linux-3.16.0-4-armmp-lpae ... , features: P8_USB, DRM, P8_detect, randr
                  Found devices: NONE

                  3. install libcec4_4.0.2.1_xenialubuntu1hk1_armhf.deb
                  libCEC version: 4.0.2, git revision: v4l2linuxbuild+1-d1f106b~dirty, compiled on Seg Dez 4 16:49:34 UTC 2017 by root@1604_builder_armhf on Linux 3.10.96+ (armv7l), features: P8_USB, DRM, P8_detect, randr, Exynos, Linux
                  Found devices: NONE

                  meantime compile whole CEC from https://wiki.odroid.com/odroid-xu4/soft ... rom_source
                  still no /dev/cec0 adapter, so no cec in kodi as well. Maybe You can gave me some "trick" to get it work.

                  Code: Select all

                  git clone https://github.com/armbian/build.git
                  
                  then you have to edit the kernel config to enable CEC config/kernel/linux-odroidxu4-default.config and add this five lines

                  Code: Select all

                  CONFIG_MEDIA_CEC_SUPPORT=y
                  CONFIG_CEC_CORE=y
                  CONFIG_CEC_NOTIFIER=y
                  CONFIG_CEC_PLATFORM_DRIVERS=y
                  CONFIG_VIDEO_SAMSUNG_S5P_CEC=y
                  
                  and build with:

                  Code: Select all

                  ./compile.sh BOARD=odroidxu4 BRANCH=default KERNEL_ONLY=yes
                  
                  Just hit enter whenever the script ask you and if it's finished you have a kernel as well as kernel-headers deb package inside the output directory, this of course can then be installed with dpkg on OMV

                  I have tested it some month ago and it works, but I still prefer a bluetooth mini keyboard for kodi, it's 100 times easier to handle, for example searching the Netflix database with TV remote and onscreen keyboard is a pain

                  p.s.: If you enable the "enable adjust display refresh rate" feature inside kodi it will disable CEC that's a "bug" in 4.14 and that feature is a must to enable, the movie quality is way better with it

                  RG
                  Thanks @AreaScout but I'm to tin

                  I had a bit of time so build kernel on my favorite system Lubuntu, then flashed my odroid with this all packages.
                  Then I disabled Kodi refresh ( system -> video -> playback -> adjust refresh rate

                  after reboot in Kodi I've seen message Pulse-CEC couldn't connect to adapter

                  Code: Select all

                  root@Odroid-XU4:/srv/dev-disk-by-label-Raid/Programy/odroid# cec-client -l
                  libCEC version: 4.0.2, git revision: v4l2linuxbuild+1-d1f106b~dirty, compiled on Seg Dez  4 16:49:34 UTC 2017 by root@1604_builder_armhf on Linux 3.10.96+ (armv7l), features: P8_USB, DRM, P8_detect, randr, Exynos, Linux
                  Found devices: 1
                  
                  device:              1
                  com port:            Linux
                  vendor id:           0000
                  product id:          0000
                  firmware version:    0
                  type:                Linux
                  


                  I think in hardkernel image ( ubuntu) adapter had different name.

                  I have no idea what I did wrong.

                  P.S.
                  I kernel build procedure I've used default settings. ( there was few questions during build procedure, so I clicked Enter always.

                  Any idea??

                  User avatar
                  AreaScout
                  Posts: 1057
                  Joined: Sun Jul 07, 2013 3:05 am
                  languages_spoken: german, english
                  ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                  N1, Go, VU5A, Show2, CloudShell2,
                  H2, N2, VU7A, VuShell
                  Has thanked: 15 times
                  Been thanked: 47 times
                  Contact:

                  Re: LCD Display Info and Monitoring Tool + Kodi install

                  Unread post by AreaScout » Thu May 02, 2019 10:38 pm

                    Ok first of all, do you have a /dev/cec0 device ? Secondly you can check if you have multible libcec.so the one you have compiled should be in /usr/lib/arm-linux-gnueabihf

                    And on what distro did you try it ? OMV isn't it ?

                    RG

                    maki26
                    Posts: 8
                    Joined: Sat Jan 19, 2019 4:25 am
                    languages_spoken: english, polish
                    ODROIDs: XU4 + Cloudshell 2
                    Has thanked: 2 times
                    Been thanked: 0
                    Contact:

                    Re: LCD Display Info and Monitoring Tool + Kodi install

                    Unread post by maki26 » Fri May 03, 2019 4:52 am

                    Thank You @AreaScout for answer
                    It's OMV distro ( from Yours 1st post)
                    /dev/cec0 exist

                    libcec.so.4
                    libcec.so.4.0.2 in right folder

                    Will try now to reinstall cec staff

                    User avatar
                    AreaScout
                    Posts: 1057
                    Joined: Sun Jul 07, 2013 3:05 am
                    languages_spoken: german, english
                    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                    N1, Go, VU5A, Show2, CloudShell2,
                    H2, N2, VU7A, VuShell
                    Has thanked: 15 times
                    Been thanked: 47 times
                    Contact:

                    Re: LCD Display Info and Monitoring Tool + Kodi install

                    Unread post by AreaScout » Fri May 03, 2019 3:51 pm

                      Ok, if /dev/cec0 is there most of the way is done :)

                      I also tried it again on my CloudShell2 because it is some month ago I did it the last time, so I installed the compiled kernel packages with

                      Code: Select all

                      dpkg -i linux-image-odroidxu4_5.78_armhf.deb
                      dpkg -i linux-dtb-odroidxu4_5.78_armhf.deb
                      dpkg -i linux-headers-odroidxu4_5.78_armhf.deb
                      
                      then I rebooted and build libcec

                      Code: Select all

                      git clone https://github.com/Pulse-Eight/libcec.git
                      cd libcec
                      wget -O libcec.patch https://github.com/Kwiboo/libcec/commit/48255b7d4e1cba1050b8abfbd03be37c0737e832.patch
                      git apply libcec.patch
                      mkdir build
                      cd build
                      cmake -DHAVE_LINUX_API=1 ..
                      make -j7
                      
                      after building was finished I copied the library over to /usr/lib/arm-linux-gnueabihf with

                      Code: Select all

                      sudo cp src/libcec/libcec.so /usr/lib/arm-linux-gnueabihf/libcec.so.4.0.1
                      
                      switched on my TV to start Kodi and Eh voilà, Kodi reported that cec adapter is successfully connected

                      P.S: My TV has 4 HDMI ports but only HDMI port 1 is able to do CEC, maybe that helps too for troubleshooting the problem

                      P.P.S: Whenever Kodi does switch display resolution, CEC adapter connection is lost and not reestablished, that's a feature not implemented in 4.14, that could be "Adjust display refresh rate" feature or just manually change the Display resolution of Kodi within the settings menu, either a reboot is needed or restart kodi if I remember correctly

                      RG

                      User avatar
                      AreaScout
                      Posts: 1057
                      Joined: Sun Jul 07, 2013 3:05 am
                      languages_spoken: german, english
                      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                      N1, Go, VU5A, Show2, CloudShell2,
                      H2, N2, VU7A, VuShell
                      Has thanked: 15 times
                      Been thanked: 47 times
                      Contact:

                      Re: LCD Display Info and Monitoring Tool + Kodi install

                      Unread post by AreaScout » Sat May 04, 2019 9:01 pm

                        Well I forgot that the /dev/cec0 device node also needs some special permissions and you should add a udev rule for it

                        so as root you should issue this command

                        echo 'KERNEL=="cec0", MODE="0660", GROUP="video"' > /etc/udev/rules.d/51-cec0.rules

                        But because you did not reply anymore I guess it's working now for you :lol:

                        RG

                        maki26
                        Posts: 8
                        Joined: Sat Jan 19, 2019 4:25 am
                        languages_spoken: english, polish
                        ODROIDs: XU4 + Cloudshell 2
                        Has thanked: 2 times
                        Been thanked: 0
                        Contact:

                        Re: LCD Display Info and Monitoring Tool + Kodi install

                        Unread post by maki26 » Sun May 05, 2019 8:13 pm

                        Hi @AreaScout

                        This morning it wasn't working. What I did more:

                        Code: Select all

                        git clone https://github.com/Pulse-Eight/platform
                        cd platform/build
                        cmake ..
                        make -j8
                        make install
                        
                        cd libcec/build
                        cmake -DHAVE_EXYNOS_API=1 ..
                        make -j8
                        make install
                        ldconfig
                        
                        and in case rights ( You wrote before echo ... )
                        
                        
                        after reboot kodi was with cec activated.

                        Thanbk You for Your help

                        User avatar
                        AreaScout
                        Posts: 1057
                        Joined: Sun Jul 07, 2013 3:05 am
                        languages_spoken: german, english
                        ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                        N1, Go, VU5A, Show2, CloudShell2,
                        H2, N2, VU7A, VuShell
                        Has thanked: 15 times
                        Been thanked: 47 times
                        Contact:

                        Re: LCD Display Info and Monitoring Tool + Kodi install

                        Unread post by AreaScout » Mon May 06, 2019 3:06 pm

                        maki26 wrote:
                        Sun May 05, 2019 8:13 pm
                        Hi @AreaScout

                        This morning it wasn't working. What I did more:

                        Code: Select all

                        git clone https://github.com/Pulse-Eight/platform
                        cd platform/build
                        cmake ..
                        make -j8
                        make install
                        
                        cd libcec/build
                        cmake -DHAVE_EXYNOS_API=1 ..
                        make -j8
                        make install
                        ldconfig
                        
                        and in case rights ( You wrote before echo ... )
                        
                        
                        after reboot kodi was with cec activated.

                        Thanbk You for Your help
                        You are welcome, good to hear that it works now :) I am super happy with my CS2 MediaCenter, not only that I can store my photos from holidays, documents and a database backup on an NAS with redundant drives, I use it nearly on a daily basis as MediaCenter to watch series on Netflix, watch photos or just look the weather forecast and have the electronic and hardware monitored by my cloudshell2-monitoring tool beautifully on the LCD of the CS2

                        RG
                        These users thanked the author AreaScout for the post:
                        maki26 (Tue May 07, 2019 4:51 am)

                        User avatar
                        AreaScout
                        Posts: 1057
                        Joined: Sun Jul 07, 2013 3:05 am
                        languages_spoken: german, english
                        ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                        N1, Go, VU5A, Show2, CloudShell2,
                        H2, N2, VU7A, VuShell
                        Has thanked: 15 times
                        Been thanked: 47 times
                        Contact:

                        Re: LCD Display Info and Monitoring Tool + Kodi install

                        Unread post by AreaScout » Wed May 08, 2019 3:20 pm

                        @all

                        New version 1.0.9-1 is online:

                        cloudshell2 LCD display and monitoring tool 1.0.9

                        New config file ! before installing please remove any older version with sudo dpkg -r cloudshell2-monitoring
                          • Add color themes, you can now choose from five different background color themes, enable inside /etc/cloudshell2-monitoring/cloudshell2-monitoring.conf config file, blue is default
                          blue
                          Image

                          grey
                          Image

                          sepia
                          Image

                          red
                          Image

                          teal
                          Image

                          P.S.: To apply our changes you have to issue a restart of the tool with sudo systemctl restart cloudshell2-monitoring

                          Have fun
                          Last edited by AreaScout on Wed May 08, 2019 3:26 pm, edited 1 time in total.

                          User avatar
                          odroid
                          Site Admin
                          Posts: 32121
                          Joined: Fri Feb 22, 2013 11:14 pm
                          languages_spoken: English
                          ODROIDs: ODROID
                          Has thanked: 119 times
                          Been thanked: 292 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by odroid » Wed May 08, 2019 3:21 pm

                          Fantastic!

                          I love the teal color theme!

                          User avatar
                          rooted
                          Posts: 6610
                          Joined: Fri Dec 19, 2014 9:12 am
                          languages_spoken: english
                          Location: Gulf of Mexico, US
                          Has thanked: 104 times
                          Been thanked: 20 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by rooted » Thu May 09, 2019 12:19 pm

                          How do you change Celsius to Fahrenheit? Where is the config file stored? I don't use raid, any way to disable this line?

                          My CPU and GPU temperatures read the same number also.

                          User avatar
                          mad_ady
                          Posts: 6527
                          Joined: Wed Jul 15, 2015 5:00 pm
                          languages_spoken: english
                          ODROIDs: XU4, C1+, C2, N1, H2, N2
                          Location: Bucharest, Romania
                          Has thanked: 163 times
                          Been thanked: 125 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by mad_ady » Thu May 09, 2019 2:30 pm

                          @rooted: Why not Kelvin? It's a less arbitrary scale

                          User avatar
                          AreaScout
                          Posts: 1057
                          Joined: Sun Jul 07, 2013 3:05 am
                          languages_spoken: german, english
                          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                          N1, Go, VU5A, Show2, CloudShell2,
                          H2, N2, VU7A, VuShell
                          Has thanked: 15 times
                          Been thanked: 47 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by AreaScout » Thu May 09, 2019 3:20 pm

                          rooted wrote:
                          Thu May 09, 2019 12:19 pm
                          How do you change Celsius to Fahrenheit? Where is the config file stored? I don't use raid, any way to disable this line?

                          My CPU and GPU temperatures read the same number also.
                          Hi rooted

                          All temperature Attributes (Kernel, HDD) generally has its raw value equal to the temperature in Celsius therefore I have not planed to support Fahrenheit, however I will probably add grafana support in the next version, here you can make long term records of HDD, CPU, GPU temperature and CPU usage, the values reported can be easily show in °F

                          CPU and GPU temp are often the same as they are on the same SoC but when you add CPU load or GPU load the story is different ;)
                          rooted wrote:
                          Thu May 09, 2019 12:19 pm
                          Where is the config file stored?
                          First post or two post above of yours there is a hint :lol: ;)

                          RG

                          User avatar
                          AreaScout
                          Posts: 1057
                          Joined: Sun Jul 07, 2013 3:05 am
                          languages_spoken: german, english
                          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                          N1, Go, VU5A, Show2, CloudShell2,
                          H2, N2, VU7A, VuShell
                          Has thanked: 15 times
                          Been thanked: 47 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by AreaScout » Thu May 09, 2019 5:51 pm

                          rooted wrote:
                          Thu May 09, 2019 12:19 pm
                          I don't use raid, any way to disable this line?
                          Sorry I forgot to answer this question :roll:

                          You don't want to delete this line, because even if you don't use RAID, your disk connected on first SATA port of the RAID controller is monitored for it's health, so you can get "Broken" or "Normal" state from it ! :)

                          And even if the line say's RAID State, it's just what the RAID controller is reporting in PM mode, in this mode the first disk is always reported as RAID 0 but member count 1, see:

                          Code: Select all

                          Get RAID port 0 info ...
                          
                          Model name = TOSHIBA DT01ACA300 
                          Serial number = 37A5J6YAS
                          Port state = 129 
                          Level = 0 (RAID 0)
                          Capacity = 2794.50 GB
                          State = 3 (Normal)
                          Member count = 1
                          Rebuild priority = 4096 (Medium)
                          Standby timer = 0 sec
                          Password = 
                          Rebuild progress = 0.00 %
                          


                          RG

                          User avatar
                          rooted
                          Posts: 6610
                          Joined: Fri Dec 19, 2014 9:12 am
                          languages_spoken: english
                          Location: Gulf of Mexico, US
                          Has thanked: 104 times
                          Been thanked: 20 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by rooted » Fri May 10, 2019 12:17 am

                          Yeah it says broken, is that the bottom or top drive in the CloudShell? One of my drives is going bad but the other is good.

                          And the line above looks like this in Tapatalk, so no information about the config location.

                          Image

                          I get no HD temperatures either.

                          I will add Fahrenheit myself when I get time. It certainly is a nice looking display but it only works fully under very specific circumstances.

                          User avatar
                          AreaScout
                          Posts: 1057
                          Joined: Sun Jul 07, 2013 3:05 am
                          languages_spoken: german, english
                          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                          N1, Go, VU5A, Show2, CloudShell2,
                          H2, N2, VU7A, VuShell
                          Has thanked: 15 times
                          Been thanked: 47 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by AreaScout » Fri May 10, 2019 12:38 am

                          rooted wrote:
                          Fri May 10, 2019 12:17 am
                          Yeah it says broken, is that the bottom or top drive in the CloudShell? One of my drives is going bad but the other is good.

                          I get no HD temperatures either.
                          Broken ! wow I have never seen it, Rebuilding was the only one different from Normal I have seen, can you run cloudshell2-monitoring from console with the -i switch and post the output here, I wanna see that 8-)
                          rooted wrote:
                          Fri May 10, 2019 12:17 am
                          I will add Fahrenheit myself when I get time. It certainly is a nice looking display but it only works fully under very specific circumstances.
                          No that's not true, well it was, I forgot some package dependencies and other small errors, but now it's pretty good tested on Debian and Ubuntu and the only circumstance I know now is it has to run on kernel 4.14

                          Other then that, thank you for the compliment, btw. config is under /etc/cloudshell2-monitoring/cloudshell2-monitoring.conf if you can't see it from Tapatalk

                          RG

                          User avatar
                          rooted
                          Posts: 6610
                          Joined: Fri Dec 19, 2014 9:12 am
                          languages_spoken: english
                          Location: Gulf of Mexico, US
                          Has thanked: 104 times
                          Been thanked: 20 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by rooted » Fri May 10, 2019 2:17 am

                          I will show you the output when I get home.

                          User avatar
                          rooted
                          Posts: 6610
                          Joined: Fri Dec 19, 2014 9:12 am
                          languages_spoken: english
                          Location: Gulf of Mexico, US
                          Has thanked: 104 times
                          Been thanked: 20 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by rooted » Fri May 10, 2019 11:47 am


                          AreaScout wrote:Broken ! wow I have never seen it, Rebuilding was the only one different from Normal I have seen, can you run cloudshell2-monitoring from console with the -i switch and post the output here, I wanna see that 8-)

                          Code: Select all

                          root@cloudshell2:/usr/bin# ./cloudshell2-monitoring -i
                          can't open device: No such file or directory
                          can't open device: No such file or directory
                          can't open device: No such file or directory
                          can't open device: No such file or directory
                          
                          Check "/dev/sdf" ...
                          can't open device: No such file or directory
                          
                            jmraid_open failed
                          sizeof 4
                          
                          I'm guessing the code to this isn't available? I don't like Celsius and 24h clocks.

                          User avatar
                          AreaScout
                          Posts: 1057
                          Joined: Sun Jul 07, 2013 3:05 am
                          languages_spoken: german, english
                          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                          N1, Go, VU5A, Show2, CloudShell2,
                          H2, N2, VU7A, VuShell
                          Has thanked: 15 times
                          Been thanked: 47 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by AreaScout » Fri May 10, 2019 2:01 pm

                          rooted wrote:
                          Fri May 10, 2019 11:47 am

                          Code: Select all

                          root@cloudshell2:/usr/bin# ./cloudshell2-monitoring -i
                          can't open device: No such file or directory
                          can't open device: No such file or directory
                          can't open device: No such file or directory
                          can't open device: No such file or directory
                          
                          Check "/dev/sdf" ...
                          can't open device: No such file or directory
                          
                            jmraid_open failed
                          
                          I'm guessing the code to this isn't available? I don't like Celsius and 24h clocks.
                          No, code isn't available yet, the tool is searching for the RAID controller from /dev/sda to /dev/sdf, in which circumstance there is no RAID controller to find on this device nodes ?

                          RG

                          User avatar
                          AreaScout
                          Posts: 1057
                          Joined: Sun Jul 07, 2013 3:05 am
                          languages_spoken: german, english
                          ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                          N1, Go, VU5A, Show2, CloudShell2,
                          H2, N2, VU7A, VuShell
                          Has thanked: 15 times
                          Been thanked: 47 times
                          Contact:

                          Re: LCD Display Info and Monitoring Tool + Kodi install

                          Unread post by AreaScout » Sat May 11, 2019 5:05 am

                            grafana preview :) pretty cool !
                              2019-05-10_1.png
                              2019-05-10_1.png (266.17 KiB) Viewed 2720 times
                                https://snapshot.raintank.io/dashboard/ ... lh?orgId=2

                                RG

                                User avatar
                                rooted
                                Posts: 6610
                                Joined: Fri Dec 19, 2014 9:12 am
                                languages_spoken: english
                                Location: Gulf of Mexico, US
                                Has thanked: 104 times
                                Been thanked: 20 times
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Unread post by rooted » Sat May 11, 2019 2:20 pm

                                AreaScout wrote:
                                rooted wrote:
                                Fri May 10, 2019 11:47 am

                                Code: Select all

                                root@cloudshell2:/usr/bin# ./cloudshell2-monitoring -i
                                can't open device: No such file or directory
                                can't open device: No such file or directory
                                can't open device: No such file or directory
                                can't open device: No such file or directory
                                
                                Check "/dev/sdf" ...
                                can't open device: No such file or directory
                                
                                  jmraid_open failed
                                
                                I'm guessing the code to this isn't available? I don't like Celsius and 24h clocks.
                                No, code isn't available yet, the tool is searching for the RAID controller from /dev/sda to /dev/sdf, in which circumstance there is no RAID controller to find on this device nodes ?

                                RG
                                Turned out to be my firmware, I was running the original shipping firmware JMS561b_v8.0.3.7 and you must be using at least v158.001.000.001 or greater.

                                User avatar
                                AreaScout
                                Posts: 1057
                                Joined: Sun Jul 07, 2013 3:05 am
                                languages_spoken: german, english
                                ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                N1, Go, VU5A, Show2, CloudShell2,
                                H2, N2, VU7A, VuShell
                                Has thanked: 15 times
                                Been thanked: 47 times
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Unread post by AreaScout » Sat May 11, 2019 2:39 pm

                                rooted wrote:
                                Sat May 11, 2019 2:20 pm
                                Turned out to be my firmware, I was running the original shipping firmware JMS561b_v8.0.3.7 and you must be using at least v158.001.000.001 or greater.
                                Cool that it works now 8-) You can start the tool from console with the -i switch too to get Firmware version information even if the tool is running

                                RG and I hope you have fun with it !
                                These users thanked the author AreaScout for the post:
                                rooted (Sun May 12, 2019 8:49 am)

                                User avatar
                                rooted
                                Posts: 6610
                                Joined: Fri Dec 19, 2014 9:12 am
                                languages_spoken: english
                                Location: Gulf of Mexico, US
                                Has thanked: 104 times
                                Been thanked: 20 times
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Unread post by rooted » Sun May 12, 2019 1:26 am

                                AreaScout wrote:
                                rooted wrote:
                                Sat May 11, 2019 2:20 pm
                                Turned out to be my firmware, I was running the original shipping firmware JMS561b_v8.0.3.7 and you must be using at least v158.001.000.001 or greater.
                                Cool that it works now 8-) You can start the tool from console with the -i switch too to get Firmware version information even if the tool is running

                                RG and I hope you have fun with it !
                                It's really nice, I hope the source will be available so I can make some changes to make it more friendly to my set-up.

                                Thanks for sharing.

                                User avatar
                                AreaScout
                                Posts: 1057
                                Joined: Sun Jul 07, 2013 3:05 am
                                languages_spoken: german, english
                                ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                N1, Go, VU5A, Show2, CloudShell2,
                                H2, N2, VU7A, VuShell
                                Has thanked: 15 times
                                Been thanked: 47 times
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Unread post by AreaScout » Sun May 12, 2019 5:01 pm

                                rooted wrote:
                                Sun May 12, 2019 1:26 am
                                It's really nice, I hope the source will be available so I can make some changes to make it more friendly to my set-up.

                                Thanks for sharing.
                                Thank you :ugeek: Well most peoples only want to install it, but yes I think on some point I will share it

                                @all

                                here is an grafana diagram playing a movie starting at 8 PM

                                https://snapshot.raintank.io/dashboard/ ... mB?orgId=2

                                and uploading a 10GB file onto Cloudshell2

                                https://snapshot.raintank.io/dashboard/ ... m9ijwamV7q

                                And a beautiful designed dashboard with some gauges

                                https://snapshot.raintank.io/dashboard/ ... 2&from=-3h

                                RG
                                Last edited by AreaScout on Sun May 12, 2019 11:20 pm, edited 1 time in total.
                                These users thanked the author AreaScout for the post:
                                rooted (Sun May 12, 2019 10:57 pm)

                                User avatar
                                rooted
                                Posts: 6610
                                Joined: Fri Dec 19, 2014 9:12 am
                                languages_spoken: english
                                Location: Gulf of Mexico, US
                                Has thanked: 104 times
                                Been thanked: 20 times
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Unread post by rooted » Sun May 12, 2019 11:01 pm

                                Most of the world uses 24 hour time and Celsius, but here in the US we use 12 hour clocks and Fahrenheit. So your set-up is optimal for most of the world, just not my country. I don't expect you to make the changes ;)

                                I really like what your doing with the graphs also.

                                User avatar
                                AreaScout
                                Posts: 1057
                                Joined: Sun Jul 07, 2013 3:05 am
                                languages_spoken: german, english
                                ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                N1, Go, VU5A, Show2, CloudShell2,
                                H2, N2, VU7A, VuShell
                                Has thanked: 15 times
                                Been thanked: 47 times
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Unread post by AreaScout » Sun May 12, 2019 11:36 pm

                                rooted wrote:
                                Sun May 12, 2019 11:01 pm
                                Most of the world uses 24 hour time and Celsius, but here in the US we use 12 hour clocks and Fahrenheit. So your set-up is optimal for most of the world, just not my country. I don't expect you to make the changes ;)

                                I really like what your doing with the graphs also.
                                I respect that rooted ! thank you, however the next update will have 12h clock, Fahrenheit has to wait a little bit, it's a lot of work to change this because I use a graphic layout with fixed unit symbols, I have to change/double it for Fahrenheit other then that I don't know if there is enough space left, especial for the HDD temperature, it could be that I reach the border with three digits a.s.o

                                But one thing is for sure, with the upcoming grafana support you can do crazy beautiful things, program separate alarms and notifiers, change Celsius units to Fahrenheit etc. etc. :ugeek:

                                RG
                                These users thanked the author AreaScout for the post:
                                rooted (Tue May 14, 2019 6:36 am)

                                User avatar
                                mad_ady
                                Posts: 6527
                                Joined: Wed Jul 15, 2015 5:00 pm
                                languages_spoken: english
                                ODROIDs: XU4, C1+, C2, N1, H2, N2
                                Location: Bucharest, Romania
                                Has thanked: 163 times
                                Been thanked: 125 times
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Unread post by mad_ady » Mon May 13, 2019 2:04 am

                                You can display temperatures as degrees, without the unit C/F. The human eye knows when it's one or the other.

                                User avatar
                                AreaScout
                                Posts: 1057
                                Joined: Sun Jul 07, 2013 3:05 am
                                languages_spoken: german, english
                                ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                N1, Go, VU5A, Show2, CloudShell2,
                                H2, N2, VU7A, VuShell
                                Has thanked: 15 times
                                Been thanked: 47 times
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Unread post by AreaScout » Mon May 13, 2019 5:19 pm

                                mad_ady wrote:
                                Mon May 13, 2019 2:04 am
                                You can display temperatures as degrees, without the unit C/F. The human eye knows when it's one or the other.
                                That could be a solution, I have to test it, but first I will release grafana support

                                RG

                                User avatar
                                AreaScout
                                Posts: 1057
                                Joined: Sun Jul 07, 2013 3:05 am
                                languages_spoken: german, english
                                ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                N1, Go, VU5A, Show2, CloudShell2,
                                H2, N2, VU7A, VuShell
                                Has thanked: 15 times
                                Been thanked: 47 times
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Unread post by AreaScout » Mon May 13, 2019 6:24 pm

                                These users thanked the author AreaScout for the post:
                                rooted (Tue May 14, 2019 6:36 am)

                                User avatar
                                rooted
                                Posts: 6610
                                Joined: Fri Dec 19, 2014 9:12 am
                                languages_spoken: english
                                Location: Gulf of Mexico, US
                                Has thanked: 104 times
                                Been thanked: 20 times
                                Contact:

                                Re: LCD Display Info and Monitoring Tool + Kodi install

                                Unread post by rooted » Tue May 14, 2019 6:36 am

                                AreaScout wrote:
                                  See ! Everything in Fahrenheit :)

                                  https://snapshot.raintank.io/dashboard/ ... 3fNSEPfSb5

                                  RG
                                  Nice, very cool.

                                  User avatar
                                  AreaScout
                                  Posts: 1057
                                  Joined: Sun Jul 07, 2013 3:05 am
                                  languages_spoken: german, english
                                  ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                  N1, Go, VU5A, Show2, CloudShell2,
                                  H2, N2, VU7A, VuShell
                                  Has thanked: 15 times
                                  Been thanked: 47 times
                                  Contact:

                                  Re: LCD Display Info and Monitoring Tool + Kodi install

                                  Unread post by AreaScout » Tue May 14, 2019 10:06 pm

                                  @all

                                  New version 1.0.10-1 is online:

                                  cloudshell2 LCD display and monitoring tool 1.0.10

                                  New config file ! before installing please remove any older version with sudo dpkg -r cloudshell2-monitoring don't forget to backup your current config before
                                    • Add MySQL/MariaDB datasource support for external monitoring tools like Grafana, database file and Grafana dashboards included
                                    MySQL/MariaDB behavior:

                                    The Database can run of course on any Machine over the globe :)
                                    1. Install a MySQL or MariaDB Database
                                    2. Create a Database on your new Database server
                                    3. Create a User for that Database and grand SELECT, INSERT and CREATE/ALTER TABLE rights to the User
                                    4. Enter our connection and user/password data inside the tool configuration file at /etc/cloudshell2-monitoring/cloudshell2-monitoring.conf
                                    After you have setup a database connection, the cloudshell2-monitoring tool hast to be restarted with sudo systemctl restart cloudshell2-monitoring, a new table (cs2_monitoring)will be created on your new database and the tool starts immediately collecting data and write it to the database, if the database connection is lost the tool will try to reconnect every 10 seconds :ugeek:

                                    Btw. the sql file can be found here /usr/share/doc/cloudshell2-monitoring/grafana.sql if you want you can edit it to your needs, you can change the column name and datatype and also general database attributes that file is send to the server in case no cs2_monitoring exists on startup

                                    Monitoring with Grafana in action:

                                    See a snapshot how it looks like in your browser:

                                    https://snapshot.raintank.io/dashboard/ ... e0EA2ewPRJ

                                    Or just look at the picture:

                                    Image

                                    Grafana setup instructions:

                                    There are two demo dashboards pre-configured inside the /usr/share/doc/cloudshell2-monitoring folder named

                                    CloudShell2_Celsius-Dashboard.json
                                    CloudShell2_Fahrenheit-Dashboard.json

                                    Download Grafana from https://grafana.com to your favorite machine running either Windows, Linux, macOS or ARM Platforms, please follow more instructions how to install and config from there
                                    After Grafana is running, setup a new datasource, which in our case is MySQL, the connection name for the demo dashboards are MySQL-1, you should choose the same or you have to edit each panel for your new datasource name
                                    On the left side you can click on dashboard -> manage from there you can import one or both of the two demo dashboards, for the Fahrenheit one you can see where I did the math on the sql query to convert from Celsius to Fahrenheit

                                    RG and have fun

                                    User avatar
                                    mad_ady
                                    Posts: 6527
                                    Joined: Wed Jul 15, 2015 5:00 pm
                                    languages_spoken: english
                                    ODROIDs: XU4, C1+, C2, N1, H2, N2
                                    Location: Bucharest, Romania
                                    Has thanked: 163 times
                                    Been thanked: 125 times
                                    Contact:

                                    Re: LCD Display Info and Monitoring Tool + Kodi install

                                    Unread post by mad_ady » Wed May 15, 2019 1:47 am

                                    Next challenge: switch mysql to influxdb

                                    Great work by the way!

                                    User avatar
                                    AreaScout
                                    Posts: 1057
                                    Joined: Sun Jul 07, 2013 3:05 am
                                    languages_spoken: german, english
                                    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                    N1, Go, VU5A, Show2, CloudShell2,
                                    H2, N2, VU7A, VuShell
                                    Has thanked: 15 times
                                    Been thanked: 47 times
                                    Contact:

                                    Re: LCD Display Info and Monitoring Tool + Kodi install

                                    Unread post by AreaScout » Wed May 15, 2019 2:51 am

                                    mad_ady wrote:
                                    Wed May 15, 2019 1:47 am
                                    Next challenge: switch mysql to influxdb Image

                                    Great work by the way!
                                    Haha thank you, I will see what InfluxDB is ;)

                                    RG

                                    User avatar
                                    AreaScout
                                    Posts: 1057
                                    Joined: Sun Jul 07, 2013 3:05 am
                                    languages_spoken: german, english
                                    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                    N1, Go, VU5A, Show2, CloudShell2,
                                    H2, N2, VU7A, VuShell
                                    Has thanked: 15 times
                                    Been thanked: 47 times
                                    Contact:

                                    Re: LCD Display Info and Monitoring Tool + Kodi install

                                    Unread post by AreaScout » Fri May 17, 2019 9:08 pm

                                    @all

                                    New version 1.0.11-1 is online:

                                    cloudshell2 LCD display and monitoring tool 1.0.11

                                    New config file ! before installing please remove any older version with sudo dpkg -r cloudshell2-monitoring as always, don't forget to backup your current config before
                                      • Fix: Use smaller font for clock
                                      • Add: Fahrenheit (hey rooted :)), it's just for the LCD, the database values and trigger points for temperatur alarms are still in Celsius keep that in mind, if you believe and set there i.e 185 in F it will be °C !
                                      • Add: 12-hour clock
                                      • Add: Help command-line argument
                                      All has to be setup and enabled inside the /etc/cloudshell2-monitoring/cloudshell2-monitoring.conf config file :)

                                      Again values written to database are still in Celsius as this is more or less scientific research, and in that area Celsius is commonly used (also in the US I heard), if you need Fahrenheit there please use my Fahrenheit Dashboard for Grafana -> CloudShell2_Fahrenheit-Dashboard.json

                                      Also for trigger points - alarms, Celsius is used

                                      Image

                                      Have Fun
                                      These users thanked the author AreaScout for the post (total 3):
                                      rooted (Sat May 18, 2019 5:13 am) • odroid (Mon May 20, 2019 8:37 am) • Schnitzelbrain (Fri May 24, 2019 2:52 am)

                                      User avatar
                                      rooted
                                      Posts: 6610
                                      Joined: Fri Dec 19, 2014 9:12 am
                                      languages_spoken: english
                                      Location: Gulf of Mexico, US
                                      Has thanked: 104 times
                                      Been thanked: 20 times
                                      Contact:

                                      Re: LCD Display Info and Monitoring Tool + Kodi install

                                      Unread post by rooted » Sat May 18, 2019 5:14 am

                                      Great work, thank you AreaScout.

                                      Schnitzelbrain
                                      Posts: 23
                                      Joined: Sun Oct 29, 2017 4:13 pm
                                      languages_spoken: german, english
                                      Has thanked: 1 time
                                      Been thanked: 0
                                      Contact:

                                      Re: LCD Display Info and Monitoring Tool + Kodi install

                                      Unread post by Schnitzelbrain » Fri May 24, 2019 2:48 am

                                      Hey, great display.
                                      Kudos to AreaScout.

                                      Quick question, any info about the effect on HDD Spin down when using this Display ?
                                      Still working or not anymore?

                                      Schnitzelbrain

                                      User avatar
                                      AreaScout
                                      Posts: 1057
                                      Joined: Sun Jul 07, 2013 3:05 am
                                      languages_spoken: german, english
                                      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                      N1, Go, VU5A, Show2, CloudShell2,
                                      H2, N2, VU7A, VuShell
                                      Has thanked: 15 times
                                      Been thanked: 47 times
                                      Contact:

                                      Re: LCD Display Info and Monitoring Tool + Kodi install

                                      Unread post by AreaScout » Fri May 24, 2019 5:22 am

                                      Schnitzelbrain wrote:
                                      Fri May 24, 2019 2:48 am
                                      Hey, great display.
                                      Kudos to AreaScout.

                                      Quick question, any info about the effect on HDD Spin down when using this Display ?
                                      Still working or not anymore?

                                      Schnitzelbrain
                                      Thank you, no, there is no Spin-down anymore with my tool, I have read a lot about it, mostly in forums about servers from server maintainers, my conclusion are two points:
                                      1. The extra costs compared with Spin-down ON to OFF with two hard disks is negligible
                                      2. Mostly a to small Spin-down time is configured which can damage the hard disk in the long run ( On servers they setup 5 hours Spin-down time ! That is not reached very often )
                                      RG

                                      Schnitzelbrain
                                      Posts: 23
                                      Joined: Sun Oct 29, 2017 4:13 pm
                                      languages_spoken: german, english
                                      Has thanked: 1 time
                                      Been thanked: 0
                                      Contact:

                                      Re: LCD Display Info and Monitoring Tool + Kodi install

                                      Unread post by Schnitzelbrain » Sat May 25, 2019 1:09 am

                                      AreaScout wrote:
                                      Fri May 24, 2019 5:22 am
                                      Schnitzelbrain wrote:
                                      Fri May 24, 2019 2:48 am
                                      Hey, great display.
                                      Kudos to AreaScout.

                                      Quick question, any info about the effect on HDD Spin down when using this Display ?
                                      Still working or not anymore?

                                      Schnitzelbrain
                                      Thank you, no, there is no Spin-down anymore with my tool, I have read a lot about it, mostly in forums about servers from server maintainers, my conclusion are two points:
                                      1. The extra costs compared with Spin-down ON to OFF with two hard disks is negligible
                                      2. Mostly a to small Spin-down time is configured which can damage the hard disk in the long run ( On servers they setup 5 hours Spin-down time ! That is not reached very often )
                                      RG
                                      Thx for the info.
                                      System is up and running under dietpi.

                                      Schnitzelbrain

                                      User avatar
                                      AreaScout
                                      Posts: 1057
                                      Joined: Sun Jul 07, 2013 3:05 am
                                      languages_spoken: german, english
                                      ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
                                      N1, Go, VU5A, Show2, CloudShell2,
                                      H2, N2, VU7A, VuShell
                                      Has thanked: 15 times
                                      Been thanked: 47 times
                                      Contact:

                                      Re: LCD Display Info and Monitoring Tool + Kodi install

                                      Unread post by AreaScout » Sun May 26, 2019 8:01 pm

                                      @all

                                      This is how it looks if you have a defective hard disk, first is to identify the defective hard disk drive ( best with the -i option of the tool, SMART info etc. ) SATA Port 0 is bottom drive
                                      1. Shutdown the CloudShell2
                                      2. Exchange the hard disk
                                      3. Start the CloudShell2
                                      4. Watch the LCD Display for current rebuild progress, you have full access to your CloudShell2 data and you can work with it even if the RAID conroller is rebuilding ;)
                                      Foto.JPG
                                      Foto.JPG (451.42 KiB) Viewed 2069 times
                                      RG

                                      hominoid
                                      Posts: 293
                                      Joined: Tue Feb 28, 2017 3:55 am
                                      languages_spoken: english
                                      ODROIDs: C2, XU4, MC1, N1, N2
                                      Location: Lake Superior Basin, USA
                                      Has thanked: 4 times
                                      Been thanked: 14 times
                                      Contact:

                                      Re: LCD Display Info and Monitoring Tool + Kodi install

                                      Unread post by hominoid » Wed May 29, 2019 9:48 am

                                      @AreaScout, Just started using your LCD Info and Monitoring Tool on Ubuntu 18.04 minimal. Very nice indeed! Thanks for sharing your wonderful work!
                                      These users thanked the author hominoid for the post:
                                      AreaScout (Thu Jun 06, 2019 3:51 pm)

                                      Post Reply

                                      Return to “CloudShell”

                                      Who is online

                                      Users browsing this forum: No registered users and 1 guest