Pushover

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Pushover

Serge Martel (smartel)

Good day everyone,

 

I am trying to implement the Pushover notification that was added to 4.2, so far what I have done:

- I have added the settings in the my private ini file.

Pushover_token = mypushovertoken

Pushover_user =  myusertoken

Pushover_device = Iphone

Pushover_priority = 0

Pushover_html = 0

Pushover_title = "MisterHouse"

 

-I added this to my .mht file:

                              

CODE, require Pushover; #noloop

CODE, my $push = new Pushover(); #noloop

 

                -Then in my user code do this:

 

                               use pushover;

                                $push->notify( " Misterhouse startup ", { title => 'Security Alert', priority => 2, html => 1 } );

 

I have enabled the Debug in the Pushover.pm module and I get this in the log when trying to use it:

 

03/18/17 12:15:07  [Pushover] message: Misterhouse startup

03/18/17 12:15:07  [Pushover] Notify results: $VAR1 = \bless( {

                   '_msg' => 'Protocol scheme \'https\' is not supported (Crypt::SSLeay not installed)',

                   '_rc' => 501,

                   '_headers' => bless( {

                                          'content-type' => 'text/plain',

                                          'client-warning' => 'Internal response',

                                          'client-date' => 'Sat, 18 Mar 2017 16:15:08 GMT'

                                        }, 'HTTP::Headers' ),

                   '_request' => bless( {

                                          '_uri' => bless( do{\(my $o = 'https://api.pushover.net/1/messages.json')}, 'URI::https' ),

                                          '_method' => 'POST',

                                          '_headers' => bless( {

                                                                 'content-type' => 'application/x-www-form-urlencoded',

                                                                 'content-length' => 162,

                                                                 'user-agent' => 'libwww-perl/5.805'

                                                               }, 'HTTP::Headers' ),

                                          '_content' => 'expire=3600&token=mypushovertoken&retry=30&user=usertoken&message=Startup+Misterhouse&priority=2&html=1&title=Security+Alert'

                                        }, 'HTTP::Request' ),

                   '_content' => 'LWP will support https URLs if the Crypt::SSLeay module is installed.

More information at <http://www.linpro.no/lwp/libwww-perl/README.SSL>.

'

                 }, 'HTTP::Response' );

 

Error found in user code file: /opt/mrhousedata/data/mh_temp.user_code (error_count 1)

 

03/18/17 12:15:07 : malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "LWP will support htt...") at /opt/misterhouse/bin/../lib/Pushover.pm line 259.

at /opt/misterhouse/bin/mh line 31.

        main::__ANON__("malformed JSON string, neither tag, array, object, number, st"...) called at /opt/misterhouse/bin/../lib/Pushover.pm line 259

        Pushover::notify(Pushover=HASH(0x39f4650), "Misterhouse Startup", HASH(0x38aaae0)) called at (eval 448) line 5103

        main::code_loopcode() called at (eval 448) line 6259

        main::loop_code called at (eval 1379) line 1

 

The message seems to point to Crypt::SSLeay module, I have tried to install it with CPAN whitout success, any help, pointers are welcome!

 

I can use the curl command my tokens and it works, Anyone using that module?

 

Thank you!


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Pushover

Lieven Hollevoet
Administrator
Hello Serge,

what OS are you running? If you’re on Ubuntu or alike, the you can consider installing the module using apt-get.

The module is called libcrypt-ssleay-perl

Best regards,
 Lieven.


