{"id":30748,"date":"2021-09-28T13:04:24","date_gmt":"2021-09-28T11:04:24","guid":{"rendered":"https:\/\/www.sms77.io\/docs\/third-party-solutions\/stackstorm\/"},"modified":"2021-12-10T11:00:36","modified_gmt":"2021-12-10T10:00:36","slug":"stackstorm","status":"publish","type":"docs","link":"https:\/\/www.seven.io\/en\/docs\/third-party-solutions\/stackstorm\/","title":{"rendered":"StackStorm"},"content":{"rendered":"<p><a href=\"https:\/\/stackstorm.com\/\" target=\"_blank\" rel=\"noopener\">StackStorm<\/a> is an event-driven software solution for routine automation. It supports the infrastructure-as-code (IaC) principle with respect to DevOps. It can be compared with alternatives such as Ansible or SaltStack. The end-user counterpart to StackStorm is IFTTT, Integromat or Zapier. StackStorm is written in Python and offers a wide range of modules for every conceivable use case in IT.<\/p>\n<h2>Installation<\/h2>\n<p>.<br \/>\nInstalling our package for StackStorm is quite simple. All that is required is a working instance of StackStorm. Once this is available, all that remains is to run the command <code>st2 pack install https:\/\/github.com\/sms77io\/StackStorm<\/code> in a terminal.<\/p>\n<h2>Configuration<\/h2>\n<p>.<br \/>\nThe sample configuration <i>sms77.yaml.dist<\/i> must be copied to <i>\/opt\/stackstorm\/configs\/sms77.yaml<\/i> and the key <i>api_key<\/i> must be supplemented with an API key from sms77 which can be created or viewed in the <a href=\"https:\/\/app.sms77.io\/developer\" target=\"_blank\" rel=\"noopener\">developer dashboard<\/a>.<\/p>\n<p>The configuration file also supports dynamic values &#8211; see <a href=\"https:\/\/docs.stackstorm.com\/reference\/pack_configs.html#dynamic-configuration-value\" target=\"_blank\" rel=\"noopener\">documentation<\/a>.<\/p>\n<p><strong>Important: <\/strong> After configuration is complete, we must notify StackStorm of new values by running <code>st2ctl reload --register-configs<\/code> in the terminal.<\/p>\n<h2>Actions<\/h2>\n<p>.<br \/>\nThe following is an explanation of the implemented Actions. Each action addresses a different endpoint of the interface.<\/p>\n<h3>send_sms<\/h3>\n<p>.<br \/>\nThis action sends SMS messages. Multiple destinations can be specified separated by commas.<br \/>\n<i>Example:<\/i> <code>st2 run sms77.send_sms to=\"01716992343,491771783130\" text=HI2U from=SenderIdentifier flash=true performance_tracking=true sandbox=false no_reload=true label=MyLabel foreign_id=MyForeignID delay=\"2022-11-29 14:15:30\"<\/code><\/p>\n<h3>send_voice<\/h3>\n<p>send_voice &#8211; This action converts a text to voice, calls the given phone number and plays it.<br \/>\n<i>Example: <\/i> <code>st2 run sms77.send_voice to=+491716992343 text='System failure!' from=+491771783130 xml=false<\/code>.<\/p>\n<h2>GitHub<\/h3>\n<p>sms77 for StackStorm is an open source product. The source code can be accessed at any time by clicking the following links.<br \/>\n[GitHub repo=&#8217;StackStorm&#8217; lang=&#8217;en&#8217;]\n","protected":false},"featured_media":0,"parent":17826,"menu_order":56,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-30748","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/30748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/comments?post=30748"}],"version-history":[{"count":2,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/30748\/revisions"}],"predecessor-version":[{"id":30751,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/30748\/revisions\/30751"}],"up":[{"embeddable":true,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/17826"}],"next":[{"title":"Strapi","link":"https:\/\/www.seven.io\/en\/docs\/third-party-solutions\/strapi\/","href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/27598"}],"prev":[{"title":"Zapier","link":"https:\/\/www.seven.io\/en\/docs\/third-party-solutions\/zapier\/","href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/docs\/29305"}],"wp:attachment":[{"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/media?parent=30748"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.seven.io\/en\/wp-json\/wp\/v2\/doc_tag?post=30748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}