Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Русский
  3. ioBroker
  4. ioBroker драйвера
  5. Драйвер Screenshot with PhantomJS

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    15
    1
    448

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.0k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

Драйвер Screenshot with PhantomJS

Geplant Angeheftet Gesperrt Verschoben ioBroker драйвера
6 Beiträge 2 Kommentatoren 2.1k Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • L Offline
    L Offline
    Lstt
    schrieb am zuletzt editiert von
    #1

    Доброго времени суток! Благодарим Bluefox за новый драйвер Screenshot with PhantomJS. На данный момент доступен в репозитории online..PhantomJs - консольный браузер.

    Для чего нужен драйвер? К примеру, пишем скрипт:

    sendTo('phantomjs.0', 'send', {
        url: 'http://localhost:8082/flot/index.html?l%5B0%5D%5Bid%5D=system.adapter.admin.0.memHeapTotal&l%5B0%5D%5Boffset%5D=0&l%5B0%5D%5Bart%5D=average&l%5B0%5D%5Bcolor%5D=%23FF0000&l%5B0%5D%5Bthickness%5D=3&l%5B0%5D%5Bshadowsize%5D=3&timeArt=relative&relativeEnd=now&range=10&live=false&aggregateType=step&aggregateSpan=300&hoverDetail=false&useComma=false&zoom=false',
        output: 'image.png',
        width: 300,
        height: 200,
        renderTime: 10000,
        online: true
    }, function (result) {
        console.log(result.error + ' ' + result.output);
    });
    
    

    Результатом выполнения скрипта будет сохранение файла image.png - графический вариант, например, динамического графика Flot, который можно использовать по своему усмотрению..Например, отсылать в драйвер Телеграм по запросу или на почту или куда угодно! :)

    renderTime: 10000 - время, максимум в течении которого будет отрисована страничка;

    1 Antwort Letzte Antwort
    0
    • L Offline
      L Offline
      Lstt
      schrieb am zuletzt editiert von
      #2

      Переустановил IOBroker, теперь при повторной установке драйвера:

      ! OPENSERVER 2016-04-30 15:26:05 info host.OPENSERVER Restart adapter system.adapter.phantomjs.0 because enabled OPENSERVER 2016-04-30 15:26:05 error host.OPENSERVER instance system.adapter.phantomjs.0 terminated with code 1 () OPENSERVER 2016-04-30 15:26:04 info host.OPENSERVER instance system.adapter.phantomjs.0 started with pid 752 OPENSERVER 2016-04-30 15:25:59 info host.OPENSERVER Restart adapter system.adapter.phantomjs.0 because enabled OPENSERVER 2016-04-30 15:25:59 error host.OPENSERVER instance system.adapter.phantomjs.0 terminated with code 1 () host-OPENSERVER 2016-04-30 15:25:58 info instance system.adapter.phantomjs.0 started with pid 2848 host-OPENSERVER 2016-04-30 15:25:55 info Restart adapter system.adapter.phantomjs.0 because enabled host-OPENSERVER 2016-04-30 15:25:55 error instance system.adapter.phantomjs.0 terminated with code 1 () iobroker 2016-04-30 15:25:54 info exit 0 iobroker 2016-04-30 15:25:54 info host.OPENSERVER object system.adapter.phantomjs.0 created !
      В чём может быть проблема?

      1 Antwort Letzte Antwort
      0
      • BluefoxB Offline
        BluefoxB Offline
        Bluefox
        schrieb am zuletzt editiert von
        #3

        @Lstt:

        Переустановил IOBroker, теперь при повторной установке драйвера:

        ! OPENSERVER 2016-04-30 15:26:05 info host.OPENSERVER Restart adapter system.adapter.phantomjs.0 because enabled OPENSERVER 2016-04-30 15:26:05 error host.OPENSERVER instance system.adapter.phantomjs.0 terminated with code 1 () OPENSERVER 2016-04-30 15:26:04 info host.OPENSERVER instance system.adapter.phantomjs.0 started with pid 752 OPENSERVER 2016-04-30 15:25:59 info host.OPENSERVER Restart adapter system.adapter.phantomjs.0 because enabled OPENSERVER 2016-04-30 15:25:59 error host.OPENSERVER instance system.adapter.phantomjs.0 terminated with code 1 () host-OPENSERVER 2016-04-30 15:25:58 info instance system.adapter.phantomjs.0 started with pid 2848 host-OPENSERVER 2016-04-30 15:25:55 info Restart adapter system.adapter.phantomjs.0 because enabled host-OPENSERVER 2016-04-30 15:25:55 error instance system.adapter.phantomjs.0 terminated with code 1 () iobroker 2016-04-30 15:25:54 info exit 0 iobroker 2016-04-30 15:25:54 info host.OPENSERVER object system.adapter.phantomjs.0 created !
        В чём может быть проблема? `
        Фантом падает. И его снова запускают.

        Останови его и запусти из консоли

        cd …iobroker

        iobroker stop phantomjs

        node node_modules/iobroker.phantomjs --force

        Что видно?

        1 Antwort Letzte Antwort
        0
        • L Offline
          L Offline
          Lstt
          schrieb am zuletzt editiert von
          #4

          Командная строка:

          ! ````
          C:\iobroker>iobroker stop phantomjs
          C:\iobroker>node node_modules/iobroker.js-controller/iobroker.js stop phantomjs
          Adapter "phantomjs.0 stopped.
          C:\iobroker>node node_modules/iobroker.phantomjs --force
          module.js:338
          throw err;
          ^
          Error: Cannot find module 'phantomjs'
          at Function.Module._resolveFilename (module.js:336:15)
          at Function.Module._load (module.js:278:25)
          at Module.require (module.js:365:17)
          at require (module.js:384:17)
          at Object. <anonymous>(C:\iobroker\node_modules\iobroker.phantomjs\main.js:9
          :17)
          at Module._compile (module.js:460:26)
          at Object.Module._extensions..js (module.js:478:10)
          at Module.load (module.js:355:32)
          at Function.Module._load (module.js:310:12)
          at Function.Module.runMain (module.js:501:10)
          ! C:\iobroker></anonymous>

          1 Antwort Letzte Antwort
          0
          • BluefoxB Offline
            BluefoxB Offline
            Bluefox
            schrieb am zuletzt editiert von
            #5

            Поправил

            1 Antwort Letzte Antwort
            0
            • L Offline
              L Offline
              Lstt
              schrieb am zuletzt editiert von
              #6

              Заработало!

              1 Antwort Letzte Antwort
              0
              Antworten
              • In einem neuen Thema antworten
              Anmelden zum Antworten
              • Älteste zuerst
              • Neuste zuerst
              • Meiste Stimmen


              Support us

              ioBroker
              Community Adapters
              Donate

              697

              Online

              32.5k

              Benutzer

              81.6k

              Themen

              1.3m

              Beiträge
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
              ioBroker Community 2014-2025
              logo
              • Anmelden

              • Du hast noch kein Konto? Registrieren

              • Anmelden oder registrieren, um zu suchen
              • Erster Beitrag
                Letzter Beitrag
              0
              • Home
              • Aktuell
              • Tags
              • Ungelesen 0
              • Kategorien
              • Unreplied
              • Beliebt
              • GitHub
              • Docu
              • Hilfe