Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. MSapogov

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 129
    • Best 0
    • Groups 2

    MSapogov

    @MSapogov

    0
    Reputation
    45
    Profile views
    129
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    MSapogov Follow
    Pro Starter

    Latest posts made by MSapogov

    • RE: ESP8266 remote control to Squeezebox server

      @евгений-рудаков said in ESP8266 remote control to Squeezebox server:

      @msapogov Добрый вечер.Скажите пожалуйста сделали пульт дистанционного управления ESP8266 для сервера Squeezebox какой хотели?

      Взять код из первого сообщения , подставить свои значения , и скомпилировать в Arduino IDE.

      posted in Железо
      M
      MSapogov
    • RE: Драйвер Меркурий

      @learner Если есть возможность указать скорость порта на Вашем TCP to UART переходнике, то поставть 9600. Мне по краейней мере - помогло.

      posted in ioBroker основное
      M
      MSapogov
    • RE: Драйвер ModBus

      Orange PI PC (Armbian 5.38)

      Платформа: linux

      RAM: 1000.7 MB

      Node.js: v8.11.4

      NPM: 6.4.0

      И /dev/ttyS1

      и /dev/ttyUSB0

      дает выбирать…

      posted in ioBroker драйвера
      M
      MSapogov
    • RE: Драйвер MPD

      Попытался задействовать MPD для оповещения и сталкнулся с проблемой:

      Iobroker - 192.168.11.3

      Debian c MPD - 192.168.11.89

      root@orangepipc:~# cat /proc/asound/cards

       0 [audiocodec     ]: audiocodec - audiocodec
                            audiocodec
       1 [sndhdmi        ]: sndhdmi - sndhdmi
                            sndhdmi
      
      

      mpd.conf

      ! ````

      An example configuration file for MPD.

      Read the user manual for documentation: http://www.musicpd.org/doc/user/

      or /usr/share/doc/mpd/user-manual.html

      ! # Files and directories #######################################################

      This setting controls the top directory which MPD will search to discover the

      available audio files and add them to the daemon's online database. This

      setting defaults to the XDG directory, otherwise the music directory will be

      be disabled and audio files will only be accepted over ipc socket (using

      file:// protocol) or streaming files over an accepted protocol.

      #music_directory "/var/lib/mpd/music"
      music_directory "/home/mikhail/Music"

      This setting sets the MPD internal playlist directory. The purpose of this

      directory is storage for playlists created by MPD. The server will use

      playlist files not created by the server but only if they are in the MPD

      format. This setting defaults to playlist saving being disabled.

      #playlist_directory "/var/lib/mpd/playlists"
      playlist_directory "/home/mikhail/.mpd/playlists"

      This setting sets the location of the MPD database. This file is used to

      load the database at server start up and store the database while the

      server is not up. This setting defaults to disabled which will allow

      MPD to accept files over ipc socket (using file:// protocol) or streaming

      files over an accepted protocol.

      #db_file "/var/lib/mpd/tag_cache"
      db_file "/home/mikhail/.mpd/tag_cache"

      These settings are the locations for the daemon log files for the daemon.

      These logs are great for troubleshooting, depending on your log_level

      settings.

      The special value "syslog" makes MPD use the local syslog daemon. This

      setting defaults to logging to syslog, otherwise logging is disabled.

      #log_file "/var/log/mpd/mpd.log"
      log_file "/home/mikhail/.mpd/mpd.log"

      This setting sets the location of the file which stores the process ID

      for use of mpd --kill and some init scripts. This setting is disabled by

      default and the pid file will not be stored.

      #pid_file "/run/mpd/pid"
      pid_file "/home/mikhail/.mpd/pid"

      This setting sets the location of the file which contains information about

      most variables to get MPD back into the same general shape it was in before

      it was brought down. This setting is disabled by default and the server

      state will be reset on server start up.

      #state_file "/var/lib/mpd/state"
      state_file "/home/mikhail/.mpd/state"

      The location of the sticker database. This is a database which

      manages dynamic information attached to songs.

      #sticker_file "/var/lib/mpd/sticker.sql"
      sticker_file "/home/mikhail/.mpd/sticker.sql"

      ###############################################################################

      ! # General music daemon options ################################################

      This setting specifies the user that MPD will run as. MPD should never run as

      root and you may use this setting to make MPD change its user ID after

      initialization. This setting is disabled by default and MPD is run as the

      current user.

      user "mpd"

      This setting specifies the group that MPD will run as. If not specified

      primary group of user specified with "user" setting will be used (if set).

      This is useful if MPD needs to be a member of group such as "audio" to

      have permission to use sound card.

      #group "nogroup"

      This setting sets the address for the daemon to listen on. Careful attention

      should be paid if this is assigned to anything other then the default, any.

      This setting can deny access to control of the daemon. Choose any if you want

      to have mpd listen on every address

      For network

      bind_to_address "localhost"

      And for Unix Socket

      #bind_to_address "/run/mpd/socket"

      This setting is the TCP port that is desired for the daemon to get assigned

      to.

      port "6600"

      This setting controls the type of information which is logged. Available

      setting arguments are "default", "secure" or "verbose". The "verbose" setting

      argument is recommended for troubleshooting, though can quickly stretch

      available resources on limited hardware storage.

      log_level "default"

      If you have a problem with your MP3s ending abruptly it is recommended that

      you set this argument to "no" to attempt to fix the problem. If this solves

      the problem, it is highly recommended to fix the MP3 files with vbrfix

      (available as vbrfix in the debian archive), at which

      point gapless MP3 playback can be enabled.

      #gapless_mp3_playback "yes"

      Setting "restore_paused" to "yes" puts MPD into pause mode instead

      of starting playback after startup.

      #restore_paused "no"

      This setting enables MPD to create playlists in a format usable by other

      music players.

      #save_absolute_paths_in_playlists "no"

      This setting defines a list of tag types that will be extracted during the

      audio file discovery process. The complete list of possible values can be

      found in the mpd.conf man page.

      #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"

      This setting enables automatic update of MPD's database when files in

      music_directory are changed.

      #auto_update "yes"

      Limit the depth of the directories being watched, 0 means only watch

      the music directory itself. There is no limit by default.

      #auto_update_depth "3"

      ###############################################################################

      ! # Symbolic link behavior ######################################################

      If this setting is set to "yes", MPD will discover audio files by following

      symbolic links outside of the configured music_directory.

      #follow_outside_symlinks "yes"

      If this setting is set to "yes", MPD will discover audio files by following

      symbolic links inside of the configured music_directory.

      #follow_inside_symlinks "yes"

      ###############################################################################

      ! # Zeroconf / Avahi Service Discovery ##########################################

      If this setting is set to "yes", service information will be published with

      Zeroconf / Avahi.

      #zeroconf_enabled "yes"

      The argument to this setting will be the Zeroconf / Avahi unique name for

      this MPD server on the network.

      #zeroconf_name "Music Player"

      ###############################################################################

      ! # Permissions #################################################################

      If this setting is set, MPD will require password authorization. The password

      can setting can be specified multiple times for different password profiles.

      #password "password@read,add,control,admin"

      This setting specifies the permissions a user has who has not yet logged in.

      #default_permissions "read,add,control,admin"

      ###############################################################################

      ! # Database #######################################################################

      ! #database {

      plugin "proxy"

      host "other.mpd.host"

      port "6600"

      #}

      ! # Input #######################################################################

      ! input {
      plugin "curl"

      proxy "proxy.isp.com:8080"

      proxy_user "user"

      proxy_password "password"

      }

      ! #
      ###############################################################################
      ! # Audio Output ################################################################

      MPD supports various audio output types, as well as playing through multiple

      audio outputs at the same time, through multiple audio_output settings

      blocks. Setting this block is optional, though the server will only attempt

      autodetection for one sound card.

      An example of an ALSA output:

      audio_output {
      type "alsa"
      name "My ALSA Device"
      device "hw:0,0" # optional
      mixer_type "software" # optional

      mixer_device "default" # optional

      mixer_control "PCM" # optional

      mixer_index "0" # optional

      }

      An example of an OSS output:

      #audio_output {

      type "oss"

      name "My OSS Device"

      device "/dev/dsp" # optional

      mixer_type "hardware" # optional

      mixer_device "/dev/mixer" # optional

      mixer_control "PCM" # optional

      #}

      An example of a shout output (for streaming to Icecast):

      #audio_output {

      type "shout"

      encoding "ogg" # optional

      name "My Shout Stream"

      host "localhost"

      port "8000"

      mount "/mpd.ogg"

      password "hackme"

      quality "5.0"

      bitrate "128"

      format "44100:16:1"

      protocol "icecast2" # optional

      user "source" # optional

      description "My Stream Description" # optional

      url "http://example.com" # optional

      genre "jazz" # optional

      public "no" # optional

      timeout "2" # optional

      mixer_type "software" # optional

      #}

      An example of a recorder output:

      #audio_output {

      type "recorder"

      name "My recorder"

      encoder "vorbis" # optional, vorbis or lame

      path "/var/lib/mpd/recorder/mpd.ogg"

      quality "5.0" # do not define if bitrate is defined

      bitrate "128" # do not define if quality is defined

      format "44100:16:1"

      #}

      An example of a httpd output (built-in HTTP streaming server):

      #audio_output {

      type "httpd"

      name "My HTTP Stream"

      encoder "lame" # optional, vorbis or lame

      port "8000"

      bind_to_address "0.0.0.0" # optional, IPv4 or IPv6

      quality "5.0" # do not define if bitrate is defined

      bitrate "128" # do not define if quality is defined

      format "44100:16:1"

      max_clients "0" # optional 0=no limit

      #}

      An example of a pulseaudio output (streaming to a remote pulseaudio server)

      Please see README.Debian if you want mpd to play through the pulseaudio

      daemon started as part of your graphical desktop session!

      #audio_output {

      type "pulse"

      name "My Pulse Output"

      server "remote_server" # optional

      sink "remote_server_sink" # optional

      #}

      An example of a winmm output (Windows multimedia API).

      #audio_output {

      type "winmm"

      name "My WinMM output"

      device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional

      or

      device "0" # optional

      mixer_type "hardware" # optional

      #}

      An example of an openal output.

      #audio_output {

      type "openal"

      name "My OpenAL output"

      device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional

      #}

      Example "pipe" output:

      #audio_output {

      type "pipe"

      name "my pipe"

      command "aplay -f cd 2>/dev/null"

      Or if you're want to use AudioCompress

      command "AudioCompress -m | aplay -f cd 2>/dev/null"

      Or to send raw PCM stream through PCM:

      command "nc example.org 8765"

      format "44100:16:2"

      #}

      An example of a null output (for no audio output):

      #audio_output {

      type "null"

      name "My Null Output"

      mixer_type "none" # optional

      #}

      If MPD has been compiled with libsamplerate support, this setting specifies

      the sample rate converter to use. Possible values can be found in the

      mpd.conf man page or the libsamplerate documentation. By default, this is

      setting is disabled.

      #samplerate_converter "Fastest Sinc Interpolator"

      ###############################################################################

      ! # Normalization automatic volume adjustments ##################################

      This setting specifies the type of ReplayGain to use. This setting can have

      the argument "off", "album", "track" or "auto". "auto" is a special mode that

      chooses between "track" and "album" depending on the current state of

      random playback. If random playback is enabled then "track" mode is used.

      See <http: www.replaygain.org="">for more details about ReplayGain.

      This setting is off by default.

      #replaygain "album"

      This setting sets the pre-amp used for files that have ReplayGain tags. By

      default this setting is disabled.

      #replaygain_preamp "0"

      This setting sets the pre-amp used for files that do NOT have ReplayGain tags.

      By default this setting is disabled.

      #replaygain_missing_preamp "0"

      This setting enables or disables ReplayGain limiting.

      MPD calculates actual amplification based on the ReplayGain tags

      and replaygain_preamp / replaygain_missing_preamp setting.

      If replaygain_limit is enabled MPD will never amplify audio signal

      above its original level. If replaygain_limit is disabled such amplification

      might occur. By default this setting is enabled.

      #replaygain_limit "yes"

      This setting enables on-the-fly normalization volume adjustment. This will

      result in the volume of all playing audio to be adjusted so the output has

      equal "loudness". This setting is disabled by default.

      #volume_normalization "no"

      ###############################################################################

      ! # Character Encoding ##########################################################

      If file or directory names do not display correctly for your locale then you

      may need to modify this setting.

      filesystem_charset "UTF-8"

      This setting controls the encoding that ID3v1 tags should be converted from.

      id3v1_encoding "UTF-8"

      ###############################################################################

      ! # SIDPlay decoder #############################################################

      songlength_database:

      Location of your songlengths file, as distributed with the HVSC.

      The sidplay plugin checks this for matching MD5 fingerprints.

      See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq

      default_songlength:

      This is the default playing time in seconds for songs not in the

      songlength database, or in case you're not using a database.

      A value of 0 means play indefinitely.

      filter:

      Turns the SID filter emulation on or off.

      #decoder {

      plugin "sidplay"

      songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"

      default_songlength "120"

      filter "true"

      #}

      ###############################################################################</http:>

      После отработки сайит MPD выдает ошибки…
      

      Jan 16 12:09 : playlist: No such playlist
      Jan 16 12:09 : player: played "http://192.168.11.3:8082/state/sayit.0.tts.mp3"
      Jan 16 12:09 : errno: Failed to open "/home/mikhail/.mpd/playlists/temp_ForSayIt.m3u": No such file or directory
      Jan 16 12:09 : playlist: No such playlist
      Jan 16 18:58 : playlist: No such playlist
      Jan 16 18:58 : player: played "http://192.168.11.3:8082/state/sayit.0.tts.mp3"
      Jan 16 18:58 : errno: Failed to open "/home/mikhail/.mpd/playlists/temp_ForSayIt.m3u": No such file or directory
      Jan 16 18:58 : playlist: No such playlist

      
      Что предпринять?
      
      PS: заработало
      
      /home/mikhail/.mpd/playlists - права нужно 755 mpd:audio
      
      Чтоб громкость была нормальная в mpd.conf добавил
      

      decoder {
      plugin "mad"
      enabled "no"
      }

      вычитал тут - [https://forum.armbian.com/topic/1947-an … nge-pi-pc/](https://forum.armbian.com/topic/1947-analog-audio-output-low-volume-with-mpd-server-orange-pi-pc/)
      posted in ioBroker драйвера
      M
      MSapogov
    • RE: Драйвер lgtv-rs

      @instalator:

      Обнови версию с гитхаба `
      Все… теперь работает!

      posted in ioBroker драйвера
      M
      MSapogov
    • RE: Драйвер lgtv-rs

      @instalator:

      в файле \iobroker.lgtv-rs\main.js закоменть строки с 199 по 203 включительно и рестартани драйвер в режиме дебаг - дай лог `
      Выбран hdmi1

      ! ````

      lgtv-rs.0 2017-12-30 17:11:11.505 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:11:11.505 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:11:11.477 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:11:06.505 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:11:06.505 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:11:06.477 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:11:01.504 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:11:01.504 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:11:01.477 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:56.502 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:56.502 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:56.474 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:51.502 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:51.502 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:51.475 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:46.497 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:46.497 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:46.470 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:41.492 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:41.492 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:41.464 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:36.492 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:36.492 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:36.465 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:31.490 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:31.490 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:31.462 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:26.490 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:26.490 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:26.461 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:21.495 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:21.495 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:21.460 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:16.486 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:16.485 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:16.455 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:11.477 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:11.477 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:11.449 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:06.478 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:06.478 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:06.449 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:10:01.476 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:10:01.476 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:10:01.449 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:09:56.471 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:09:56.471 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:09:56.442 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:09:51.470 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:09:51.470 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:09:51.442 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:09:46.465 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:09:46.464 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:09:46.437 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-30 17:09:41.430 info LG TV connected to: 192.168.11.95:23
      lgtv-rs.0 2017-12-30 17:09:41.419 debug LG TV connect to: 192.168.11.95:23
      lgtv-rs.0 2017-12-30 17:09:41.418 info starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.lgtv-rs, node: v8.9.3
      lgtv-rs.0 2017-12-30 17:09:41.329 debug statesDB connected
      lgtv-rs.0 2017-12-30 17:09:41.314 debug objectDB connected
      host.Bee-IoT 2017-12-30 17:09:41.084 info instance system.adapter.lgtv-rs.0 started with pid 25242
      host.Bee-IoT 2017-12-30 17:09:38.589 info instance system.adapter.lgtv-rs.0 terminated with code 0 (OK)
      lgtv-rs.0 2017-12-30 17:09:38.579 info terminating
      host.Bee-IoT 2017-12-30 17:09:38.573 info stopInstance system.adapter.lgtv-rs.0 killing pid 25227
      host.Bee-IoT 2017-12-30 17:09:38.573 info stopInstance system.adapter.lgtv-rs.0
      lgtv-rs.0 2017-12-30 17:09:38.575 info Reconnect after 60 sec...
      lgtv-rs.0 2017-12-30 17:09:38.575 error Error socket: Reconnect after 15 sec...
      lgtv-rs.0 2017-12-30 17:09:38.575 error LG TV LG TV disconnected
      lgtv-rs.0 2017-12-30 17:09:38.574 info cleaned everything up...
      host.Bee-IoT 2017-12-30 17:09:38.573 info object change system.adapter.lgtv-rs.0
      lgtv-rs.0 2017-12-30 17:09:36.156 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-30 17:09:36.155 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-30 17:09:36.125 debug
      lgtv-rs.0 2017-12-30 17:09:36.125 debug Send Command: ka 00 ff

      выбран analog1
      
      >! ````
      lgtv-rs.0	2017-12-30 17:14:00.946	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:14:00.946	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:14:00.919	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:55.952	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:55.952	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:55.918	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:50.945	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:50.945	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:50.917	debug	
      lgtv-rs.0	2017-12-30 17:13:50.917	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:45.940	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:45.940	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:45.911	debug	
      lgtv-rs.0	2017-12-30 17:13:45.911	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:40.938	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:40.938	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:40.910	debug	
      lgtv-rs.0	2017-12-30 17:13:40.910	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:35.935	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:35.934	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:35.906	debug	
      lgtv-rs.0	2017-12-30 17:13:35.906	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:30.930	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:30.930	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:30.901	debug	
      lgtv-rs.0	2017-12-30 17:13:30.901	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:28.645	debug	name:volume
      lgtv-rs.0	2017-12-30 17:13:28.644	debug	req:{"cmd":"f","id":"01","ack":true,"val":"07"}
      lgtv-rs.0	2017-12-30 17:13:28.644	debug	LG TV incomming: f 01 OK07x
      lgtv-rs.0	2017-12-30 17:13:28.617	debug	
      lgtv-rs.0	2017-12-30 17:13:28.617	debug	Send Command: kf 00 7
      lgtv-rs.0	2017-12-30 17:13:28.617	debug	stateChange lgtv-rs.0.volume {"val":"7","ack":false,"ts":1514628808614,"q":0,"from":"system.adapter.admin.0","lc":1514628808614}
      lgtv-rs.0	2017-12-30 17:13:25.933	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:25.933	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:25.901	debug	
      lgtv-rs.0	2017-12-30 17:13:25.901	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:25.222	debug	name:volume
      lgtv-rs.0	2017-12-30 17:13:25.222	debug	req:{"cmd":"f","id":"01","ack":true,"val":"09"}
      lgtv-rs.0	2017-12-30 17:13:25.222	debug	LG TV incomming: f 01 OK09x
      lgtv-rs.0	2017-12-30 17:13:25.193	debug	
      lgtv-rs.0	2017-12-30 17:13:25.193	debug	Send Command: kf 00 9
      lgtv-rs.0	2017-12-30 17:13:25.193	debug	stateChange lgtv-rs.0.volume {"val":"9","ack":false,"ts":1514628805191,"q":0,"from":"system.adapter.admin.0","lc":1514628805191}
      lgtv-rs.0	2017-12-30 17:13:20.931	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:20.931	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:20.900	debug	
      lgtv-rs.0	2017-12-30 17:13:20.900	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:15.927	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:15.927	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:15.899	debug	
      lgtv-rs.0	2017-12-30 17:13:15.899	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:10.935	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:10.935	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:10.899	debug	
      lgtv-rs.0	2017-12-30 17:13:10.899	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:05.922	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:05.922	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:05.894	debug	
      lgtv-rs.0	2017-12-30 17:13:05.894	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:13:00.922	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:13:00.922	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:13:00.889	debug	
      lgtv-rs.0	2017-12-30 17:13:00.889	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:12:55.919	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:12:55.919	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:12:55.889	debug	
      lgtv-rs.0	2017-12-30 17:12:55.889	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:12:50.917	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:12:50.917	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:12:50.889	debug	
      lgtv-rs.0	2017-12-30 17:12:50.889	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:12:45.912	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:12:45.912	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:12:45.884	debug	
      lgtv-rs.0	2017-12-30 17:12:45.884	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:12:40.912	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:12:40.912	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:12:40.884	debug	
      lgtv-rs.0	2017-12-30 17:12:40.884	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:12:35.908	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:12:35.907	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:12:35.879	debug	
      lgtv-rs.0	2017-12-30 17:12:35.879	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:12:30.873	info	LG TV connected to: 192.168.11.95:23
      lgtv-rs.0	2017-12-30 17:12:30.863	debug	LG TV connect to: 192.168.11.95:23
      lgtv-rs.0	2017-12-30 17:12:30.862	info	starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.lgtv-rs, node: v8.9.3
      lgtv-rs.0	2017-12-30 17:12:30.770	debug	statesDB connected
      lgtv-rs.0	2017-12-30 17:12:30.754	debug	objectDB connected
      host.Bee-IoT	2017-12-30 17:12:30.524	info	instance system.adapter.lgtv-rs.0 started with pid 25263
      host.Bee-IoT	2017-12-30 17:12:28.031	info	instance system.adapter.lgtv-rs.0 terminated with code 0 (OK)
      lgtv-rs.0	2017-12-30 17:12:28.018	info	terminating
      host.Bee-IoT	2017-12-30 17:12:28.013	info	stopInstance system.adapter.lgtv-rs.0 killing pid 25242
      host.Bee-IoT	2017-12-30 17:12:28.013	info	stopInstance system.adapter.lgtv-rs.0
      lgtv-rs.0	2017-12-30 17:12:28.015	info	Reconnect after 60 sec...
      lgtv-rs.0	2017-12-30 17:12:28.014	error	Error socket: Reconnect after 15 sec...
      lgtv-rs.0	2017-12-30 17:12:28.014	error	LG TV LG TV disconnected
      lgtv-rs.0	2017-12-30 17:12:28.014	info	cleaned everything up...
      host.Bee-IoT	2017-12-30 17:12:28.013	info	object change system.adapter.lgtv-rs.0
      

      Работает, но не обновляются статусы объектов (lgtv-rs.0.volume, lgtv-rs.0.input-select и др…)

      posted in ioBroker драйвера
      M
      MSapogov
    • RE: Драйвер lgtv-rs

      @instalator:

      в файле \iobroker.lgtv-rs\main.js замени строку 199 наif (COMMANDS[key]['values'][req.val].hasOwnProperty('name')){ `

      ! ````
      host.Bee-IoT 2017-12-30 16:57:47.532 info Restart adapter system.adapter.lgtv-rs.0 because enabled
      host.Bee-IoT 2017-12-30 16:57:47.532 error instance system.adapter.lgtv-rs.0 terminated with code 0 (OK)
      Caught 2017-12-30 16:57:47.532 error by controller[0]: at TCP.onread (net.js:594:20)
      Caught 2017-12-30 16:57:47.532 error by controller[0]: at Socket.Readable.push (_stream_readable.js:208:10)
      Caught 2017-12-30 16:57:47.532 error by controller[0]: at readableAddChunk (_stream_readable.js:250:11)
      Caught 2017-12-30 16:57:47.532 error by controller[0]: at addChunk (_stream_readable.js:263:12)
      Caught 2017-12-30 16:57:47.532 error by controller[0]: at Socket.emit (events.js:211:7)
      Caught 2017-12-30 16:57:47.532 error by controller[0]: at emitOne (events.js:116:13)
      Caught 2017-12-30 16:57:47.532 error by controller[0]: at Socket. (/opt/iobroker/node_modules/iobroker.lgtv-rs/main.js:159:13)
      Caught 2017-12-30 16:57:47.532 error by controller[0]: at parse (/opt/iobroker/node_modules/iobroker.lgtv-rs/main.js:199:62)
      Caught 2017-12-30 16:57:47.531 error by controller[0]: TypeError: Cannot read property 'hasOwnProperty' of undefined
      lgtv-rs.0 2017-12-30 16:57:47.527 info Reconnect after 60 sec...
      lgtv-rs.0 2017-12-30 16:57:47.527 error Error socket: Reconnect after 15 sec...
      lgtv-rs.0 2017-12-30 16:57:47.527 error LG TV LG TV disconnected
      lgtv-rs.0 2017-12-30 16:57:47.525 info cleaned everything up...
      lgtv-rs.0 2017-12-30 16:57:47.524 error at TCP.onread (net.js:594:20)
      lgtv-rs.0 2017-12-30 16:57:47.524 error at Socket.Readable.push (_stream_readable.js:208:10)
      lgtv-rs.0 2017-12-30 16:57:47.524 error at readableAddChunk (_stream_readable.js:250:11)
      lgtv-rs.0 2017-12-30 16:57:47.524 error at addChunk (_stream_readable.js:263:12)
      lgtv-rs.0 2017-12-30 16:57:47.524 error at Socket.emit (events.js:211:7)
      lgtv-rs.0 2017-12-30 16:57:47.524 error at emitOne (events.js:116:13)
      lgtv-rs.0 2017-12-30 16:57:47.524 error at Socket. (/opt/iobroker/node_modules/iobroker.lgtv-rs/main.js:159:13)
      lgtv-rs.0 2017-12-30 16:57:47.524 error at parse (/opt/iobroker/node_modules/iobroker.lgtv-rs/main.js:199:62)
      lgtv-rs.0 2017-12-30 16:57:47.524 error TypeError: Cannot read property 'hasOwnProperty' of undefined
      lgtv-rs.0 2017-12-30 16:57:47.524 error uncaught exception: Cannot read property 'hasOwnProperty' of undefined
      lgtv-rs.0 2017-12-30 16:57:42.421 info LG TV connected to: 192.168.11.95:23
      lgtv-rs.0 2017-12-30 16:57:42.406 info starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.lgtv-rs, node: v8.9.3
      host.Bee-IoT 2017-12-30 16:57:42.072 info instance system.adapter.lgtv-rs.0 started with pid 25093
      host.Bee-IoT 2017-12-30 16:57:39.583 info instance system.adapter.lgtv-rs.0 terminated with code 0 (OK)
      lgtv-rs.0 2017-12-30 16:57:39.569 info terminating
      host.Bee-IoT 2017-12-30 16:57:39.557 info stopInstance system.adapter.lgtv-rs.0 killing pid 25055
      host.Bee-IoT 2017-12-30 16:57:39.557 info stopInstance system.adapter.lgtv-rs.0
      lgtv-rs.0 2017-12-30 16:57:39.559 info Reconnect after 60 sec...

      
      Если выбираю не analog1, то работает..
      
      >! ````
      lgtv-rs.0	2017-12-30 17:02:29.110	debug	req:{"cmd":"g","id":"01","ack":true,"val":"5a"}
      lgtv-rs.0	2017-12-30 17:02:29.110	debug	LG TV incomming: g 01 OK5ax
      lgtv-rs.0	2017-12-30 17:02:29.080	debug	Send Command: kg 00 ff
      lgtv-rs.0	2017-12-30 17:02:24.109	debug	req:{"cmd":"f","id":"01","ack":true,"val":"06"}
      lgtv-rs.0	2017-12-30 17:02:24.108	debug	LG TV incomming: f 01 OK06x
      lgtv-rs.0	2017-12-30 17:02:24.080	debug	Send Command: kf 00 ff
      lgtv-rs.0	2017-12-30 17:02:19.109	debug	req:{"cmd":"e","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:02:19.109	debug	LG TV incomming: e 01 OK01x
      lgtv-rs.0	2017-12-30 17:02:19.080	debug	Send Command: ke 00 ff
      lgtv-rs.0	2017-12-30 17:02:14.109	debug	req:{"cmd":"d","id":"01","ack":true,"val":"00"}
      lgtv-rs.0	2017-12-30 17:02:14.109	debug	LG TV incomming: d 01 OK00x
      lgtv-rs.0	2017-12-30 17:02:14.079	debug	Send Command: kd 00 ff
      lgtv-rs.0	2017-12-30 17:02:09.141	debug	req:{"cmd":"c","id":"01","ack":true,"val":"02"}
      lgtv-rs.0	2017-12-30 17:02:09.141	debug	LG TV incomming: c 01 OK02x
      lgtv-rs.0	2017-12-30 17:02:09.079	debug	
      lgtv-rs.0	2017-12-30 17:02:09.079	debug	Send Command: kc 00 ff
      lgtv-rs.0	2017-12-30 17:02:09.079	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:02:09.079	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:02:09.051	debug	
      lgtv-rs.0	2017-12-30 17:02:09.051	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:02:04.074	debug	name:energy-saving
      lgtv-rs.0	2017-12-30 17:02:04.074	debug	req:{"cmd":"q","id":"01","ack":true,"val":"00"}
      lgtv-rs.0	2017-12-30 17:02:04.073	debug	LG TV incomming: q 01 OK00x
      lgtv-rs.0	2017-12-30 17:02:04.045	debug	
      lgtv-rs.0	2017-12-30 17:02:04.045	debug	Send Command: jq 00 ff
      lgtv-rs.0	2017-12-30 17:01:59.078	debug	name:input-select
      lgtv-rs.0	2017-12-30 17:01:59.078	debug	req:{"cmd":"b","id":"01","ack":true,"val":"90"}
      lgtv-rs.0	2017-12-30 17:01:59.078	debug	LG TV incomming: b 01 OK90x
      lgtv-rs.0	2017-12-30 17:01:59.050	debug	
      lgtv-rs.0	2017-12-30 17:01:59.050	debug	Send Command: xb 00 ff
      lgtv-rs.0	2017-12-30 17:01:54.075	debug	name:color-temperature
      lgtv-rs.0	2017-12-30 17:01:54.075	debug	req:{"cmd":"u","id":"01","ack":true,"val":"32"}
      lgtv-rs.0	2017-12-30 17:01:54.075	debug	LG TV incomming: u 01 OK32x
      lgtv-rs.0	2017-12-30 17:01:54.045	debug	
      lgtv-rs.0	2017-12-30 17:01:54.045	debug	Send Command: xu 00 ff
      lgtv-rs.0	2017-12-30 17:01:49.078	debug	name:balance
      lgtv-rs.0	2017-12-30 17:01:49.078	debug	req:{"cmd":"t","id":"01","ack":true,"val":"32"}
      lgtv-rs.0	2017-12-30 17:01:49.078	debug	LG TV incomming: t 01 OK32x
      lgtv-rs.0	2017-12-30 17:01:49.047	debug	
      lgtv-rs.0	2017-12-30 17:01:49.047	debug	Send Command: kt 00 ff
      lgtv-rs.0	2017-12-30 17:01:44.080	debug	name:bass
      lgtv-rs.0	2017-12-30 17:01:44.080	debug	req:{"cmd":"s","id":"01","ack":true,"val":"32"}
      lgtv-rs.0	2017-12-30 17:01:44.080	debug	LG TV incomming: s 01 OK32x
      lgtv-rs.0	2017-12-30 17:01:44.045	debug	
      lgtv-rs.0	2017-12-30 17:01:44.045	debug	Send Command: ks 00 ff
      lgtv-rs.0	2017-12-30 17:01:39.074	debug	name:treble
      lgtv-rs.0	2017-12-30 17:01:39.074	debug	req:{"cmd":"r","id":"01","ack":true,"val":"32"}
      lgtv-rs.0	2017-12-30 17:01:39.073	debug	LG TV incomming: r 01 OK32x
      lgtv-rs.0	2017-12-30 17:01:39.045	debug	
      lgtv-rs.0	2017-12-30 17:01:39.045	debug	Send Command: kr 00 ff
      lgtv-rs.0	2017-12-30 17:01:34.077	debug	name:remote-lock
      lgtv-rs.0	2017-12-30 17:01:34.077	debug	req:{"cmd":"m","id":"01","ack":true,"val":"00"}
      lgtv-rs.0	2017-12-30 17:01:34.076	debug	LG TV incomming: m 01 OK00x
      lgtv-rs.0	2017-12-30 17:01:34.045	debug	
      lgtv-rs.0	2017-12-30 17:01:34.045	debug	Send Command: km 00 ff
      lgtv-rs.0	2017-12-30 17:01:29.074	debug	name:osd-select
      lgtv-rs.0	2017-12-30 17:01:29.074	debug	req:{"cmd":"l","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:01:29.073	debug	LG TV incomming: l 01 OK01x
      lgtv-rs.0	2017-12-30 17:01:29.045	debug	
      lgtv-rs.0	2017-12-30 17:01:29.045	debug	Send Command: kl 00 ff
      lgtv-rs.0	2017-12-30 17:01:24.074	debug	name:sharpness
      lgtv-rs.0	2017-12-30 17:01:24.073	debug	req:{"cmd":"k","id":"01","ack":true,"val":"46"}
      lgtv-rs.0	2017-12-30 17:01:24.073	debug	LG TV incomming: k 01 OK46x
      lgtv-rs.0	2017-12-30 17:01:24.045	debug	
      lgtv-rs.0	2017-12-30 17:01:24.045	debug	Send Command: kk 00 ff
      lgtv-rs.0	2017-12-30 17:01:19.074	debug	name:tint
      lgtv-rs.0	2017-12-30 17:01:19.074	debug	req:{"cmd":"j","id":"01","ack":true,"val":"32"}
      lgtv-rs.0	2017-12-30 17:01:19.074	debug	LG TV incomming: j 01 OK32x
      lgtv-rs.0	2017-12-30 17:01:19.045	debug	
      lgtv-rs.0	2017-12-30 17:01:19.045	debug	Send Command: kj 00 ff
      lgtv-rs.0	2017-12-30 17:01:14.074	debug	name:color
      lgtv-rs.0	2017-12-30 17:01:14.074	debug	req:{"cmd":"i","id":"01","ack":true,"val":"3c"}
      lgtv-rs.0	2017-12-30 17:01:14.074	debug	LG TV incomming: i 01 OK3cx
      lgtv-rs.0	2017-12-30 17:01:14.045	debug	
      lgtv-rs.0	2017-12-30 17:01:14.045	debug	Send Command: ki 00 ff
      lgtv-rs.0	2017-12-30 17:01:09.074	debug	name:brightness
      lgtv-rs.0	2017-12-30 17:01:09.074	debug	req:{"cmd":"h","id":"01","ack":true,"val":"32"}
      lgtv-rs.0	2017-12-30 17:01:09.074	debug	LG TV incomming: h 01 OK32x
      lgtv-rs.0	2017-12-30 17:01:09.045	debug	
      lgtv-rs.0	2017-12-30 17:01:09.045	debug	Send Command: kh 00 ff
      lgtv-rs.0	2017-12-30 17:01:04.075	debug	name:contrast
      lgtv-rs.0	2017-12-30 17:01:04.075	debug	req:{"cmd":"g","id":"01","ack":true,"val":"5a"}
      lgtv-rs.0	2017-12-30 17:01:04.074	debug	LG TV incomming: g 01 OK5ax
      lgtv-rs.0	2017-12-30 17:01:04.045	debug	
      lgtv-rs.0	2017-12-30 17:01:04.045	debug	Send Command: kg 00 ff
      lgtv-rs.0	2017-12-30 17:00:59.074	debug	name:volume
      lgtv-rs.0	2017-12-30 17:00:59.074	debug	req:{"cmd":"f","id":"01","ack":true,"val":"06"}
      lgtv-rs.0	2017-12-30 17:00:59.073	debug	LG TV incomming: f 01 OK06x
      lgtv-rs.0	2017-12-30 17:00:59.045	debug	
      lgtv-rs.0	2017-12-30 17:00:59.045	debug	Send Command: kf 00 ff
      lgtv-rs.0	2017-12-30 17:00:54.080	debug	name:mute
      lgtv-rs.0	2017-12-30 17:00:54.079	debug	req:{"cmd":"e","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:00:54.079	debug	LG TV incomming: e 01 OK01x
      lgtv-rs.0	2017-12-30 17:00:54.045	debug	
      lgtv-rs.0	2017-12-30 17:00:54.045	debug	Send Command: ke 00 ff
      lgtv-rs.0	2017-12-30 17:00:49.075	debug	name:screen-mute
      lgtv-rs.0	2017-12-30 17:00:49.075	debug	req:{"cmd":"d","id":"01","ack":true,"val":"00"}
      lgtv-rs.0	2017-12-30 17:00:49.074	debug	LG TV incomming: d 01 OK00x
      lgtv-rs.0	2017-12-30 17:00:49.045	debug	
      lgtv-rs.0	2017-12-30 17:00:49.045	debug	Send Command: kd 00 ff
      lgtv-rs.0	2017-12-30 17:00:44.106	debug	name:aspect-ratio
      lgtv-rs.0	2017-12-30 17:00:44.106	debug	req:{"cmd":"c","id":"01","ack":true,"val":"02"}
      lgtv-rs.0	2017-12-30 17:00:44.106	debug	LG TV incomming: c 01 OK02x
      lgtv-rs.0	2017-12-30 17:00:44.045	debug	
      lgtv-rs.0	2017-12-30 17:00:44.045	debug	Send Command: kc 00 ff
      lgtv-rs.0	2017-12-30 17:00:44.045	debug	name:power
      lgtv-rs.0	2017-12-30 17:00:44.045	debug	req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0	2017-12-30 17:00:44.044	debug	LG TV incomming: a 01 OK01x
      lgtv-rs.0	2017-12-30 17:00:44.012	debug	
      lgtv-rs.0	2017-12-30 17:00:44.012	debug	Send Command: ka 00 ff
      lgtv-rs.0	2017-12-30 17:00:39.010	info	LG TV connected to: 192.168.11.95:23
      lgtv-rs.0	2017-12-30 17:00:39.000	debug	LG TV connect to: 192.168.11.95:23
      lgtv-rs.0	2017-12-30 17:00:38.998	info	starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.lgtv-rs, node: v8.9.3
      lgtv-rs.0	2017-12-30 17:00:38.909	debug	statesDB connected
      lgtv-rs.0	2017-12-30 17:00:38.894	debug	objectDB connected
      lgtv-rs.0	2017-12-30 17:00:36.163	info	Reconnect after 60 sec...
      lgtv-rs.0	2017-12-30 17:00:36.162	error	Error socket: Reconnect after 15 sec...
      lgtv-rs.0	2017-12-30 17:00:36.162	error	LG TV LG TV disconnected
      
      posted in ioBroker драйвера
      M
      MSapogov
    • Драйвер lgtv-rs

      Решил оживить свой телевизор, подключив его к IoB, нашел драйвер от installator-а

      https://github.com/instalator/ioBroker.lgtv-rs

      Взял переходник RS232-TTL и ESP8266

      Сначала использовал прошивку TCP2UART https://esp8266.ru/forum/threads/proshi … o-web.146/

      Драйвер не заработал, потом по совету installator-а, прошил ESP8266.TelnetToSerial https://github.com/instalator/ESP8266.TelnetToSerial

      Драйвер не ожил все равно 😞

      Немного поразбиравшись с проблеммой обнаружил, что в исходниках https://github.com/instalator/ioBroker. … er/main.js в 132 строке явно указан IP адрес… И такое ощущуние, что IP и порт, указанный в настройках не воспринимаются.

      Изменив в main.js IP адрес на свой драйвер начал шевелиться, но не полностью...

      Каждую минуту драйвер рестартует... лог

      ! ````
      host.Bee-IoT 2017-12-29 10:36:33.867 info Restart adapter system.adapter.lgtv-rs.0 because enabled
      host.Bee-IoT 2017-12-29 10:36:33.867 error instance system.adapter.lgtv-rs.0 terminated with code 0 (OK)
      host.Bee-IoT 2017-12-29 10:36:33.867 error Caught by controller[0]: at TCP.onread (net.js:594:20)
      host.Bee-IoT 2017-12-29 10:36:33.867 error Caught by controller[0]: at Socket.Readable.push (_stream_readable.js:208:10)
      host.Bee-IoT 2017-12-29 10:36:33.867 error Caught by controller[0]: at readableAddChunk (_stream_readable.js:250:11)
      host.Bee-IoT 2017-12-29 10:36:33.867 error Caught by controller[0]: at addChunk (_stream_readable.js:263:12)
      host.Bee-IoT 2017-12-29 10:36:33.867 error Caught by controller[0]: at Socket.emit (events.js:211:7)
      host.Bee-IoT 2017-12-29 10:36:33.867 error Caught by controller[0]: at emitOne (events.js:116:13)
      host.Bee-IoT 2017-12-29 10:36:33.867 error Caught by controller[0]: at Socket. (/opt/iobroker/node_modules/iobroker.lgtv-rs/main.js:159:13)
      host.Bee-IoT 2017-12-29 10:36:33.867 error Caught by controller[0]: at parse (/opt/iobroker/node_modules/iobroker.lgtv-rs/main.js:199:61)
      host.Bee-IoT 2017-12-29 10:36:33.866 error Caught by controller[0]: TypeError: Cannot read property 'name' of undefined
      lgtv-rs.0 2017-12-29 10:36:33.796 debug Send Command: kc 00 ff
      lgtv-rs.0 2017-12-29 10:36:33.796 debug name:power
      lgtv-rs.0 2017-12-29 10:36:33.796 debug req:{"cmd":"a","id":"01","ack":true,"val":"01"}
      lgtv-rs.0 2017-12-29 10:36:33.795 debug LG TV incomming: a 01 OK01x
      lgtv-rs.0 2017-12-29 10:36:33.765 debug Send Command: ka 00 ff
      lgtv-rs.0 2017-12-29 10:36:28.758 info LG TV connected to: 192.168.11.95:23
      lgtv-rs.0 2017-12-29 10:36:28.747 debug LG TV connect to: 192.168.11.95:23
      lgtv-rs.0 2017-12-29 10:36:28.745 info starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.lgtv-rs, node: v8.9.3
      lgtv-rs.0 2017-12-29 10:36:28.658 debug statesDB connected
      lgtv-rs.0 2017-12-29 10:36:28.642 debug objectDB connected
      host.Bee-IoT 2017-12-29 10:36:28.402 info instance system.adapter.lgtv-rs.0 started with pid 27132
      host.Bee-IoT 2017-12-29 10:36:28.396 info object change system.adapter.lgtv-rs.0
      host.Bee-IoT 2017-12-29 10:36:05.394 info Restart adapter system.adapter.lgtv-rs.0 because enabled

      Потом спустя какое-то время (на следующий день)…
      
      Обнаружил, что в объектах lgtv-rs.0 появились названия и их значения. Подумал О! чудо... работает!
      
      Но в логах все также продолжались падения драйвера.
      
      Потом все таки обнаружил условие при котором драйвер работает без ошибок. Телевизор не должен быть включен на просмотр телевидения (вход analog1). Как только выбираю другой источник сигнала (av1, hdmi1, hdmi2, component1), то драйвер работает и не перезагружается каждую минуту.
      
      Закоментил строки с 199 по 203
      
      >! ````
      lgtv-rs.0	2017-12-30 16:52:43.832	info	LG TV connected to: 192.168.11.95:23
      lgtv-rs.0	2017-12-30 16:52:43.816	info	starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.lgtv-rs, node: v8.9.3
      lgtv-rs.0	2017-12-30 16:52:40.982	info	terminating
      lgtv-rs.0	2017-12-30 16:52:40.978	info	Reconnect after 60 sec...
      lgtv-rs.0	2017-12-30 16:52:40.978	error	Error socket: Reconnect after 15 sec...
      lgtv-rs.0	2017-12-30 16:52:40.978	error	LG TV LG TV disconnected
      

      Дополнительно появилась вкладка remote. Нажатие на кнопки работает.

      posted in ioBroker драйвера
      M
      MSapogov
    • RE: Аудиоплеер для мультирума

      @pistoletov:

      Спасибо большое! Так работает. Если запускать на другом аудиоустройстве что поменять кроме -o. Мас адресс другой поставить? `
      Я меняю -o -n -m

      posted in Железо
      M
      MSapogov
    • RE: Аудиоплеер для мультирума

      @pistoletov:

      Да, так работает. Проблема именно в systemctl start запуске. Запускать пробовал как от рута так и от другого пользователя. `
      Попробуй вот такую строчку (Прям скопируй)

      ExecStart= /usr/bin/squeezelite -D -v -o default:CARD=sunxicodec -n Bathroom -m 00:00:00:00:00:05

      PS: недавно добавлял еще 2 зоны… делал по этой-же инструкции... все заработало.

      posted in Железо
      M
      MSapogov
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo