Skip to content

JavaScript

Hilfe für Skripterstellung mit JavaScript

2.5k Themen 49.1k Beiträge

NEWS

  • Funktionen in gemeinsame Module auslagern

    15
    0 Stimmen
    15 Beiträge
    1k Aufrufe
    CodierknechtC
    @ticaki sagte in Funktionen in gemeinsame Module auslagern: Falls das nicht klar war Mir schon ;-)
  • Probleme mit der Regelung der PS und Delta 2 Max

    6
    0 Stimmen
    6 Beiträge
    684 Aufrufe
    HomoranH
    @homoran sagte in Probleme mit der Regelung der PS und Delta 2 Max: du gibst mir den Link wo das hin soll
  • [gelöst] - TypeError: Converting circular structure to JSON

    3
    0 Stimmen
    3 Beiträge
    158 Aufrufe
    OliverIOO
    @codierknecht subobjekte von repsonse enthalten wieder referenzen auf sich oder ein anderes objekt in der hierarchie. das führt zu einer endlosschleife in der ausgabe.
  • Datenpunkte in MQTT Json Bündeln

    16
    0 Stimmen
    16 Beiträge
    1k Aufrufe
    SunshinemakerS
    @MartinP Danke für deinen Vorschlag :) @mickym Ich bin ausgestiegen bei :"Ich hab ehrlich keine Lust mehr zu zeigen..." Ich hab eine Lösung für mich gefunden und bin zufrieden. PS: Kann NodeRed RSCP für die Anbindung vom E3/DC S10 Pro ?????
  • [gelöst] DP mit CRON anlegen

    3
    1
    0 Stimmen
    3 Beiträge
    247 Aufrufe
    I
    @paul53 Vielen Dank :+1:
  • <gelöst> Unbekannte Logs - Woher kommen die?

    8
    0 Stimmen
    8 Beiträge
    657 Aufrufe
    O
    @thomas-braun sagte in Unbekannte Logs - Woher kommen die?: iob diag sagt? Spoiler ======== Start marking the full check here ========= Skript v.2023-10-10 *** BASE SYSTEM *** Static hostname: raspberrypi Icon name: computer Operating System: Raspbian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-rpi7-rpi-v8 Architecture: arm64 Model : Raspberry Pi 4 Model B Rev 1.5 Docker : false Virtualization : none Kernel : aarch64 Userland : armhf Systemuptime and Load: 22:27:48 up 34 min, 2 users, load average: 0.45, 0.38, 0.44 CPU threads: 4 *** RASPBERRY THROTTLING *** Current issues: No throttling issues detected. Previously detected issues: No throttling issues detected. *** Time and Time Zones *** Local time: Sat 2024-01-27 22:27:49 CET Universal time: Sat 2024-01-27 21:27:49 UTC RTC time: n/a Time zone: Europe/Berlin (CET, +0100) System clock synchronized: yes NTP service: active RTC in local TZ: no *** User and Groups *** pi /home/pi pi adm dialout cdrom sudo audio video plugdev games users input render netdev gpio i2c spi iobroker *** X-Server-Setup *** X-Server: false Desktop: Terminal: tty Boot Target: multi-user.target *** MEMORY *** total used free shared buff/cache available Mem: 8.2G 1.1G 6.8G 1.2M 412M 7.1G Swap: 104M 0B 104M Total: 8.3G 1.1G 6.9G 7810 M total memory 1060 M used memory 1055 M active memory 165 M inactive memory 6472 M free memory 35 M buffer memory 357 M swap cache 99 M total swap 0 M used swap 99 M free swap Raspberry only: oom events: 0 lifetime oom required: 0 Mbytes total time in oom handler: 0 ms max time spent in oom handler: 0 ms *** FAILED SERVICES *** UNIT LOAD ACTIVE SUB DESCRIPTION 0 loaded units listed. *** FILESYSTEM *** Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 3.6G 0 3.6G 0% /dev tmpfs tmpfs 782M 1.2M 780M 1% /run /dev/sda2 ext4 235G 3.9G 219G 2% / tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs tmpfs 5.0M 16K 5.0M 1% /run/lock /dev/sda1 vfat 510M 93M 418M 19% /boot/firmware tmpfs tmpfs 782M 0 782M 0% /run/user/1000 Messages concerning ext4 filesystem in dmesg: [Sat Jan 27 21:53:09 2024] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 smsc95xx.macaddr=D8:3A:DD:66:17:0D vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000 console=ttyS0,115200 console=tty1 root=PARTUUID=2a065028-02 rootfstype=ext4 fsck.repair=yes rootwait [Sat Jan 27 21:53:14 2024] EXT4-fs (sda2): mounted filesystem with ordered data mode. Quota mode: none. [Sat Jan 27 21:53:16 2024] EXT4-fs (sda2): re-mounted. Quota mode: none. Show mounted filesystems \(real ones only\): TARGET SOURCE FSTYPE OPTIONS / /dev/sda2 ext4 rw,noatime `-/boot/firmware /dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro Files in neuralgic directories: /var: 403M /var/ 159M /var/cache 153M /var/cache/apt 107M /var/lib 79M /var/cache/apt/archives Archived and active journals take up 36.3M in the file system. /opt/iobroker/backups: 12M /opt/iobroker/backups/ /opt/iobroker/iobroker-data: 393M /opt/iobroker/iobroker-data/ 357M /opt/iobroker/iobroker-data/files 89M /opt/iobroker/iobroker-data/files/echarts.admin 67M /opt/iobroker/iobroker-data/files/javascript.admin 57M /opt/iobroker/iobroker-data/files/echarts The five largest files in iobroker-data are: 28M /opt/iobroker/iobroker-data/objects.jsonl 24M /opt/iobroker/iobroker-data/files/echarts/static/js/main.2b7495c2.js.map 24M /opt/iobroker/iobroker-data/files/echarts.admin/chart/static/js/main.2b7495c2.js.map 23M /opt/iobroker/iobroker-data/files/echarts.admin/static/js/main.245b61c0.js.map 22M /opt/iobroker/iobroker-data/files/modbus.admin/static/js/main.b5f6766c.js.map USB-Devices by-id: USB-Sticks - Avoid direct links to /dev/* in your adapter setups, please always prefer the links 'by-id': find: '/dev/serial/by-id/': No such file or directory *** NodeJS-Installation *** /usr/bin/nodejs v18.19.0 /usr/bin/node v18.19.0 /usr/bin/npm 10.2.3 /usr/bin/npx 10.2.3 /usr/bin/corepack 0.22.0 nodejs: Installed: 18.19.0-1nodesource1 Candidate: 18.19.0-1nodesource1 Version table: *** 18.19.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 100 /var/lib/dpkg/status 18.18.2-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.18.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.18.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.17.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.17.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.16.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.16.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.15.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.14.2-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.14.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.14.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.13.0+dfsg1-1+rpi1 500 500 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf Packages 18.13.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.12.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.11.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.10.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.9.1-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.9.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.8.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.7.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.6.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.5.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.4.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.3.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.2.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.1.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages 18.0.0-1nodesource1 1001 500 https://deb.nodesource.com/node_18.x nodistro/main armhf Packages Temp directories causing npm8 problem: 0 No problems detected Errors in npm tree: *** ioBroker-Installation *** ioBroker Status iobroker is running on this host. Objects type: jsonl States type: jsonl Core adapters versions js-controller: 5.0.17 admin: 6.12.0 javascript: 7.1.6 Adapters from github: 1 Adapter State + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.backitup.0 : backitup : raspberrypi - enabled system.adapter.daswetter.0 : daswetter : raspberrypi - enabled system.adapter.discovery.0 : discovery : raspberrypi - disabled system.adapter.dwd.0 : dwd : raspberrypi - disabled + system.adapter.echarts.0 : echarts : raspberrypi - enabled + system.adapter.email.0 : email : raspberrypi - enabled + system.adapter.energiefluss.0 : energiefluss : raspberrypi - enabled + system.adapter.heatingcontrol.0 : heatingcontrol : raspberrypi - enabled + system.adapter.history.0 : history : raspberrypi - enabled + system.adapter.hm-rega.0 : hm-rega : raspberrypi - enabled + system.adapter.hm-rpc.0 : hm-rpc : raspberrypi - enabled, port: 0 + system.adapter.hm-rpc.1 : hm-rpc : raspberrypi - enabled, port: 0 + system.adapter.hm-rpc.2 : hm-rpc : raspberrypi - enabled, port: 0 system.adapter.icons-mfd-svg.0 : icons-mfd-svg : raspberrypi - disabled system.adapter.icons-ultimate-png.0 : icons-ultimate-png : raspberrypi - disabled system.adapter.info.0 : info : raspberrypi - disabled + system.adapter.javascript.0 : javascript : raspberrypi - enabled system.adapter.mbus.0 : mbus : raspberrypi - disabled, port: 3493 system.adapter.modbus.0 : modbus : raspberrypi - disabled system.adapter.shelly.0 : shelly : raspberrypi - disabled, port: 1882, bind: 0.0.0.0 + system.adapter.signal-cmb.0 : signal-cmb : raspberrypi - enabled + system.adapter.smartmeter.0 : smartmeter : raspberrypi - enabled system.adapter.swiss-weather-api.0 : swiss-weather-api : raspberrypi - disabled system.adapter.vis-fancyswitch.0 : vis-fancyswitch : raspberrypi - disabled system.adapter.vis-hqwidgets.0 : vis-hqwidgets : raspberrypi - disabled system.adapter.vis-material-advanced.0 : vis-material-advanced : raspberrypi - disabled system.adapter.vis-metro.0 : vis-metro : raspberrypi - disabled system.adapter.vis-plumb.0 : vis-plumb : raspberrypi - disabled system.adapter.vis-rgraph.0 : vis-rgraph : raspberrypi - disabled system.adapter.vis.0 : vis : raspberrypi - enabled system.adapter.weatherunderground.0 : weatherunderground : raspberrypi - disabled + system.adapter.web.0 : web : raspberrypi - enabled, port: 8082, bind: 0.0.0.0, run as: admin + system.adapter.wiffi-wz.0 : wiffi-wz : raspberrypi - enabled system.adapter.yr.0 : yr : raspberrypi - disabled + instance is alive Enabled adapters with bindings + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.hm-rpc.0 : hm-rpc : raspberrypi - enabled, port: 0 + system.adapter.hm-rpc.1 : hm-rpc : raspberrypi - enabled, port: 0 + system.adapter.hm-rpc.2 : hm-rpc : raspberrypi - enabled, port: 0 + system.adapter.web.0 : web : raspberrypi - enabled, port: 8082, bind: 0.0.0.0, run as: admin ioBroker-Repositories stable : http://download.iobroker.net/sources-dist.json beta : http://download.iobroker.net/sources-dist-latest.json Active repo(s): stable Installed ioBroker-Instances Used repository: stable Adapter "admin" : 6.12.0 , installed 6.12.0 Adapter "backitup" : 2.9.8 , installed 2.9.8 Adapter "daswetter" : 3.1.13 , installed 3.1.12 [Updatable] Adapter "discovery" : 4.2.0 , installed 4.2.0 Adapter "dwd" : 2.8.5 , installed 2.8.5 Adapter "echarts" : 1.7.2 , installed 1.7.2 Adapter "email" : 1.2.2 , installed 1.2.2 Adapter "energiefluss" : 3.6.0 , installed 3.6.0 Adapter "heatingcontrol": 2.12.3 , installed 2.12.3 Adapter "history" : 3.0.1 , installed 3.0.1 Adapter "hm-rega" : 4.0.0 , installed 4.0.0 Adapter "hm-rpc" : 1.15.19 , installed 1.15.19 Adapter "icons-mfd-svg": 1.2.0 , installed 1.2.0 Adapter "icons-ultimate-png": 1.0.1, installed 1.0.1 Adapter "info" : 2.0.0 , installed 2.0.0 Adapter "javascript" : 7.1.6 , installed 7.1.6 Controller "js-controller": 5.0.17 , installed 5.0.17 Adapter "mbus" : 2.6.1 , installed 2.6.1 Adapter "modbus" : 6.0.1 , installed 6.0.1 Adapter "shelly" : 6.6.1 , installed 6.6.1 Adapter "signal-cmb" : 0.3.0 , installed 0.3.0 Adapter "simple-api" : 2.7.2 , installed 2.7.2 Adapter "smartmeter" : 3.4.0 , installed 3.4.0 Adapter "socketio" : 6.6.0 , installed 6.6.0 Adapter "swiss-weather-api": 2.0.3, installed 2.0.3 Adapter "vis" : 1.5.4 , installed 1.5.4 Adapter "vis-fancyswitch": 1.1.0 , installed 1.1.0 Adapter "vis-hqwidgets": 1.4.0 , installed 1.4.0 Adapter "vis-material-advanced": 1.7.4, installed 1.7.4 Adapter "vis-metro" : 1.2.0 , installed 1.2.0 Adapter "vis-plumb" : 1.0.2 , installed 1.0.2 Adapter "vis-rgraph" : 0.0.2 , installed 0.0.2 Adapter "weatherunderground": 3.6.0, installed 3.6.0 Adapter "web" : 6.1.10 , installed 6.1.10 Adapter "wiffi-wz" : 2.2.1 , installed 2.2.1 Adapter "ws" : 2.5.8 , installed 2.5.8 Adapter "yr" : 5.3.0 , installed 5.3.0 Objects and States Please stand by - This may take a while Objects: 16081 States: 13761 *** OS-Repositories and Updates *** W: http://raspbian.raspberrypi.com/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. Hit:1 http://archive.raspberrypi.com/debian bookworm InRelease Hit:2 http://raspbian.raspberrypi.com/raspbian bookworm InRelease Hit:3 https://deb.nodesource.com/node_18.x nodistro InRelease Reading package lists... W: http://raspbian.raspberrypi.com/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. Pending Updates: 0 *** Listening Ports *** Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 1001 15686 688/iobroker.js-con tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1001 15176 688/iobroker.js-con tcp 0 0 0.0.0.0:8181 0.0.0.0:* LISTEN 1001 18006 1137/io.wiffi-wz.0 tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 15133 704/sshd: /usr/sbin tcp 0 0 192.168.178.81:2001 0.0.0.0:* LISTEN 1001 18462 902/io.hm-rpc.0 tcp 0 0 192.168.178.81:2010 0.0.0.0:* LISTEN 1001 16006 946/io.hm-rpc.2 tcp 0 0 192.168.178.81:9292 0.0.0.0:* LISTEN 1001 18514 925/io.hm-rpc.1 tcp6 0 0 :::8081 :::* LISTEN 1001 17517 790/io.admin.0 tcp6 0 0 :::8082 :::* LISTEN 1001 18748 1122/io.web.0 tcp6 0 0 :::22 :::* LISTEN 0 15135 704/sshd: /usr/sbin udp 0 0 0.0.0.0:43542 0.0.0.0:* 1001 18613 1047/io.echarts.0 udp 0 0 0.0.0.0:43896 0.0.0.0:* 1001 17904 1092/io.signal-cmb. udp 0 0 0.0.0.0:52119 0.0.0.0:* 1001 18001 1137/io.wiffi-wz.0 udp 0 0 0.0.0.0:52380 0.0.0.0:* 1001 18505 925/io.hm-rpc.1 udp 0 0 0.0.0.0:56600 0.0.0.0:* 1001 16201 1077/io.heatingcont udp 0 0 0.0.0.0:60968 0.0.0.0:* 1001 18582 984/io.backitup.0 udp 0 0 0.0.0.0:36479 0.0.0.0:* 1001 44398 1320/io.javascript. udp 0 0 0.0.0.0:53295 0.0.0.0:* 1001 18460 902/io.hm-rpc.0 udp 0 0 0.0.0.0:37159 0.0.0.0:* 1001 18744 1122/io.web.0 udp 0 0 0.0.0.0:57754 0.0.0.0:* 1001 15288 823/io.email.0 udp 0 0 0.0.0.0:53846 0.0.0.0:* 1001 15353 871/io.hm-rega.0 udp 0 0 0.0.0.0:58106 0.0.0.0:* 1001 18648 1062/io.energieflus udp 0 0 0.0.0.0:38058 0.0.0.0:* 1001 15790 790/io.admin.0 udp 0 0 0.0.0.0:5353 0.0.0.0:* 104 15488 560/avahi-daemon: r udp 0 0 0.0.0.0:38292 0.0.0.0:* 1001 16629 688/iobroker.js-con udp 0 0 0.0.0.0:42576 0.0.0.0:* 1001 23561 969/io.smartmeter.0 udp 0 0 0.0.0.0:38586 0.0.0.0:* 104 15490 560/avahi-daemon: r udp 0 0 0.0.0.0:47081 0.0.0.0:* 1001 16004 946/io.hm-rpc.2 udp 0 0 0.0.0.0:34985 0.0.0.0:* 1001 15312 838/io.history.0 udp6 0 0 fe80::d6a8:cba0:eaa:546 :::* 0 17456 653/NetworkManager udp6 0 0 :::42049 :::* 104 15491 560/avahi-daemon: r udp6 0 0 :::5353 :::* 104 15489 560/avahi-daemon: r *** Log File - Last 25 Lines *** 2024-01-27 22:22:00.016 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 847ms, MischerStellung=3.9%, MischerStellungBekannt=true, MischerStellwert yn=0.0065, MischerStellzeit=847ms, HeizungZyklusZaehler=6 2024-01-27 22:22:30.019 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 847ms, MischerStellung=4.6%, MischerStellungBekannt=true, MischerStellwert yn=0.0065, MischerStellzeit=847ms, HeizungZyklusZaehler=7 2024-01-27 22:23:00.037 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 847ms, MischerStellung=5.2%, MischerStellungBekannt=true, MischerStellwert yn=0.0065, MischerStellzeit=847ms, HeizungZyklusZaehler=8 2024-01-27 22:23:06.391 - warn: smartmeter.0 (969) No or too long answer from Serial Device after last request. 2024-01-27 22:23:30.015 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 847ms, MischerStellung=5.9%, MischerStellungBekannt=true, MischerStellwert yn=0.0065, MischerStellzeit=847ms, HeizungZyklusZaehler=9 2024-01-27 22:24:00.016 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 932ms, MischerStellung=6.6%, MischerStellungBekannt=true, MischerStellwert yn=0.0072, MischerStellzeit=932ms, HeizungZyklusZaehler=10 2024-01-27 22:24:01.011 - info: javascript.0 (1320) script.js.AktivSys.PV_Messung: LogEvt: ===>PV_Messung Grundtakt Ende - Laufzeit = 2 ms 2024-01-27 22:24:02.031 - info: javascript.0 (1320) script.js.AktivSys.Rollladensteuerung: LogEvt: ===>Rollo/Grundtakt - Laufzeit = 4 ms, ZyklusZaehler: 3 2024-01-27 22:24:30.014 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 960ms, MischerStellung=7.3%, MischerStellungBekannt=true, MischerStellwert yn=0.0074, MischerStellzeit=960ms, HeizungZyklusZaehler=11 2024-01-27 22:25:00.017 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 960ms, MischerStellung=8.1%, MischerStellungBekannt=true, MischerStellwert yn=0.0074, MischerStellzeit=960ms, HeizungZyklusZaehler=12 2024-01-27 22:25:15.007 - info: javascript.0 (1320) script.js.AktivSys.Überwachung: LogInf: ===>Überwachung Grundtakt Anfang 2024-01-27 22:25:15.010 - info: javascript.0 (1320) script.js.AktivSys.Überwachung: LogInf: ===>AlleUpdatesUeberwachen Ende - Anzahl Überwachungen=13, Anzahl der Fehler = 2 2024-01-27 22:25:15.010 - info: javascript.0 (1320) script.js.AktivSys.Überwachung: LogInf: ===>Überwachung Grundtakt Ende - Laufzeit = 3 ms 2024-01-27 22:25:21.394 - warn: smartmeter.0 (969) No or too long answer from Serial Device after last request. 2024-01-27 22:25:30.028 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 960ms, MischerStellung=8.8%, MischerStellungBekannt=true, MischerStellwert yn=0.0074, MischerStellzeit=960ms, HeizungZyklusZaehler=13 2024-01-27 22:25:30.055 - info: javascript.0 (1320) script.js.AktivSys.RobbySteuerung: LogEvt: >>>>Robby Grundtakt 2024-01-27 22:26:00.014 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 960ms, MischerStellung=9.5%, MischerStellungBekannt=true, MischerStellwert yn=0.0074, MischerStellzeit=960ms, HeizungZyklusZaehler=14 2024-01-27 22:26:30.013 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 960ms, MischerStellung=10.3%, MischerStellungBekannt=true, MischerStellwert yn=0.0074, MischerStellzeit=960ms, HeizungZyklusZaehler=15 2024-01-27 22:27:00.034 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 960ms, MischerStellung=11%, MischerStellungBekannt=true, MischerStellwert yn=0.0074, MischerStellzeit=960ms, HeizungZyklusZaehler=16 2024-01-27 22:27:02.010 - info: javascript.0 (1320) script.js.AktivSys.Rollladensteuerung: LogEvt: ===>Rollo/Grundtakt - Laufzeit = 1 ms, ZyklusZaehler: 4 2024-01-27 22:27:30.012 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 960ms, MischerStellung=11.7%, MischerStellungBekannt=true, MischerStellwert yn=0.0074, MischerStellzeit=960ms, HeizungZyklusZaehler=17 2024-01-27 22:27:36.397 - warn: smartmeter.0 (969) No or too long answer from Serial Device after last request. 2024-01-27 22:28:00.016 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 960ms, MischerStellung=12.5%, MischerStellungBekannt=true, MischerStellwert yn=0.0074, MischerStellzeit=960ms, HeizungZyklusZaehler=18 2024-01-27 22:28:30.014 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 960ms, MischerStellung=13.2%, MischerStellungBekannt=true, MischerStellwert yn=0.0074, MischerStellzeit=960ms, HeizungZyklusZaehler=19 2024-01-27 22:29:00.013 - info: javascript.0 (1320) script.js.AktivSys.Heizung_Keller: LogEvt: --> Heizung_MischerRegeln: , Mischer AUF für 960ms, MischerStellung=14%, MischerStellungBekannt=true, MischerStellwert yn=0.0074, MischerStellzeit=960ms, HeizungZyklusZaehler=20 ============ Mark until here for C&P ============= ======================= SUMMARY ======================= v.2023-10-10 Static hostname: raspberrypi Icon name: computer Operating System: Raspbian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-rpi7-rpi-v8 Architecture: arm64 Installation: native Kernel: aarch64 Userland: armhf Timezone: Europe/Berlin (CET, +0100) User-ID: 1000 X-Server: false Boot Target: multi-user.target Pending OS-Updates: 0 Pending iob updates: 1 Nodejs-Installation: /usr/bin/nodejs v18.19.0 /usr/bin/node v18.19.0 /usr/bin/npm 10.2.3 /usr/bin/npx 10.2.3 /usr/bin/corepack 0.22.0 Recommended versions are nodejs 18.19.0 and npm 10.2.3 Your nodejs installation is correct MEMORY: total used free shared buff/cache available Mem: 8.2G 1.2G 6.5G 1.2M 623M 7.0G Swap: 104M 0B 104M Total: 8.3G 1.2G 6.6G Active iob-Instances: 17 Active repo(s): stable ioBroker Core: js-controller 5.0.17 admin 6.12.0 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin and web instance: system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.web.0 : web : raspberrypi - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 16081 States: 13747 Size of iob-Database: 35M /opt/iobroker/iobroker-data/objects.jsonl 3.2M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================
  • Wind mit Dauer für eine Berechnung Windrad Garage Projekt

    javascript
    3
    1
    0 Stimmen
    3 Beiträge
    337 Aufrufe
    paul53P
    @acidsubway sagte: Kann man das mit dem ioBroker machen? Man kann, aber wozu soll es dienen? Wie soll das Ergebnis aussehen? Einzelne Datenpunkte für jede Geschwindigkeitsstufe oder eine Liste (array)?
  • Windrichtung kommt mit 0-5V an soll in Windrichtung N/S/W/O

    javascript
    12
    0 Stimmen
    12 Beiträge
    805 Aufrufe
    SchmakusS
    Wieso überhaupt ein script und nicht einen echten Alias mit einer read formel? val <= 0.4658 ? 'SÜD' : val <= 1.0908 ? 'SÜD-WEST' : val <= 1.7158 ? 'WEST' : val <= 2.3407 ? 'NORD-WEST' : val <= 2.9658 ? 'NORD' : val <= 3.5908 ? 'NORD-OST' : val <= 3.9158 ? 'OST' : val <= 4.5408 ? 'SÜD-OST' : val <= 5.0000 ? 'SÜD' : 'SÜD';
  • Skriptlogik mit internen Variablen aufbauen, oder getState?

    18
    0 Stimmen
    18 Beiträge
    2k Aufrufe
    T
    @miniblister Das sieht gut aus. Aber datapoint würde ich noch einen weniger generischen namen geben.
  • Beispiel zu onLog() und Frage zu der Nutzung von on...(...)

    3
    0 Stimmen
    3 Beiträge
    174 Aufrufe
    MartinPM
    So, das ist nun meine Lösung... var LastLogMessageReceived = (new Date().getTime()); onLog('warn', data => { // console.log('Following warn message: ' + data.message + "from: " + data.from); if((data.from == 'ical.0') && (data.severity == 'warn')) { let myActTime = new Date().getTime(); // Auswertung von data.message if ((myActTime - LastLogMessageReceived)> 2700000) { // 2 700 000 ms = 45 min (check ical settings for fitting timeout limit, 30 min ical interval -> 45 min timeout) sendTo("email", "send", { text: (['ical Adapter meldet Warnung ', data.message].join('')), to: 'xxxxxxxxxxxxxxxxx, subject: 'Ical-Alarm!' }); } LastLogMessageReceived = myActTime; } }); Schickt zwar keine OK-Mail, wenn wieder alles funktioniert, aber das ist erstmal nicht so wichtig denke ich ...
  • Script für eine Regel auf der Jarvis Oberfläche

    7
    0 Stimmen
    7 Beiträge
    618 Aufrufe
    J
    @gelberlemmy ich habe mir ein blockly gebaut mit dem ich mir alle 10 Schichten, aber nur maximal alle 10 Minuten, ein aktuelles Bild mit der Info über die aktuelle Schichthöhe und der gesamten Schichten per Telegram zuschicken lasse. Vllt. hilft es dir Spoiler <xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="b`Ni%Tozvg/NGlwc`OHx">timer</variable> <variable id="-x2Ff8hq5IHG@NX-jVLz">layerhoehe</variable> <variable type="timeout" id="timeout3">timeout3</variable> </variables> <block type="variables_set" id="liZJ71RrA3fHYv;P5lJ~" x="-2987" y="1063"> <field name="VAR" id="b`Ni%Tozvg/NGlwc`OHx">timer</field> <value name="VALUE"> <block type="logic_boolean" id="W6`A6BBf-*s5C~c58Nfk"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="V/e#S0`W-!3~0,W`rtSz"> <field name="VAR" id="-x2Ff8hq5IHG@NX-jVLz">layerhoehe</field> <value name="VALUE"> <block type="math_number" id="}E*(+.v=@KU04pFNCx(K"> <field name="NUM">0</field> </block> </value> <next> <block type="on" id="iwhUf}7|Or]/p,7,UOIU"> <field name="OID">octoprint.0.plugins.displayLayerProgress.layer.current</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="^=A!LDGc0(OOq{,WrFE^" disabled="true"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="_.W%S6u%M8h|b]1LvYBM"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="V.+{F,UEP0=_.T^ja?Rx"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="fkloJ,PkI.Kwh(QWl]|c"> <field name="NUM">9</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="8|]+Di_$a3-F.N8;$*;4"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">octoprint.0.command.custom</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="5]@Xk+?od2!K@TuEL*OJ"> <field name="TEXT">M0</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="lAJWB$63p73F)^AGTbzn"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="B[{{1aPBm,jBvo~jtJ;h"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="T)Kg#~@Y|(gf1q_9fUL!"> <field name="NUM">11</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="O+sm3EI0iJ/lvgpr;]]G"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">octoprint.0.command.custom</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="~40gEB;?})@6,6TuIxhP"> <field name="TEXT">M0</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="WSo[PhN^`Oq6v/vv[S|6"> <value name="IF0"> <block type="logic_compare" id="vZ1ZJvfgzvIaj2y`7$bM"> <field name="OP">GTE</field> <value name="A"> <block type="math_arithmetic" id="X0QRQiy,uzyX(!i|t;B1"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="F%`T2w}Y3^}?ru=E.O$j"> <field name="NUM">1</field> </shadow> <block type="on_source" id="C[Jyw_4i-{5GhVIB%M,3"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <shadow type="math_number" id="i`!EWQx@t5u!qw.{L-p0"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="sU!#!|^6~!:$%.R=u[+s"> <field name="VAR" id="-x2Ff8hq5IHG@NX-jVLz">layerhoehe</field> </block> </value> </block> </value> <value name="B"> <block type="math_number" id="TZF(PsCCzUULbp[j(@MH"> <field name="NUM">10</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="0Sd84r9|:r9oD,wMZe17"> <field name="VAR" id="-x2Ff8hq5IHG@NX-jVLz">layerhoehe</field> <value name="VALUE"> <block type="on_source" id="W%LDq}MSKM3o{MT5=Bq5"> <field name="ATTR">state.val</field> </block> </value> <next> <block type="controls_if" id="[Ge36]/-G)I?H?Yoj#fB"> <value name="IF0"> <block type="logic_negate" id="v#MeqL*TL??2.Z}WMkgA"> <value name="BOOL"> <block type="get_value" id="JO`GM@yc*OO8*`:3|zxU"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.imBüro</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="Prbp;E}sl~P75Af0/JY1"> <value name="IF0"> <block type="logic_operation" id="r+#:bcVhBUZ,A).6}#K5" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="%ox*pThh0zWaAsvDp0x="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Dg,nqcxK9na6IY/nz()_"> <field name="ATTR">val</field> <field name="OID">javascript.0.schalfen</field> </block> </value> <value name="B"> <block type="math_number" id="tRjV!-kcavt{Q*!=qI}u"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="GeBtsn!K$-MQZ$VtDMI("> <value name="BOOL"> <block type="variables_get" id="M|/@+5S!:0UmdfVLkH]n"> <field name="VAR" id="b`Ni%Tozvg/NGlwc`OHx">timer</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="telegram" id="!^1(jOOe62o6FQ;nizqE"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id="#zrF6Y=c`wybO0n,PP@E"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="[h[CBx{{!j}9IEikkKf9"> <mutation items="13"></mutation> <value name="ADD0"> <block type="text" id="s!K4kinlUF7Wnr1Jj]s+"> <field name="TEXT">Momentane Schichthöhe:</field> </block> </value> <value name="ADD1"> <block type="text_newline" id="=J:=+WJiy!,n2S6Ti,Bz"> <field name="Type">\n</field> </block> </value> <value name="ADD2"> <block type="get_value" id="LFsI|+#?sXG0*Qb`,hI4"> <field name="ATTR">val</field> <field name="OID">octoprint.0.plugins.displayLayerProgress.layer.current</field> </block> </value> <value name="ADD3"> <block type="text" id="Ic13AeC*;a?Gp}Vl]*hv"> <field name="TEXT"> von </field> </block> </value> <value name="ADD4"> <block type="get_value" id="xCk,7i2x?${~v5l#ZoJM"> <field name="ATTR">val</field> <field name="OID">octoprint.0.plugins.displayLayerProgress.layer.total</field> </block> </value> <value name="ADD5"> <block type="text" id="o{:6V{BKnL]^!RINV9V?"> <field name="TEXT"> Schichten</field> </block> </value> <value name="ADD6"> <block type="text_newline" id="8AnckRNa/@A)I({:2%3O"> <field name="Type">\n</field> </block> </value> <value name="ADD7"> <block type="get_value" id="TAB`Qj.qa/uzApWECCpD"> <field name="ATTR">val</field> <field name="OID">octoprint.0.printjob.progress.completion</field> </block> </value> <value name="ADD8"> <block type="text" id="x{}xya5L5MwmHr*|s9N#"> <field name="TEXT">% fertig gestellt</field> </block> </value> <value name="ADD9"> <block type="text_newline" id="SC~-n9J/q%@Fr_6a;#xr"> <field name="Type">\n</field> </block> </value> <value name="ADD10"> <block type="text" id="!vQ}RbJ-YTn71ps43[0E"> <field name="TEXT">Geschätzte Restzeit:</field> </block> </value> <value name="ADD11"> <block type="text_newline" id="LKUag;17IUMCPoK@VObY"> <field name="Type">\n</field> </block> </value> <value name="ADD12"> <block type="get_value" id=",iU/:+gF+CtEO@^4rLbk"> <field name="ATTR">val</field> <field name="OID">octoprint.0.printjob.progress.printtimeLeftFormat</field> </block> </value> </block> </value> <next> <block type="exec" id="Q%.+UAgMkWBG2+4(;E|M"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation> <field name="WITH_STATEMENT">TRUE</field> <field name="LOG">debug</field> <value name="COMMAND"> <shadow type="text" id="f:W)ej0T0P)?wV/0AF!9"> <field name="TEXT">wget -q -O /home/pi/pictures/octoprint.snap.jpg "http://192.168.178.37/webcam/?action=snapshot"</field> </shadow> </value> <statement name="STATEMENT"> <block type="telegram" id="X4uk?iU9AL,+=Ub8-!{5"> <field name="INSTANCE">.0</field> <field name="LOG">debug</field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <field name="ESCAPING">FALSE</field> <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field> <value name="MESSAGE"> <shadow type="text" id=":^gzF@/rGK6L3RKr2wGQ"> <field name="TEXT">/home/pi/pictures/octoprint.snap.jpg</field> </shadow> </value> </block> </statement> <next> <block type="variables_set" id="]m)84sib]x/FW!lO^Z;S"> <field name="VAR" id="b`Ni%Tozvg/NGlwc`OHx">timer</field> <value name="VALUE"> <block type="logic_boolean" id="[C)@XDJE6E#NHG!_y6jO"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_settimeout" id="}^`dwU{93HQZ32{]Mv-+"> <field name="NAME">timeout3</field> <field name="DELAY">10</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="variables_set" id="yITI@8eLFO:.g-HsJk_["> <field name="VAR" id="b`Ni%Tozvg/NGlwc`OHx">timer</field> <value name="VALUE"> <block type="logic_boolean" id="lin{J9-uv?=rKE6b~F^,"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </xml>
  • [gelöst] Drei Dimmer ein Licht

    26
    0 Stimmen
    26 Beiträge
    2k Aufrufe
    paul53P
    @jack sagte: Wo kann man genauer nachlesen In der Funktions-Doku @jack sagte in Drei Z-Wave Dimmer "ein" Zigbee Licht: Passt so? So machen einzelne Trigger wenig Sinn, sondern nur dann, wenn sie unterschiedlich wirken sollen. @jack sagte in [gelöst] Drei Dimmer ein Licht: waren wohl am Anfang die fehlenden Klammern bei den if-Bedingungen... Nein, wenn man mehrere Trigger verwendet, muss idSrc global deklariert werden, was es in meinem ersten Post nicht war.
  • [Gelöst] MQTT SENSOR String in einzelne Werte zerlegen

    11
    1
    0 Stimmen
    11 Beiträge
    896 Aufrufe
    haselchenH
    @magicfriend-0 Alles klar. Danke fürs Feedback. Dann ist der Weg natürlich logisch :+1:
  • Homematic HM-LC-Sw1-DR mit Einschaltdauer triggern

    6
    0 Stimmen
    6 Beiträge
    396 Aufrufe
    HomoranH
    @smartstuffcoyote sagte in Homematic HM-LC-Sw1-DR mit Einschaltdauer triggern: So angewandt funktioniert es so ist es ja auch in CCU Programmen vorgesehen.
  • Skript für Türöffner löst nicht aus

    5
    0 Stimmen
    5 Beiträge
    215 Aufrufe
    P
    Wenn im Beispiel fetch() genutzt wird, könnte man das evtl. auch hier nutzen. Oder per execute ein curl oder wget absckicken. Die Antwort der API könnte auch hinweisgebend sein.
  • Löschscript für alte Messwerte ? (influxdb)

    1
    0 Stimmen
    1 Beiträge
    129 Aufrufe
    Niemand hat geantwortet
  • [gelöst] Wert als Zahl schreiben statt als string

    2
    0 Stimmen
    2 Beiträge
    217 Aufrufe
    bahnuhrB
    @claus1985-0 parseInt parseFloat Number Es gibt mehrere Möglichkeiten, je nachdem wie der String aussieht. Hast du mal gegoogelt: [image: 1705221528285-24116483-89d0-4fc3-bc2e-e1d9b464ff51-image.png] gleich der 1. Beitrag zeigt dir dies.
  • Objektdaten eines States per JavaScript ändern / Name ändern

    5
    0 Stimmen
    5 Beiträge
    293 Aufrufe
    T
    @ofri2607 sagte in Objektdaten eines States per JavaScript ändern / Name ändern: @mbartsch So wie im Link von @paul53 gezeigt, sollte es eigentlich so auch funktionieren: log (TestObject); extendObject('zigbee.0.xxx', {common: {name: "Neuer Name"}}); Das ist auch zu bevorzugen, weil man weniger kaputt machen kann.
  • [Gelöst] Werte aus Objektattributen in ein Array packen?

    5
    1
    0 Stimmen
    5 Beiträge
    509 Aufrufe
    I
    @paul53 Ok, danke. Also eine Liste und kein Array, daher mein Verständnisproblem :)
  • Wert aus function zurückgeben

    Verschoben
    9
    0 Stimmen
    9 Beiträge
    664 Aufrufe
    haus-automatisierungH
    @wierer-sigi Wäre noch schön, wenn Du den Downvote in der ersten Antwort von @OliverIO entfernst :) Oder wofür ist der? Gerne hilfreiche Beiträge bewerten...

677

Online

32.7k

Benutzer

82.6k

Themen

1.3m

Beiträge