Code Monkey home page Code Monkey logo

pushsafer-weechat's Introduction

Pushsafer

Pushsafer for Weechat

Send private messages and highlights to your Android, iOS or Windows 10 devices via the Pushsafer service (https://www.pushsafer.com)

##How to send push-notification out of weechat with Pushsafer

Pushsafer.com make it easy and safe to send & receive push-notifications to your

  • Android devices
  • iOS devices (iPhone, iPad, iPod Touch, Watch)
  • Windows 10 Phone & Desktop
  • Browser (Chrome & Firefox)

Install

Load the pushsafer-weechat.rb plugin into Weechat. Place it in the ~/.weechat/ruby directory:

/ruby load https://raw.githubusercontent.com/appzer/pushsafer-weechat/master/pushsafer-weechat.rb

It also requires a Pushsafer account and Ruby, the Ruby OpenSSL libraries, and RubyGems installed on your host.

Setup

Set your Pushsafer private key.

/set plugins.var.ruby.pushsafer-weechat.privatekey XXXXXXXXXXXXXXXXXXX

Options

The following parameters you can modify, further informations you will find on https://www.pushsafer.com/en/pushapi

  • plugins.var.ruby.pushsafer-weechat.privatekey

    The private or alias key for your Pushsafer service. Defaults to an empty string and must be set for pushsafer-weechat to work.

  • plugins.var.ruby.pushsafer-weechat.interval

    The interval between notifications. Doesn't notify if the last

    notification was within x seconds.

    Default: 60 seconds

  • plugins.var.ruby.pushsafer-weechat.sound

    Set your notification sound options

    a number 0-28 0 = silent, blank = device default

    Default: blank (Sound will be device default)

  • plugins.var.ruby.pushsafer-weechat.device

    Set your notification device

    your device or device group id, if empty = to all devices

    Default: blank

  • plugins.var.ruby.pushsafer-weechat.icon

    Set your notification icon

    a number 1-98

    Default: blank

  • plugins.var.ruby.pushsafer-weechat.vibration

    Set your notification vibration

    a number 0-3

    Default: blank

  • plugins.var.ruby.pushsafer-weechat.time2live

    Set your notification time to live

    a number 0-43200: Time in minutes, after which message automatically gets purged.

    Default: blank

  • plugins.var.ruby.pushsafer-weechat.url

    Set your notification url

    a url or url scheme

    Default: blank

  • plugins.var.ruby.pushsafer-weechat.urltitle

    Set your notification url title

    title of url

    Default: blank

pushsafer-weechat's People

Contributors

appzer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mheler

pushsafer-weechat's Issues

Crash in weechat due to ruby exception when loading plugin

When loading the pushsafer-weechat.rb module, weechat crashes due to something being excepted within the plugin.

My version of weechat:

# weechat --version
3.0.1

# rpm -q weechat
weechat-3.0.1-1.fc34.x86_64

Getting the files directly from weechat.org although I have used this repositories version as well:

# curl 'https://weechat.org/files/scripts/buffzilla.rb' -o ~/.weechat/ruby/buffzilla.rb
# curl 'https://weechat.org/files/scripts/pushsafer-weechat.rb' -o ~/.weechat/ruby/pushsafer-weechat.rb

Within weechat, proving other ruby plugins work:

/ruby load buffzilla.rb
ruby: loading script "/root/.weechat/ruby/buffzilla.rb"
ruby: registered script "buffzilla", version 0.1 (Copy all activity to a single read-only buffer.)

And now loading pushsafer-weechat.rb:

/ruby load pushsafer-weechat.rb

There is a crash:

*** Very bad! WeeChat is crashing (SIGSEGV received)
*** Full crash dump was saved to /root/.weechat/weechat_crash_20210712_301467.log file.
***
*** Please help WeeChat developers to fix this bug:
***
***   1. If you have a core file, please run: gdb /path/to/weechat core
***      then issue command: "bt full" and send result to developers.
***      See the user's guide for more info about enabling the core files
***      and reporting crashes:
***      https://weechat.org/doc/stable/user#report_crashes
***
***   2. Otherwise send the backtrace (below), only if it is a complete trace.
***      Keep the crash log file, just in case developers ask you some info
***      (be careful, private info like passwords may be in this file).

======= WeeChat backtrace =======
(written by WeeChat 3.0.1, compiled on Feb 12 2021 00:00:00)
001  ??:0 [function ??]
002  ??:0 [function ??]
003  ??:? [function rb_bug_reporter_add]
004  ??:? [function ruby_sysinit]
005  ??:? [function funlockfile]
006  ??:? [function rb_check_copyable]
007  ??:? [function rb_extend_object]
008  ??:? [function rb_exc_raise]
009  ??:? [function rb_enc_raise]
010  ??:? [function rb_raise]
011  ??:? [function rb_obj_is_instance_of]
012  ??:? [function rb_convert_type_with_id]
013  ??:? [function rb_string_value]
014  ??:? [function rb_string_value_ptr]
015  ??:? [function weechat_ruby_print_exception]
016  ??:? [function weechat_ruby_exec]
017  ??:? [function weechat_ruby_api_hook_print_cb]
018  ??:0 [function ??]
019  ??:? [function weechat_ruby_load]
020  ??:? [function weechat_ruby_command_cb]
021  ??:0 [function ??]
022  ??:0 [function ??]
023  ??:0 [function ??]
024  ??:0 [function ??]
025  ??:0 [function ??]
026  ??:0 [function ??]
027  ??:0 [function ??]
028  ??:0 [function ??]
029  ??:0 [function ??]
030  ??:0 [function ??]
======= End of  backtrace =======
Aborted (core dumped)

I'm still debugging this further, but unsure if it is a bug in weechat, this script, or both.

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.