Coder Social home page Coder Social logo

raymondelooff / weewx-pusher Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 50 KB

This extension allows you to send real-time weather data to Pusher

License: GNU General Public License v3.0

Python 100.00%
pusher weewx weewx-pusher weather-data python

weewx-pusher's Introduction

WeeWX Pusher extension

This WeeWX extension allows you to send your realtime weather data to Pusher. You can use Pusher to send realtime weather condition updates to your web application or app. Find more information about Pusher on their website.

Requirements

This extension requires the Pusher library for Python. The installation guide of the Pusher library can be found on the official GitHub repository. If you're running WeeWX on Raspbian on a Raspberry Pi, you'll need to install development libraries in order to install the Pusher dependencies. More information about the required development libraries: Building cryptography on Linux.

Installation

This extension can be installed very easily using the WeeWX installer.

  1. Go to the releases section and check the version number of the latest release. Download the latest release from the releases section, or use the following command. Change the version number to the version you want to download:

    wget https://github.com/raymondelooff/weewx-pusher/archive/v1.x.x.tar.gz
  2. Install the extension with the WeeWX's extension installer:

    wee_extension --install=v1.x.x.tar.gz
  3. Edit your weewx.conf file and add the Pusher configuration to the StdRestful section. The installer automatically adds the Pusher configuration to your configuration file. If you prefer to have some comments in the configuration, copy and paste the following configuration into your weewx.conf file:

    [StdRestful]
        ...
        [[Pusher]]
            # This section is for configuring pushes to Pusher.
            enable = true
    
            # Set to the credentials of your Pusher application.
            # If you are not using the main cluster of Pusher
            # you need to specify the cluster.
            app_id = replace_me
            key = replace_me
            secret = replace_me
            # cluster = eu
    
            # Channel and event settings. The weather data is pushed
            # to the given channel, with the specified event name.
            channel = replace_me
            event = replace_me
    
            # The post interval of the weather data that is being pushed to
            # Pusher, in seconds. The default post interval is 5 seconds.
            post_interval = 5
    
            # You can customize the observations that are being sent
            # to Pusher. For example you can add 'dayRain' to the
            # observations to push the daily rain summary.
            # observation_types = dateTime, barometer, inTemp, outTemp, inHumidity, outHumidity, windSpeed, windDir, rain, rainRate
  4. Restart WeeWX. WeeWX should then push your weather data to Pusher. You should be able to see the weather data in the Pusher debug console.

    /etc/init.d/weewx restart

Issues

If you have any issues with the extension, please let me know via the GitHub issues section. Provide as much information as possible, including the system log, so I can try to reproduce the problem. Turn WeeWX debugging on before posting your system log. Make sure you don't post any private information like API keys or secret keys.

License & Copyright

Copyright (c) 2016 Raymon de Looff [email protected]. This extension is open-source software licensed under the GPLv3 license.

weewx-pusher's People

Contributors

raymondelooff avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.