> Op 18 mrt. 2017, om 17:45 heeft Serge Martel (smartel) <[hidden email]> het volgende geschreven:
>
> Good day everyone,
>
> I am trying to implement the Pushover notification that was added to 4.2, so far what I have done:
> - I have added the settings in the my private ini file.
> Pushover_token = mypushovertoken
> Pushover_user =  myusertoken
> Pushover_device = Iphone
> Pushover_priority = 0
> Pushover_html = 0
> Pushover_title = "MisterHouse"
>
> -I added this to my .mht file:
>
> CODE, require Pushover; #noloop
> CODE, my $push = new Pushover(); #noloop
>
>                 -Then in my user code do this:
>
>                                use pushover;
>                                 $push->notify( " Misterhouse startup ", { title => 'Security Alert', priority => 2, html => 1 } );
>
> I have enabled the Debug in the Pushover.pm module and I get this in the log when trying to use it:
>
> 03/18/17 12:15:07  [Pushover] message: Misterhouse startup
> 03/18/17 12:15:07  [Pushover] Notify results: $VAR1 = \bless( {
>                    '_msg' => 'Protocol scheme \'https\' is not supported (Crypt::SSLeay not installed)',
>                    '_rc' => 501,
>                    '_headers' => bless( {
>                                           'content-type' => 'text/plain',
>                                           'client-warning' => 'Internal response',
>                                           'client-date' => 'Sat, 18 Mar 2017 16:15:08 GMT'
>                                         }, 'HTTP::Headers' ),
>                    '_request' => bless( {
>                                           '_uri' => bless( do{\(my $o = 'https://api.pushover.net/1/messages.json')}, 'URI::https' ),
>                                           '_method' => 'POST',
>                                           '_headers' => bless( {
>                                                                  'content-type' => 'application/x-www-form-urlencoded',
>                                                                  'content-length' => 162,
>                                                                  'user-agent' => 'libwww-perl/5.805'
>                                                                }, 'HTTP::Headers' ),
>                                           '_content' => 'expire=3600&token=mypushovertoken&retry=30&user=usertoken&message=Startup+Misterhouse&priority=2&html=1&title=Security+Alert'
>                                         }, 'HTTP::Request' ),
>                    '_content' => 'LWP will support https URLs if the Crypt::SSLeay module is installed.
> More information at <http://www.linpro.no/lwp/libwww-perl/README.SSL>.
> '
>                  }, 'HTTP::Response' );
>
> Error found in user code file: /opt/mrhousedata/data/mh_temp.user_code (error_count 1)
>
> 03/18/17 12:15:07 : malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "LWP will support htt...") at /opt/misterhouse/bin/../lib/Pushover.pm line 259.
> at /opt/misterhouse/bin/mh line 31.
>         main::__ANON__("malformed JSON string, neither tag, array, object, number, st"...) called at /opt/misterhouse/bin/../lib/Pushover.pm line 259
>         Pushover::notify(Pushover=HASH(0x39f4650), "Misterhouse Startup", HASH(0x38aaae0)) called at (eval 448) line 5103
>         main::code_loopcode() called at (eval 448) line 6259
>         main::loop_code called at (eval 1379) line 1
>
> The message seems to point to Crypt::SSLeay module, I have tried to install it with CPAN whitout success, any help, pointers are welcome!
>
> I can use the curl command my tokens and it works, Anyone using that module?
>
> Thank you!
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


signature.asc (465 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Pushover

Serge Martel (smartel)
In reply to this post by Serge Martel (smartel)
Great Thanks Lieven,

I am running on a Raspberry Pi and that did the trick, I was fighting with CPAN for nothing!

Thank you again!
Serge

-----Message d'origine-----
De : Lieven Hollevoet [mailto:[hidden email]]
Envoyé : 18 mars 2017 13:52
À : Serge Martel (smartel)
Cc : [hidden email]
Objet : Re: [mh] Pushover

Hello Serge,

what OS are you running? If you’re on Ubuntu or alike, the you can consider installing the module using apt-get.

The module is called libcrypt-ssleay-perl

Best regards,
 Lieven.


> Op 18 mrt. 2017, om 17:45 heeft Serge Martel (smartel) <[hidden email]> het volgende geschreven:
>
> Good day everyone,
>
> I am trying to implement the Pushover notification that was added to 4.2, so far what I have done:
> - I have added the settings in the my private ini file.
> Pushover_token = mypushovertoken
> Pushover_user =  myusertoken
> Pushover_device = Iphone
> Pushover_priority = 0
> Pushover_html = 0
> Pushover_title = "MisterHouse"
>
> -I added this to my .mht file:
>
> CODE, require Pushover; #noloop
> CODE, my $push = new Pushover(); #noloop
>
>                 -Then in my user code do this:
>
>                                use pushover;
>                                 $push->notify( " Misterhouse startup
> ", { title => 'Security Alert', priority => 2, html => 1 } );
>
> I have enabled the Debug in the Pushover.pm module and I get this in the log when trying to use it:
>
> 03/18/17 12:15:07  [Pushover] message: Misterhouse startup
> 03/18/17 12:15:07  [Pushover] Notify results: $VAR1 = \bless( {
>                    '_msg' => 'Protocol scheme \'https\' is not supported (Crypt::SSLeay not installed)',
>                    '_rc' => 501,
>                    '_headers' => bless( {
>                                           'content-type' => 'text/plain',
>                                           'client-warning' => 'Internal response',
>                                           'client-date' => 'Sat, 18 Mar 2017 16:15:08 GMT'
>                                         }, 'HTTP::Headers' ),
>                    '_request' => bless( {
>                                           '_uri' => bless( do{\(my $o = 'https://api.pushover.net/1/messages.json')}, 'URI::https' ),
>                                           '_method' => 'POST',
>                                           '_headers' => bless( {
>                                                                  'content-type' => 'application/x-www-form-urlencoded',
>                                                                  'content-length' => 162,
>                                                                  'user-agent' => 'libwww-perl/5.805'
>                                                                }, 'HTTP::Headers' ),
>                                           '_content' => 'expire=3600&token=mypushovertoken&retry=30&user=usertoken&message=Startup+Misterhouse&priority=2&html=1&title=Security+Alert'
>                                         }, 'HTTP::Request' ),
>                    '_content' => 'LWP will support https URLs if the Crypt::SSLeay module is installed.
> More information at <http://www.linpro.no/lwp/libwww-perl/README.SSL>.
> '
>                  }, 'HTTP::Response' );
>
> Error found in user code file: /opt/mrhousedata/data/mh_temp.user_code
> (error_count 1)
>
> 03/18/17 12:15:07 : malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "LWP will support htt...") at /opt/misterhouse/bin/../lib/Pushover.pm line 259.
> at /opt/misterhouse/bin/mh line 31.
>         main::__ANON__("malformed JSON string, neither tag, array, object, number, st"...) called at /opt/misterhouse/bin/../lib/Pushover.pm line 259
>         Pushover::notify(Pushover=HASH(0x39f4650), "Misterhouse Startup", HASH(0x38aaae0)) called at (eval 448) line 5103
>         main::code_loopcode() called at (eval 448) line 6259
>         main::loop_code called at (eval 1379) line 1
>
> The message seems to point to Crypt::SSLeay module, I have tried to install it with CPAN whitout success, any help, pointers are welcome!
>
> I can use the curl command my tokens and it works, Anyone using that module?
>
> Thank you!
> ----------------------------------------------------------------------
> -------- Check out the vibrant tech community on one of the world's
> most engaging tech sites, Slashdot.org!
> http://sdm.link/slashdot______________________________________________
> __________ To unsubscribe from this list, go to:
> https://lists.sourceforge.net/lists/listinfo/misterhouse-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users

Reply | Threaded
Open this post in threaded view
|

Re: Pushover

Lieven Hollevoet
Administrator
Hey Serge,

welcome, I’m just sharing my experience I had with previously with Ubuntu.

If you want to avoid making modifications to the system-installed Perl, then you can take a look at Perlbrew. This allows you to install a Perl version under your home folder where CPAN works as expected, and you have the extra advantage that system updates will not break your Perl installation (in case modules get updated in the system Perl), plus you can install any Perl version you want.

I’m using this on OS X to run MisterHouse.

Best regards,
 Lieven.

> Op 18 mrt. 2017, om 19:06 heeft Serge Martel (smartel) <[hidden email]> het volgende geschreven:
>
> Great Thanks Lieven,
>
> I am running on a Raspberry Pi and that did the trick, I was fighting with CPAN for nothing!
>
> Thank you again!
> Serge
>
> -----Message d'origine-----
> De : Lieven Hollevoet [mailto:[hidden email]]
> Envoyé : 18 mars 2017 13:52
> À : Serge Martel (smartel)
> Cc : [hidden email]
> Objet : Re: [mh] Pushover
>
> Hello Serge,
>
> what OS are you running? If you’re on Ubuntu or alike, the you can consider installing the module using apt-get.
>
> The module is called libcrypt-ssleay-perl
>
> Best regards,
> Lieven.
>
>
>> Op 18 mrt. 2017, om 17:45 heeft Serge Martel (smartel) <[hidden email]> het volgende geschreven:
>>
>> Good day everyone,
>>
>> I am trying to implement the Pushover notification that was added to 4.2, so far what I have done:
>> - I have added the settings in the my private ini file.
>> Pushover_token = mypushovertoken
>> Pushover_user =  myusertoken
>> Pushover_device = Iphone
>> Pushover_priority = 0
>> Pushover_html = 0
>> Pushover_title = "MisterHouse"
>>
>> -I added this to my .mht file:
>>
>> CODE, require Pushover; #noloop
>> CODE, my $push = new Pushover(); #noloop
>>
>>                -Then in my user code do this:
>>
>>                               use pushover;
>>                                $push->notify( " Misterhouse startup
>> ", { title => 'Security Alert', priority => 2, html => 1 } );
>>
>> I have enabled the Debug in the Pushover.pm module and I get this in the log when trying to use it:
>>
>> 03/18/17 12:15:07  [Pushover] message: Misterhouse startup
>> 03/18/17 12:15:07  [Pushover] Notify results: $VAR1 = \bless( {
>>                   '_msg' => 'Protocol scheme \'https\' is not supported (Crypt::SSLeay not installed)',
>>                   '_rc' => 501,
>>                   '_headers' => bless( {
>>                                          'content-type' => 'text/plain',
>>                                          'client-warning' => 'Internal response',
>>                                          'client-date' => 'Sat, 18 Mar 2017 16:15:08 GMT'
>>                                        }, 'HTTP::Headers' ),
>>                   '_request' => bless( {
>>                                          '_uri' => bless( do{\(my $o = 'https://api.pushover.net/1/messages.json')}, 'URI::https' ),
>>                                          '_method' => 'POST',
>>                                          '_headers' => bless( {
>>                                                                 'content-type' => 'application/x-www-form-urlencoded',
>>                                                                 'content-length' => 162,
>>                                                                 'user-agent' => 'libwww-perl/5.805'
>>                                                               }, 'HTTP::Headers' ),
>>                                          '_content' => 'expire=3600&token=mypushovertoken&retry=30&user=usertoken&message=Startup+Misterhouse&priority=2&html=1&title=Security+Alert'
>>                                        }, 'HTTP::Request' ),
>>                   '_content' => 'LWP will support https URLs if the Crypt::SSLeay module is installed.
>> More information at <http://www.linpro.no/lwp/libwww-perl/README.SSL>.
>> '
>>                 }, 'HTTP::Response' );
>>
>> Error found in user code file: /opt/mrhousedata/data/mh_temp.user_code
>> (error_count 1)
>>
>> 03/18/17 12:15:07 : malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "LWP will support htt...") at /opt/misterhouse/bin/../lib/Pushover.pm line 259.
>> at /opt/misterhouse/bin/mh line 31.
>>        main::__ANON__("malformed JSON string, neither tag, array, object, number, st"...) called at /opt/misterhouse/bin/../lib/Pushover.pm line 259
>>        Pushover::notify(Pushover=HASH(0x39f4650), "Misterhouse Startup", HASH(0x38aaae0)) called at (eval 448) line 5103
>>        main::code_loopcode() called at (eval 448) line 6259
>>        main::loop_code called at (eval 1379) line 1
>>
>> The message seems to point to Crypt::SSLeay module, I have tried to install it with CPAN whitout success, any help, pointers are welcome!
>>
>> I can use the curl command my tokens and it works, Anyone using that module?
>>
>> Thank you!
>> ----------------------------------------------------------------------
>> -------- Check out the vibrant tech community on one of the world's
>> most engaging tech sites, Slashdot.org!
>> http://sdm.link/slashdot______________________________________________
>> __________ To unsubscribe from this list, go to:
>> https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users


signature.asc (465 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Pushover

Serge Martel (smartel)
In reply to this post by Serge Martel (smartel)
Thanks, I'll give that a look

Serge

Envoyé de mon iPad

> Le 19 mars 2017 à 05:27, Lieven Hollevoet <[hidden email]> a écrit :
>
> Hey Serge,
>
> welcome, I’m just sharing my experience I had with previously with Ubuntu.
>
> If you want to avoid making modifications to the system-installed Perl, then you can take a look at Perlbrew. This allows you to install a Perl version under your home folder where CPAN works as expected, and you have the extra advantage that system updates will not break your Perl installation (in case modules get updated in the system Perl), plus you can install any Perl version you want.
>
> I’m using this on OS X to run MisterHouse.
>
> Best regards,
> Lieven.
>
>> Op 18 mrt. 2017, om 19:06 heeft Serge Martel (smartel) <[hidden email]> het volgende geschreven:
>>
>> Great Thanks Lieven,
>>
>> I am running on a Raspberry Pi and that did the trick, I was fighting with CPAN for nothing!
>>
>> Thank you again!
>> Serge
>>
>> -----Message d'origine-----
>> De : Lieven Hollevoet [mailto:[hidden email]]
>> Envoyé : 18 mars 2017 13:52
>> À : Serge Martel (smartel)
>> Cc : [hidden email]
>> Objet : Re: [mh] Pushover
>>
>> Hello Serge,
>>
>> what OS are you running? If you’re on Ubuntu or alike, the you can consider installing the module using apt-get.
>>
>> The module is called libcrypt-ssleay-perl
>>
>> Best regards,
>> Lieven.
>>
>>
>>> Op 18 mrt. 2017, om 17:45 heeft Serge Martel (smartel) <[hidden email]> het volgende geschreven:
>>>
>>> Good day everyone,
>>>
>>> I am trying to implement the Pushover notification that was added to 4.2, so far what I have done:
>>> - I have added the settings in the my private ini file.
>>> Pushover_token = mypushovertoken
>>> Pushover_user =  myusertoken
>>> Pushover_device = Iphone
>>> Pushover_priority = 0
>>> Pushover_html = 0
>>> Pushover_title = "MisterHouse"
>>>
>>> -I added this to my .mht file:
>>>
>>> CODE, require Pushover; #noloop
>>> CODE, my $push = new Pushover(); #noloop
>>>
>>>               -Then in my user code do this:
>>>
>>>                              use pushover;
>>>                               $push->notify( " Misterhouse startup
>>> ", { title => 'Security Alert', priority => 2, html => 1 } );
>>>
>>> I have enabled the Debug in the Pushover.pm module and I get this in the log when trying to use it:
>>>
>>> 03/18/17 12:15:07  [Pushover] message: Misterhouse startup
>>> 03/18/17 12:15:07  [Pushover] Notify results: $VAR1 = \bless( {
>>>                  '_msg' => 'Protocol scheme \'https\' is not supported (Crypt::SSLeay not installed)',
>>>                  '_rc' => 501,
>>>                  '_headers' => bless( {
>>>                                         'content-type' => 'text/plain',
>>>                                         'client-warning' => 'Internal response',
>>>                                         'client-date' => 'Sat, 18 Mar 2017 16:15:08 GMT'
>>>                                       }, 'HTTP::Headers' ),
>>>                  '_request' => bless( {
>>>                                         '_uri' => bless( do{\(my $o = 'https://api.pushover.net/1/messages.json')}, 'URI::https' ),
>>>                                         '_method' => 'POST',
>>>                                         '_headers' => bless( {
>>>                                                                'content-type' => 'application/x-www-form-urlencoded',
>>>                                                                'content-length' => 162,
>>>                                                                'user-agent' => 'libwww-perl/5.805'
>>>                                                              }, 'HTTP::Headers' ),
>>>                                         '_content' => 'expire=3600&token=mypushovertoken&retry=30&user=usertoken&message=Startup+Misterhouse&priority=2&html=1&title=Security+Alert'
>>>                                       }, 'HTTP::Request' ),
>>>                  '_content' => 'LWP will support https URLs if the Crypt::SSLeay module is installed.
>>> More information at <http://www.linpro.no/lwp/libwww-perl/README.SSL>.
>>> '
>>>                }, 'HTTP::Response' );
>>>
>>> Error found in user code file: /opt/mrhousedata/data/mh_temp.user_code
>>> (error_count 1)
>>>
>>> 03/18/17 12:15:07 : malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "LWP will support htt...") at /opt/misterhouse/bin/../lib/Pushover.pm line 259.
>>> at /opt/misterhouse/bin/mh line 31.
>>>       main::__ANON__("malformed JSON string, neither tag, array, object, number, st"...) called at /opt/misterhouse/bin/../lib/Pushover.pm line 259
>>>       Pushover::notify(Pushover=HASH(0x39f4650), "Misterhouse Startup", HASH(0x38aaae0)) called at (eval 448) line 5103
>>>       main::code_loopcode() called at (eval 448) line 6259
>>>       main::loop_code called at (eval 1379) line 1
>>>
>>> The message seems to point to Crypt::SSLeay module, I have tried to install it with CPAN whitout success, any help, pointers are welcome!
>>>
>>> I can use the curl command my tokens and it works, Anyone using that module?
>>>
>>> Thank you!
>>> ----------------------------------------------------------------------
>>> -------- Check out the vibrant tech community on one of the world's
>>> most engaging tech sites, Slashdot.org!
>>> http://sdm.link/slashdot______________________________________________
>>> __________ To unsubscribe from this list, go to:
>>> https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users