Skip to main content

A Powerline segment for showing the PWS station data

Project description

Powerline PWS

A Powerline segment for showing weather data from your PWS (Personal Weather Station).

Configuration

The PWS segment is currently only compatible with the Cumulus Realtime Format format. When your station is using WeeWX for example, this excellent extension can be used for outputting weather data in the CRT-format.

The segment also uses some extra highlight groups. These highlight groups can be easily defined in for example .config/powerline/colorschemes/default.json:

{
    "groups": {
        "pws":                    { "fg": "gray8", "bg": "gray0", "attrs": [] },
        "pws_uv_gradient":        { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] },
        "pws_temp_gradient":      { "fg": "blue_red", "bg": "gray0", "attrs": [] }
    }
}

After this you can activate the segment by adding it to your segment configuration, for example in .config/powerline/themes/tmux/default.json:

{
    "function": "powerline.segments.common.weewx.pws",
    "args": {
      "pws_url": "<URL_TO_YOUR_PWS>"
    }
}

The minimum configuration needs a url to your PWS. This will only show the outdoor temperature. You can define which measurements to show using the parameters-parameter:

{
    "function": "powerline.segments.common.weewx.pws",
    "args": {
      "pws_url": "<URL_TO_YOUR_PWS>",
      "parameters": ["dayRain", "outTemp", "barometer", "outHumidity"]
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

powerline_pws-1.0.0.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

powerline_pws-1.0.0-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file powerline_pws-1.0.0.tar.gz.

File metadata

  • Download URL: powerline_pws-1.0.0.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for powerline_pws-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c8464fbda831ade83a96a18513f3ad324c49b819e65171f512147d578736f519
MD5 9b99b1c4ddd6c7fde9ad6d23e0a95c6f
BLAKE2b-256 26bc41b4f7198d17e727a0bf3f3c9e5ceb0f2a50b1bf3b8e193953e566b1ed80

See more details on using hashes here.

Provenance

The following attestation bundles were made for powerline_pws-1.0.0.tar.gz:

Publisher: python-publish.yml on boosterl/powerline-pws

Attestations:

File details

Details for the file powerline_pws-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for powerline_pws-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dffb6b3e0529e028cb48fea05a3f9ed9de6fc73a2b00d4fdab216280b15a0646
MD5 b7c0b9ef1ce96c60e915bd2b73498b61
BLAKE2b-256 96bb4bdb96af168d935628939b54aaab93750acb82ee9f3351d72cdca4d58ee3

See more details on using hashes here.

Provenance

The following attestation bundles were made for powerline_pws-1.0.0-py3-none-any.whl:

Publisher: python-publish.yml on boosterl/powerline-pws

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page