WH3000SE IPv6 fähig und Wetterdaten lokal abgreifbar?

Für Geräte von froggit
Benutzeravatar
olicat
Offline
Beiträge: 2030
Registriert: 07 Dez 2020, 20:33
Wohnort: Hohen Neuendorf
Hat sich bedankt: 28 mal
Danksagung erhalten: 414 mal
Kontaktdaten:

Re: WH3000SE IPv6 fähig und Wetterdaten lokal abgreifbar?

#11

Beitrag von olicat »

Hi!
handelt es sich dabei weniger um eine weewx.conf sondern um einen angepassten Interceptor Treiber, also eine interceptor.py Datei
Ja, genau.
Sorry, meine Aussage kam mir gleich irgendwie seltsam vor.
Also ja, es handelt sich um einen kompletten Interceptor - mit angepasster Config.
Danke fuers Finden des Threads!

Oliver
Mosconi
Offline
Beiträge: 11
Registriert: 24 Feb 2022, 17:28

Re: WH3000SE IPv6 fähig und Wetterdaten lokal abgreifbar?

#12

Beitrag von Mosconi »

Danke euch beiden.

Werde mich heute Abend mal in Ruhe dem Thema widmen.
Mosconi
Offline
Beiträge: 11
Registriert: 24 Feb 2022, 17:28

Re: WH3000SE IPv6 fähig und Wetterdaten lokal abgreifbar?

#13

Beitrag von Mosconi »

Leider war ich krankheitsbedingt ausgefallen. (Ja, es gibt noch Krankheiten außer Corona)

Ich muss gestehen, dass ich den angepassten interceptor-Treiber noch nicht ausprobiert hatte.
Das möchte ich erst machen, wenn mal alles soweit läuft und auch die Backups von Pi dann auf's NAS gehen.

Was mich aber noch umtreibt ist die Sprache.....Ich hatte mir testweise mal ein Skin installiert. (neowx-material).
Das Skin ist auf deutsch, aber die Werte haben noch die englischen Bezeichnung. (Rain, Outside Temperature...)

Code: Alles auswählen

[StdReport]

    # Where the skins reside, relative to WEEWX_ROOT
    SKIN_ROOT = /etc/weewx/skins

    # Where the generated reports should go, relative to WEEWX_ROOT
    HTML_ROOT = /var/www/html/weewx

    # The database binding indicates which data should be used in reports.
    data_binding = wx_binding

    # Whether to log a successful operation
    log_success = True

    # Whether to log an unsuccessful operation
    log_failure = True

    # Each of the following subsections defines a report that will be run.
    # See the customizing guide to change the units, plot types and line
    # colors, modify the fonts, display additional sensor data, and other
    # customizations. Many of those changes can be made here by overriding
    # parameters, or by modifying templates within the skin itself.

    [[SeasonsReport]]
        # The SeasonsReport uses the 'Seasons' skin, which contains the
        # images, templates and plots for the report.
        skin = Seasons
        enable = true
        lang = de

    [[SmartphoneReport]]
        # The SmartphoneReport uses the 'Smartphone' skin, and the images and
        # files are placed in a dedicated subdirectory.
        skin = Smartphone
        enable = false
        HTML_ROOT = /var/www/html/weewx/smartphone
        lang = de

    [[MobileReport]]
        # The MobileReport uses the 'Mobile' skin, and the images and files
        # are placed in a dedicated subdirectory.
        skin = Mobile
        enable = false
        HTML_ROOT = /var/www/html/weewx/mobile
    [[StandardReport]]
        skin = neowx-material
        lang = de



Unter SeasonsReport hatte ich noch ein "lang = de" eingefügt. Die de.config liegt auch unter /etc/weewx/skins/

Habt ihr ne Ahnung, wo ich noch was vergessen habe? Danke schonmal für eure Hilfe


Screenshot_20220302_142324.png
Screenshot_20220302_142324.png (46.92 KiB) 340 mal betrachtet
Benutzeravatar
Gyvate
Offline
Beiträge: 2527
Registriert: 10 Aug 2021, 23:41
Wohnort: Saarbrücken
Hat sich bedankt: 12 mal
Danksagung erhalten: 381 mal
Kontaktdaten:

Re: WH3000SE IPv6 fähig und Wetterdaten lokal abgreifbar?

#14

Beitrag von Gyvate »

Zunächst würde ich in weewx.conf eine eigene Sektion für neowx-material aussuchen, da [[Standard]] vorbelegt ist.
Ausserdem muss das Verzeichnis, in das die Report-Daten fliessen vom Verzeichnis der Seasons-Skin verschieden sein, wenn diese aktiv ist.
Nachstehend ein Beispiel - die Skin-Daten müssten dann in z.B. /etc/weewx/skins/neowx-material liegen
Die Pfade für SKIN_ROOT und HTML_ROOT müssen Deinen Gegebenheiten angepasst werden.

[StdReport]

# Where the skins reside, relative to WEEWX_ROOT
SKIN_ROOT = /etc/weewx/skins

# Where the generated reports should go, relative to WEEWX_ROOT
HTML_ROOT = /var/weewx/reports

# The database binding indicates which data should be used in reports.
data_binding = wx_binding

# Whether to log a successful operation
log_success = True

# Whether to log an unsuccessful operation
log_failure = True

# Each of the following subsections defines a report that will be run.
# See the customizing guide to change the units, plot types and line
# colors, modify the fonts, display additional sensor data, and other
# customizations. Many of those changes can be made here by overriding
# parameters, or by modifying templates within the skin itself.
[[neowx]]
skin = neowx-material
enable = true
HTML_ROOT = /var/weewx/reports/neowx

[[SeasonsReport]]
# The SeasonsReport uses the 'Seasons' skin, which contains the
# images, templates and plots for the report.
skin = Seasons
enable = true

Was an Kacheln und Zeichnungen angezeigt wird, wird nach der neowx-material Logik in der neowx skin.conf definiert.
Und natürlich haben die Variablen englische Namen, da sie so im Datenbank-Schema definiert sind.
Für Übersetzungen in der Anzeige gibt es in skin.conf einen eigenen Abschnitt.
[Extras]
....
[[Translations]]
Ecowitt WS2320E,HP2553,HP3501,GW2001,GW1100, GW1000,WH2650,WN1910,WN1980, Meteobridge RPi4B-2GB/(16)32GB SLC 3165, Weewx 4.5.1/4.10.2, CumulusMX 3.28.4 b3282, Barani MeteoShield Pro, MetSpecRad02, Personal Weather Tablet(PWT) - http://meshka.eu
Mosconi
Offline
Beiträge: 11
Registriert: 24 Feb 2022, 17:28

Re: WH3000SE IPv6 fähig und Wetterdaten lokal abgreifbar?

#15

Beitrag von Mosconi »

Vielen Dank, das werde ich jetzt mal ausprobieren.
Antworten