Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. [Linux Shell-Skript] WLAN-Wetterstation

    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

    [Linux Shell-Skript] WLAN-Wetterstation

    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Rushmed Most Active @Glasfaser last edited by

      @Glasfaser sagte in [Linux Shell-Skript] WLAN-Wetterstation:

      Nur bei diesem Datenpunkt ?

      Ja, genau das wundert mich.

      @crunchip sagte in [Linux Shell-Skript] WLAN-Wetterstation:

      sollte ja auch so bleiben, steht er auf true, liegt ein Fehler vor
      @Nashra hatte wohl ein Problem damit.

      Glasfaser 1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @Rushmed last edited by

        @Rushmed sagte in [Linux Shell-Skript] WLAN-Wetterstation:

        @Nashra hatte wohl ein Problem damit.

        Neee.... nur mit Influx 😉

        Nashra 1 Reply Last reply Reply Quote 0
        • crunchip
          crunchip Forum Testing Most Active @Neuschwansteini last edited by

          @ilovegym übrigens, lag nicht am Cron. Habe meine Platte mal durchforstet😂
          hatte mir scheinbar ganz zu Anfang den entpackten Ordner von git auf die Platte kopiert, der lag da so rum im root Verzeichnis 🤦 und hatte den ganz vergessen

          1 Reply Last reply Reply Quote 0
          • Nashra
            Nashra Most Active Forum Testing @Glasfaser last edited by Nashra

            @Glasfaser sagte in [Linux Shell-Skript] WLAN-Wetterstation:

            @Rushmed sagte in [Linux Shell-Skript] WLAN-Wetterstation:

            @Nashra hatte wohl ein Problem damit.

            Neee.... nur mit Influx 😉

            Moin, habe mal deinen Rat befolgt und die DP neu angelegt sowie eine weitere Instanz von Influxdb.
            Wir kommen der Sache näher d.h. jetzt wird endlich was angezeigt warum

            2020-03-15 09:17:41.348 - info: influxdb.1 (22694) enabled logging of javascript.0.Wetterstation.Regen_Monat, Alias=false
            2020-03-15 09:17:41.370 - warn: influxdb.1 (22694) Error on writePoint("{"value":67.1,"time":"2020-03-15T08:17:41.353Z","from":"system.adapter.influxdb.1","q":0,"ack":false}): Error: {"error":"partial write: field type conflict: input field \"value\" on measurement \"javascript.0.Wetterstation.Regen_Monat\" is type float, already exists as type string dropped=1"}
            / "{\"error\":\"partial write: field type conflict: input field \\\"value\\\" on measurement \\\"javascript.0.Wetterstation.Regen_Monat\\\" is type float, already exists as type string dropped=1\"}\n"
            2020-03-15 09:17:41.371 - info: influxdb.1 (22694) Try to convert and re-write for javascript.0.Wetterstation.Regen_Monat and set storageType to String
            2020-03-15 09:17:41.452 - info: influxdb.1 (22694) changed history configuration to pin detected datatype for javascript.0.Wetterstation.Regen_Monat
            2020-03-15 09:17:41.458 - info: influxdb.1 (22694) enabled logging of javascript.0.Wetterstation.Regen_Monat, Alias=false
            
            SBorg 1 Reply Last reply Reply Quote 0
            • SBorg
              SBorg Forum Testing Most Active @Glasfaser last edited by

              @Glasfaser sagte in [Linux Shell-Skript] WLAN-Wetterstation:

              @SBorg

              Ist ja richtig was los hier 🙂

              Die Version V1.0.0 funktioniert sehr gut ... Danke ....

              Wohl wahr, ich muss jetzt auch erst mal gefühlte 100 Posts lesen 😉
              Danke für die Rückmeldung.

              crunchip 1 Reply Last reply Reply Quote 0
              • crunchip
                crunchip Forum Testing Most Active @SBorg last edited by

                @SBorg aktueller Stand bei mir ist:
                das ich mit dem Neuen Script gar keine Werte bekomme, siehe hier

                1 Reply Last reply Reply Quote 0
                • SBorg
                  SBorg Forum Testing Most Active @crunchip last edited by SBorg

                  @crunchip Ich erinnere mich. Die Änderungen waren aber notwendig, denn die Verbindung wird sonst zu früh beendet. Siehst du am besten hier:

                  ...EasyWeatherV1.4.7&action=updateraw&realtime=1&rtfreq=5 Connection: Close

                  Da kommt normalerweise noch was an Daten und "Connection: Close" hat da mal überhaupt nix zu suchen.
                  Beende mal das Skript (pkill...) und führe mal nur nc -lv -w 1 -p 55555 aus. Er hatte ja bei dir auch Probleme ohne "-p", ev. will er bei dir einfach kein "-lvw 1". Den Test kannst du auch mit der V0.1.4 machen, denn es ist eher ein nc/Docker Test 😉

                  *EDIT* war gerade noch am lesen 🙂

                  crunchip 1 Reply Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @SBorg last edited by

                    @SBorg sagte in [Linux Shell-Skript] WLAN-Wetterstation:

                    nc -lv -w 1 -p 55555

                    da kommt no connection : Connection timed out

                    SBorg 1 Reply Last reply Reply Quote 0
                    • SBorg
                      SBorg Forum Testing Most Active @Nashra last edited by

                      @Nashra sagte in [Linux Shell-Skript] WLAN-Wetterstation:

                      Gibt es eigentlich eine Gui für Influxdb wo man mal sehen könnte wie die DB aufgebaut ist sowie bei mySQL oder ähnlich.

                      Ich kenne keine wie bspw. MySQL-Admin bei SQL. Mir ist nur per influx im Terminal bekannt.

                      1 Reply Last reply Reply Quote 0
                      • SBorg
                        SBorg Forum Testing Most Active @crunchip last edited by

                        @crunchip Wenn du nur "nc" eingibst steht da bei den Parametern [-w timeout] (oder so ähnlich)

                        crunchip 1 Reply Last reply Reply Quote 0
                        • crunchip
                          crunchip Forum Testing Most Active @SBorg last edited by

                          @SBorg

                          root@IoBroker:~# nc
                          Cmd line:
                          
                          SBorg 1 Reply Last reply Reply Quote 0
                          • SBorg
                            SBorg Forum Testing Most Active @Nashra last edited by

                            @Nashra Hmm, er will es als "String" loggen, obwohl er eine Zahl (float) erkannt hat.
                            Sind die zwei Datenpunkte wirklich als "Zahl" angelegt?
                            Bild 1.png

                            Nashra 1 Reply Last reply Reply Quote 0
                            • SBorg
                              SBorg Forum Testing Most Active @crunchip last edited by

                              @crunchip sagte in [Linux Shell-Skript] WLAN-Wetterstation:

                              @SBorg

                              root@IoBroker:~# nc
                              Cmd line:
                              

                              😎 oder auch nicht. Da ist der Fehler. Dein Docker nutzt anscheinend eine ältere Version von "nc". Der kann dann wohl kein "-w"
                              Versuch mal nc --help

                              crunchip 1 Reply Last reply Reply Quote 0
                              • crunchip
                                crunchip Forum Testing Most Active @SBorg last edited by crunchip

                                @SBorg

                                [v1.10-41+b1]
                                connect to somewhere:   nc [-options] hostname port[s] [ports] ...
                                listen for inbound:     nc -l -p port [-options] [hostname] [port]
                                options:
                                        -c shell commands       as `-e'; use /bin/sh to exec [dangerous!!]
                                        -e filename             program to exec after connect [dangerous!!]
                                        -b                      allow broadcasts
                                        -g gateway              source-routing hop point[s], up to 8
                                        -G num                  source-routing pointer: 4, 8, 12, ...
                                        -h                      this cruft
                                        -i secs                 delay interval for lines sent, ports scanned
                                        -k                      set keepalive option on socket
                                        -l                      listen mode, for inbound connects
                                        -n                      numeric-only IP addresses, no DNS
                                        -o file                 hex dump of traffic
                                        -p port                 local port number
                                        -r                      randomize local and remote ports
                                        -q secs                 quit after EOF on stdin and delay of secs
                                        -s addr                 local source address
                                        -T tos                  set Type Of Service
                                        -t                      answer TELNET negotiation
                                        -u                      UDP mode
                                        -v                      verbose [use twice to be more verbose]
                                        -w secs                 timeout for connects and final net reads
                                        -C                      Send CRLF as line-ending
                                        -z                      zero-I/O mode [used for scanning]
                                port numbers can be individual or ranges: lo-hi [inclusive];
                                hyphens in port names must be backslash escaped (e.g. 'ftp\-data').
                                
                                SBorg 1 Reply Last reply Reply Quote 0
                                • SBorg
                                  SBorg Forum Testing Most Active @crunchip last edited by

                                  @crunchip Zumindest hat er "w", aber eine andere Reihenfolge? Sollte zwar IMO egal sein, aber wenn sie es so schreiben...
                                  nc -l -p 55555 -v -w 1

                                  crunchip 1 Reply Last reply Reply Quote 0
                                  • crunchip
                                    crunchip Forum Testing Most Active @SBorg last edited by

                                    @SBorg sagte in [Linux Shell-Skript] WLAN-Wetterstation:

                                    nc -l -p 55555 -v -w 1

                                    das gleiche, no connection

                                    SBorg 1 Reply Last reply Reply Quote 0
                                    • SBorg
                                      SBorg Forum Testing Most Active @crunchip last edited by

                                      @crunchip Bild 1.png
                                      Erklärt warum es bei dir nur mit "p" läuft. Ev, gibt es noch mehr Unterschiede. Installiere doch mal versuchsweise den netcat-openbsd

                                      crunchip 1 Reply Last reply Reply Quote 1
                                      • crunchip
                                        crunchip Forum Testing Most Active @SBorg last edited by

                                        @SBorg sagte in [Linux Shell-Skript] WLAN-Wetterstation:

                                        netcat-openbsd

                                        hab ich gemacht
                                        mit nc -l -p 55555 -v -w 1 kommen auch nun die werte👍

                                        SBorg 1 Reply Last reply Reply Quote 0
                                        • SBorg
                                          SBorg Forum Testing Most Active @crunchip last edited by

                                          @crunchip Puuuhhh, schwere Geburt 😁
                                          Jetzt müsste dann auch bei dir die V1.0.0 laufen 🙂

                                          ...und Jahresregenmenge funktioniert nun schon den 3. Tag hintereinander. Heute wird es nix werden, strahlender Sonnenschein und 0mm Regen 🤘

                                          crunchip 1 Reply Last reply Reply Quote 2
                                          • crunchip
                                            crunchip Forum Testing Most Active @SBorg last edited by crunchip

                                            @SBorg
                                            allerdings....aber Dank deiner Hilfe 😊 👍
                                            probiere ich gleich aus, aber ich befürchte, ich hab schon wieder das Problem, das 2mal ausgeführt wird,....hab ich zumindest vorhin gesehen.
                                            aber ich schmeiss jetzt erst mal das neu script drauf und hoffe das jetzt Daten kommen

                                            oder liegt mein Fehler im Cron anlegen?
                                            Script liegt ja in /home/iobroker....also user iobroker
                                            den Cron hab ich aber als root angelegt, oder muss ich mich dafür als user iobroker anmelden?

                                            Script läuft und auch kein Kommunikationsfehler mehr

                                            @SBorg sagte in [Linux Shell-Skript] WLAN-Wetterstation:

                                            strahlender Sonnenschein und 0mm Regen

                                            c391b75a-3018-49d7-9f23-d6e98ec11d1d-image.png

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            683
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            linux shell-script wetterstation wlan-wetterstation
                                            144
                                            5497
                                            3309963
                                            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