Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Русский
    3. ioBroker
    4. Ошибка
    5. ioBroker ошибки
    6. Разные ошибки

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Разные ошибки

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Haus last edited by

      @jeorgep:

      @Haus:

      @Bluefox:

      А у меня например все начинаются с 02, а ещё есть "-" или "." в имени. Вот я и отфильтровал все сенсоры с точкой.

      Надо найти правило, как можно распознать сенсоры. А пока я просто уберу любые фильтры. `
      Вот у конкурентов в коде, я так понимаю папки которые всегда присутствуют отбрасывают. Я у себя вернул фильтр и драйвер находит на один больше, это оказывается папка /simultaneous.

      ! function scanDevices() {
      ! if (!defined('ONEWIRE_SERVER')) {
      ! return 0;
      ! }
      ! $ow=new OWNet(ONEWIRE_SERVER);
      ! $tmp=$ow->get("/",OWNET_MSG_DIR,false);
      ! if (!$tmp) {
      ! return 0;
      ! }
      ! $devices=explode(',', $tmp);
      ! $total=count($devices);
      ! for($i=0;$i<$total;$i++) {
      ! if (
      ! $devices[$i]=='/alarm' ||
      ! $devices[$i]=='/structure' ||
      ! $devices[$i]=='/system' ||
      ! $devices[$i]=='/settings' ||
      ! $devices[$i]=='/uncached' ||
      ! $devices[$i]=='/simultaneous' ||
      ! $devices[$i]=='/statistics' ||
      ! preg_match('/bus.\d+$/', $devices[$i]) ||
      ! 0
      ! ) {
      ! continue;
      ! }
      ! $udid=preg_replace('/^//', '', $devices[$i]);
      ! $rec=SQLSelectOne("SELECT * FROM owdevices WHERE UDID='".$udid."'");
      ! if (!$rec['ID']) {
      ! $rec['UDID']=$udid;
      ! $rec['TITLE']=$rec['UDID'];
      ! $rec['STATUS']=1;
      ! $rec['ONLINE_INTERVAL']=60*60;
      ! $rec['LOG']=date('Y-m-d H:i:s').' Added';
      ! $rec['ID']=SQLInsert('owdevices', $rec);
      ! }
      ! $this->updateDevice($rec['ID']);
      ! }
      ! }

      ! if ($parse_php_type && $get_type!=OWNET_MSG_DIR_ALL){
      ! $tmp =explode('/',$path);$c=count($tmp)-1;
      ! if ($c>0){ // must be something like '/dir/file' array('dir', 'file'), count()-1 = 1 > 0
      ! $variavel =$tmp[$c]; // get last two uri args
      ! $ow =$tmp[$c-1];
      ! unset($tmp);
      ! if (preg_match('/([0-9A-F]{2})[.]{0,1}[0-9A-F]{12}/',$ow,$tmp)){ // check if ow is an OW id ("XX.ZZZZZZZZZZZZ $
      ! $tmp=$tmp[1];
      ! if (!isset($OWNET_GLOBAL_CACHE_STRUCTURE[$tmp.'/'.$variavel])){ // check if we have structure information
      ! $tmp_v=@$this->get("/structure/$tmp/$variavel",OWNET_MSG_READ,false,false); // get estrutucture i$
      ! if ($tmp_v!==NULL){
      ! $tmp_v=explode(',',$tmp_v); // ok 😄 we will get $
      ! $OWNET_GLOBAL_CACHE_STRUCTURE[$tmp.'/'.$variavel]=$tmp_v;
      ! $type=$tmp_v;
      ! }
      ! }else
      ! $type=$OWNET_GLOBAL_CACHE_STRUCTURE[$tmp.'/'.$variavel];
      ! }
      ! }
      ! unset($tmp,$tmp_v,$variavel,$ow,$c);
      ! } `

      строка:

      if (preg_match('/([0-9A-F]{2})[.]{0,1}[0-9A-F]{12}/',$ow,$tmp)){

      Не будет находить моих датчиков.

      Необходимо как я писал выше:

      if (preg_match('/([0-9A-F]{2})[.\dA-F]{0,1}[0-9A-F]{12}/',$ow,$tmp)){

      это оказывается папка /simultaneous.

      Странно, она не совпадает с данным регулярным выражением `
      Я её увидел, когда не было фильтра драйвер написал что нашел 24(на самом деле 16) датчика. Я ему Ок, ан мне показывает мои 16 и 1 simultaneous temperature, вот я и подумал что когда фильтр есть он пишет 17 а показывает нормально 16.

      1 Reply Last reply Reply Quote 0
      • J
        jeorgep last edited by

        За формат отвечает ключ -f

        Из man owfs

           -f --format="f[.]i[[.]c]"
               Display format for the 1-wire devices. Each device has a 8byte address, consisting of:
        
               f      family code, 1 byte
        
               i      ID number, 6 bytes
        
               c      CRC checksum, 1 byte
        
               Possible formats are f.i (default, 01.A1B2C3D4E5F6), fi fic f.ic f.i.c and fi.c
        
               All formats are accepted as input, but the output will be in the specified format.
        
               The address elements can be retrieved from a device entry in owfs by the family, id and crc8 properties, and as a  whole  with
               address.  The reversed id and address can be retrieved as r_id and r_address.
        
        

        По умолчанию - формат f.i

        Я когда-то, для экспериментов установил format = fic

        Сейчас для меня некритично и я вернул format = f.i чтоб было как у всех 🙂

        ! root@art4:~# ls -l /mnt/1wire/
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 26.1DE491010000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 26.8725A4010000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 26.A9CA91010000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 26.ECEA91010000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 26.F1EA91010000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.0D1C2A050000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.34C848040000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.3B42D8050000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.799F74040000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.864975040000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.B0A92A050000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.E5BC2A050000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 29.191D16000000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 29.276E0C000000
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 29.45B70C000000
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 alarm
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.1
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.2
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.3
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.4
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.5
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.6
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.7
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.8
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 settings
        ! drwxrwxrwx 1 root root 4096 сер 28 08:39 simultaneous
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 statistics
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 structure
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 system
        ! drwxr-xr-x 1 root root 4096 сер 28 08:38 uncached

        1 Reply Last reply Reply Quote 0
        • J
          jeorgep last edited by

          @Haus:

          Но при этом запустился ещё один owsf.0 `
          временно, как workaround, я установил на слейве скрипт, который отслеживает и при появлении дубликатов драйверов, запущенных мастером перезапускает iobroker на слейве:

          root@art1:~# cat /usr/local/bin/iobroker_duplicate_checker.sh
          #!/bin/bash
          
          count=`ps ax | grep 'io[.b]' | grep -v bash | awk -F" " '{print $5}' | uniq -d | wc -l`
          
          if [ "$count" -gt "0" ]
            then
            systemctl restart iobroker
          fi
          exit 0
          
          

          И добавил в /etc/crontab

          # Check Duplicate instances of iobroker and restart iobroker on a slave
          *  *    * * *   root    /usr/local/bin/iobroker_duplicate_checker.sh
          
          1 Reply Last reply Reply Quote 0
          • H
            Haus last edited by

            @jeorgep:

            @Haus:

            Но при этом запустился ещё один owsf.0 `
            временно, как workaround, я установил на слейве скрипт, который отслеживает и при появлении дубликатов драйверов, запущенных мастером перезапускает iobroker на слейве:

            root@art1:~# cat /usr/local/bin/iobroker_duplicate_checker.sh
            #!/bin/bash
            
            count=`ps ax | grep 'io[.b]' | grep -v bash | awk -F" " '{print $5}' | uniq -d | wc -l`
            
            if [ "$count" -gt "0" ]
              then
              systemctl restart iobroker
            fi
            exit 0
            
            

            И добавил в /etc/crontab

            # Check Duplicate instances of iobroker and restart iobroker on a slave
            *  *    * * *   root    /usr/local/bin/iobroker_duplicate_checker.sh
            ```` `  
            

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

            1 Reply Last reply Reply Quote 0
            • H
              Haus last edited by

              @jeorgep:

              За формат отвечает ключ -f

              Из man owfs

                 -f --format="f[.]i[[.]c]"
                     Display format for the 1-wire devices. Each device has a 8byte address, consisting of:
              
                     f      family code, 1 byte
              
                     i      ID number, 6 bytes
              
                     c      CRC checksum, 1 byte
              
                     Possible formats are f.i (default, 01.A1B2C3D4E5F6), fi fic f.ic f.i.c and fi.c
              
                     All formats are accepted as input, but the output will be in the specified format.
              
                     The address elements can be retrieved from a device entry in owfs by the family, id and crc8 properties, and as a  whole  with
                     address.  The reversed id and address can be retrieved as r_id and r_address.
              
              

              По умолчанию - формат f.i

              Я когда-то, для экспериментов установил format = fic

              Сейчас для меня некритично и я вернул format = f.i чтоб было как у всех 🙂

              ! root@art4:~# ls -l /mnt/1wire/
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 26.1DE491010000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 26.8725A4010000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 26.A9CA91010000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 26.ECEA91010000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 26.F1EA91010000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.0D1C2A050000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.34C848040000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.3B42D8050000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.799F74040000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.864975040000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.B0A92A050000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 28.E5BC2A050000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 29.191D16000000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 29.276E0C000000
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 29.45B70C000000
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 alarm
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.1
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.2
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.3
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.4
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.5
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.6
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.7
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 bus.8
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 settings
              ! drwxrwxrwx 1 root root 4096 сер 28 08:39 simultaneous
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 statistics
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 structure
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 system
              ! drwxr-xr-x 1 root root 4096 сер 28 08:38 uncached `
              Тогда получается фильтр Bluefox'a правильный 🙂 , только лишний в ответе датчик?

              P.S. Bluefox уже всё сделал 0.3.4 🙂

              1 Reply Last reply Reply Quote 0
              • J
                jeorgep last edited by

                @Haus:

                После чистой установки owfs сколько не менял настройки драйвера появление дубликатов замечено не было `
                у меня были проблемы только на слейве - при перезапуске iobroker на мастере или рестарта мастер сервера.

                А так, как у меня там свой экземпляр javascript адаптера - при дубликате его - он перестает работать.

                ! Необходимость в двух серверах в том, что другой установлен на входной двери
                ! и обрабатывает информацию от датчиков тока возле щитка, ИК освещении перед дверью,
                ! герконов в двери и замке, RFID ключа, камеры в глазке и т.п.
                ! Делать связь через WiFi не стал - так как вор бы включил глушилку на частоте WiFi и открывай дверь,
                ! никакой сигнализации не будет. Поэтому протянул к слейву витую пару и завел все через нее.

                1 Reply Last reply Reply Quote 0
                • J
                  jeorgep last edited by

                  @Haus:

                  P.S. Bluefox уже всё сделал 0.3.4 🙂 `
                  Обновился до 0.3.4 - находит все датчики

                  (перешел на формат f.i который по умолчанию)

                  Большое спасибо Bluefox!

                  1 Reply Last reply Reply Quote 0
                  • J
                    jeorgep last edited by

                    @Bluefox:

                    На гите:

                    0.3.3 (2016-08-25)

                    • (bluefox) custom poll interval for every sensor

                    • (bluefox) fix list of sensors over ethernet more than 5 `
                      custom poll interval for every sensor - отличная возможность реально разгрузить проц,

                    датчики движения можно опрашивать в 2 сек, а например, температуру раз в минуту.

                    Нагрузка от OWFS уменьшилась с 20% до 4% по CPU!

                    1 Reply Last reply Reply Quote 0
                    • H
                      Haus last edited by

                      @jeorgep:

                      @Bluefox:

                      На гите:

                      0.3.3 (2016-08-25)

                      • (bluefox) custom poll interval for every sensor

                      • (bluefox) fix list of sensors over ethernet more than 5 `
                        custom poll interval for every sensor - отличная возможность реально разгрузить проц,

                      датчики движения можно опрашивать в 2 сек, а например, температуру раз в минуту.

                      Нагрузка от OWFS уменьшилась с 20% до 4% по CPU! `
                      Да я это запрашивал ещё в драйвере MegaD, там на порту могут быть датчики температуры с которых в некоторых случаях данные нужны часто. Так приходится через скрипт опрашивать порт чтобы не гонять драйвер чаще чем необходимо для других портов.

                      1 Reply Last reply Reply Quote 0
                      • M
                        MSapogov last edited by

                        Хочу установить Flot Charts

                        А в ответ ошибка````
                        ERROR: host.Bee-IoT Invalid version of "web". Installed "1.5.3", required ">=1.5.4

                        WEB обновлять не предлагает!
                        1 Reply Last reply Reply Quote 0
                        • I
                          instalator last edited by

                          @MSapogov:

                          Хочу установить Flot Charts

                          А в ответ ошибка````
                          ERROR: host.Bee-IoT Invalid version of "web". Installed "1.5.3", required ">=1.5.4

                          WEB обновлять не предлагает! `  
                          

                          WEB еще в тесте, новая версия только на GitHub

                          1 Reply Last reply Reply Quote 0
                          • E
                            electric last edited by

                            @instalator:

                            @MSapogov:

                            Хочу установить Flot Charts

                            А в ответ ошибка````
                            ERROR: host.Bee-IoT Invalid version of "web". Installed "1.5.3", required ">=1.5.4

                            WEB обновлять не предлагает! `  
                            

                            WEB еще в тесте, новая версия только на GitHub `
                            У меня WEB не устанавливается с github:

                            ! iobroker 2016-09-05 10:28:30.203 info exit 25 iobroker 2016-09-05 10:28:30.199 error host.vm32test Cannot install https://github.com/ioBroker/ioBroker.web/tarball/master: 1 iobroker 2016-09-05 10:28:30.190 info ERR! /npm-debug.log iobroker 2016-09-05 10:28:30.190 info npm iobroker 2016-09-05 10:28:30.188 info Please include the following file with any support request: iobroker 2016-09-05 10:28:30.187 info ERR! iobroker 2016-09-05 10:28:30.185 info iobroker 2016-09-05 10:28:30.184 info npm iobroker 2016-09-05 10:28:30.182 info iobroker 2016-09-05 10:28:30.054 info npm ERR! notarget iobroker 2016-09-05 10:28:30.054 info npm ERR! notarget It was specified as a dependency of 'iobroker.web' iobroker 2016-09-05 10:28:30.054 info npm ERR! notarget iobroker 2016-09-05 10:28:30.054 info npm ERR! notarget a package version that doesn't exist. iobroker 2016-09-05 10:28:30.054 info npm ERR! notarget This is most likely not a problem with npm itself.npm ERR! notarget In most cases you or one of your dependencies are requesting iobroker 2016-09-05 10:28:30.052 info ERR! notarget iobroker 2016-09-05 10:28:30.050 info npm iobroker 2016-09-05 10:28:30.050 info npm ERR! notarget ["0.0.1","0.0.2","0.0.3","0.0.4","0.1.1","0.1.2","1.0.0","1.1.0","1.1.1"] iobroker 2016-09-05 10:28:30.050 info npm ERR! notarget No compatible version found: iobroker.simple-api@'>=1.3.0'npm ERR! notarget Valid install targets: iobroker 2016-09-05 10:28:30.040 info ETARGET iobroker 2016-09-05 10:28:30.037 info npm ERR! npm v2.15.1npm ERR! code iobroker 2016-09-05 10:28:30.034 info npm ERR! node v4.4.4 iobroker 2016-09-05 10:28:30.032 info ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "https://github.com/ioBroker/ioBroker.web/tarball/master" "--production" "--prefix" "/opt/iobroker" iobroker 2016-09-05 10:28:30.030 info npm iobroker 2016-09-05 10:28:30.029 info Linux 3.2.0-4-amd64 iobroker 2016-09-05 10:28:30.026 info ERR! iobroker 2016-09-05 10:28:30.024 info iobroker 2016-09-05 10:28:30.020 info npm iobroker 2016-09-05 10:28:23.841 info npm install https://github.com/ioBroker/ioBroker.web/tarball/master --production --prefix "/opt/iobroker" (System call) iobroker 2016-09-05 10:28:23.774 info install https://github.com/ioBroker/ioBroker.web/tarball/master iobroker 2016-09-05 10:28:23.564 info url "https://github.com/ioBroker/ioBroker.web/tarball/master" --debug !

                            1 Reply Last reply Reply Quote 0
                            • Bluefox
                              Bluefox last edited by

                              @electric:

                              @instalator:

                              @MSapogov:

                              Хочу установить Flot Charts

                              А в ответ ошибка````
                              ERROR: host.Bee-IoT Invalid version of "web". Installed "1.5.3", required ">=1.5.4

                              WEB обновлять не предлагает! `  
                              

                              WEB еще в тесте, новая версия только на GitHub `
                              У меня WEB не устанавливается с github:

                              ! iobroker 2016-09-05 10:28:30.203 info exit 25 iobroker 2016-09-05 10:28:30.199 error host.vm32test Cannot install https://github.com/ioBroker/ioBroker.web/tarball/master: 1 iobroker 2016-09-05 10:28:30.190 info ERR! /npm-debug.log iobroker 2016-09-05 10:28:30.190 info npm iobroker 2016-09-05 10:28:30.188 info Please include the following file with any support request: iobroker 2016-09-05 10:28:30.187 info ERR! iobroker 2016-09-05 10:28:30.185 info iobroker 2016-09-05 10:28:30.184 info npm iobroker 2016-09-05 10:28:30.182 info iobroker 2016-09-05 10:28:30.054 info npm ERR! notarget iobroker 2016-09-05 10:28:30.054 info npm ERR! notarget It was specified as a dependency of 'iobroker.web' iobroker 2016-09-05 10:28:30.054 info npm ERR! notarget iobroker 2016-09-05 10:28:30.054 info npm ERR! notarget a package version that doesn't exist. iobroker 2016-09-05 10:28:30.054 info npm ERR! notarget This is most likely not a problem with npm itself.npm ERR! notarget In most cases you or one of your dependencies are requesting iobroker 2016-09-05 10:28:30.052 info ERR! notarget iobroker 2016-09-05 10:28:30.050 info npm iobroker 2016-09-05 10:28:30.050 info npm ERR! notarget ["0.0.1","0.0.2","0.0.3","0.0.4","0.1.1","0.1.2","1.0.0","1.1.0","1.1.1"] iobroker 2016-09-05 10:28:30.050 info npm ERR! notarget No compatible version found: iobroker.simple-api@'>=1.3.0'npm ERR! notarget Valid install targets: iobroker 2016-09-05 10:28:30.040 info ETARGET iobroker 2016-09-05 10:28:30.037 info npm ERR! npm v2.15.1npm ERR! code iobroker 2016-09-05 10:28:30.034 info npm ERR! node v4.4.4 iobroker 2016-09-05 10:28:30.032 info ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "https://github.com/ioBroker/ioBroker.web/tarball/master" "--production" "--prefix" "/opt/iobroker" iobroker 2016-09-05 10:28:30.030 info npm iobroker 2016-09-05 10:28:30.029 info Linux 3.2.0-4-amd64 iobroker 2016-09-05 10:28:30.026 info ERR! iobroker 2016-09-05 10:28:30.024 info iobroker 2016-09-05 10:28:30.020 info npm iobroker 2016-09-05 10:28:23.841 info npm install https://github.com/ioBroker/ioBroker.web/tarball/master --production --prefix "/opt/iobroker" (System call) iobroker 2016-09-05 10:28:23.774 info install https://github.com/ioBroker/ioBroker.web/tarball/master iobroker 2016-09-05 10:28:23.564 info url "https://github.com/ioBroker/ioBroker.web/tarball/master" --debug ! `
                              Установи сначала simple-api и socketio с гита

                              1 Reply Last reply Reply Quote 0
                              • M
                                MSapogov last edited by

                                @instalator:

                                @MSapogov:

                                Хочу установить Flot Charts

                                А в ответ ошибка````
                                ERROR: host.Bee-IoT Invalid version of "web". Installed "1.5.3", required ">=1.5.4

                                WEB обновлять не предлагает! `  
                                

                                WEB еще в тесте, новая версия только на GitHub `
                                А как его оттуда поставить-то. Там версия 1.7.0.

                                PS: Ой догадался…

                                npm install https://github.com/ioBroker/ioBroker.simple-api/tarball/master
                                npm install https://github.com/ioBroker/ioBroker.socketio/tarball/master
                                

                                А затем

                                npm install https://github.com/ioBroker/ioBroker.web/tarball/master
                                

                                Потом пришлось еще и````
                                npm install https://github.com/ioBroker/ioBroker.js-controller/tarball/master

                                1 Reply Last reply Reply Quote 0
                                • E
                                  electric last edited by

                                  @MSapogov:

                                  А как его оттуда поставить-то. Там версия 1.7.0.

                                  PS: Ой догадался… `
                                  А еще в админке есть волшебная кнопочка, которая позволяет ставить драйвера с гитхаб (или другого источника), можно её использовать.
                                  1238_pic_53.jpg
                                  1238_pic_54.jpg

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    MSapogov last edited by

                                    @electric:

                                    @MSapogov:

                                    А как его оттуда поставить-то. Там версия 1.7.0.

                                    PS: Ой догадался… А еще в админке есть волшебная кнопочка, которая позволяет ставить драйвера с гитхаб (или другого источника), можно её использовать.
                                    Спасибо!!! Век живи… Век учись...

                                    1 Reply Last reply Reply Quote 0
                                    • Bluefox
                                      Bluefox last edited by

                                      Недавно выяснил, что из командной строки с гита работает и так:

                                      npm install ioBroker/ioBroker.simple-api
                                      npm install ioBroker/ioBroker.socketio
                                      
                                      

                                      Просто к сведению.

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        spectrekr last edited by

                                        Пару ошибок, не знаю только у меня или еще у кого.

                                        Первое:

                                        При выполнении Iobroker update в консоли выскакивает такой warning, не критично, все работает, но в глаза бросается.

                                        ! (node) warning: possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit.
                                        ! Trace
                                        ! at TLSSocket.addListener (events.js:239:17)
                                        ! at TLSSocket.Readable.on (_stream_readable.js:680:33)
                                        ! at Request. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/npm/node_modules/npm-registry-client/lib/request.js:153:7)
                                        ! at emitOne (events.js:77:13)
                                        ! at Request.emit (events.js:169:7)
                                        ! at ClientRequest. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/npm/node_modules/request/request.js:791:10)
                                        ! at emitOne (events.js:82:20)
                                        ! at ClientRequest.emit (events.js:169:7)
                                        ! at tickOnSocket (_http_client.js:523:7)
                                        ! at onSocketNT (_http_client.js:535:5)</anonymous></anonymous>

                                        Второе:

                                        После обновления admin драйвера, на рабочей системе админка не открывается, ошибка в отладчике:

                                        ! TypeError: obj.common is undefined
                                        ! getObjects/
                                        Вот в этом куске кода, на 893 строчке файла admin.js

                                        ! // convert obj.history into obj.custom
                                        ! if (obj.common.history) {
                                        ! obj.common.custom = JSON.parse(JSON.stringify(obj.common.history));
                                        ! delete obj.common.history;
                                        ! }

                                        1 Reply Last reply Reply Quote 0
                                        • Bluefox
                                          Bluefox last edited by

                                          @spectrekr:

                                          Пару ошибок, не знаю только у меня или еще у кого.

                                          Первое: `
                                          Засунь request в try/catch

                                          try {
                                             request('myURL', function (a,b,body) {
                                             });
                                          } catch (e) {
                                          }
                                          
                                          

                                          Второе:

                                          После обновления admin драйвера, на рабочей системе админка не открывается, ошибка в отладчике:

                                          ! TypeError: obj.common is undefined
                                          ! getObjects/
                                          Вот в этом куске кода, на 893 строчке файла admin.js

                                          ! // convert obj.history into obj.custom
                                          ! if (obj.common.history) {
                                          ! obj.common.custom = JSON.parse(JSON.stringify(obj.common.history));
                                          ! delete obj.common.history;
                                          ! }

                                          Поправь строчку на

                                          if (obj.common.history)
                                          

                                          в

                                          if (obj.common && obj.common.history)
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            spectrekr last edited by

                                            @Bluefox:

                                            Поправь строчку на

                                            if (obj.common.history)
                                            

                                            в

                                            if (obj.common && obj.common.history)
                                            ```` `  
                                            

                                            Сработало, спасибо!

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            432
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            27
                                            192
                                            51757
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo