{"id":1643,"date":"2017-12-18T10:36:08","date_gmt":"2017-12-18T10:36:08","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=1643"},"modified":"2017-12-18T10:38:38","modified_gmt":"2017-12-18T10:38:38","slug":"mentweet-plugin-for-twitter","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/mentweet-plugin-for-twitter\/","title":{"rendered":"Mentweet plugin for twitter"},"content":{"rendered":"<p>This script provides the number of tweets with mentions of a string in the last X seconds.<\/p>\n<h2>Module data<\/h2>\n<p>The plugin is in a pspz file to register it easily in Pandora FMS.<\/p>\n<p>Use:<\/p>\n<pre>\r\n.\/mentweet.pl '[search_string]' [OPTIONAL:interval_in_seconds]\r\n<\/pre>\n<p>Default interval: 300<\/p>\n<p>Example of use:<\/p>\n<pre>\r\n.\/mentweet.pl 'Pandora FMS' 600\r\n<\/pre>\n<p>Note: API Twitter allows 150 calls\/hour. Each script execution could do more than one call, if the limit is exceeded, the script will returns -1.<\/p>\n<p>This script requires the Twitter library.<\/p>\n<p>You can download it from the repositories (in my case from Ubuntu) typing:<\/p>\n<pre>\r\nsudo apt-get install libnet-twitter-perl\r\n<\/pre>\n<p>or from cpan site:<\/p>\n<p><a href=\"http:\/\/search.cpan.org\/dist\/Net-Twitter\/\" target=\"_blank\" rel=\"noopener nofollow\">http:\/\/search.cpan.org\/dist\/Net-Twitter\/<\/a><\/p>\n<h2>Included files<\/h2>\n<p><a href=\"\/library\/files_repository\/1322671907.Zarzuelo.mentweet.pspz\" rel=\"nofollow\">mentweet.pspz<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This script provides the number of tweets with mentions of a string in the last X seconds. Module data The plugin is in a pspz file to register it easily in Pandora FMS. Use: .\/mentweet.pl &#8216;[search_string]&#8217; [OPTIONAL:interval_in_seconds] Default interval: 300 Example of use: .\/mentweet.pl &#8216;Pandora FMS&#8217; 600 Note: API Twitter allows 150 calls\/hour. Each script [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[5],"tags":[58,569],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1643"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=1643"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/1643\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=1643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=1643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=1643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}