span8
span4
建立自动化电话系统比往往的服务更容易,如Twilio。Twilio已经建立了一种通信平台,转换动作,如发送和接收呼叫/短信消息,传统上需要在重要的硬件中投资,进入简单的API调用。Twilio的一个用例是根据一套业务规则为人群进行自动呼叫。但是,我们真正想要做的是制作智能自动化呼叫 - 即位置进入的位置 - 通常通知仅适用于用户处于某个位置。
The first thing I have done is created a series of Twilio FME custom transformers that allow you to easily interact with Twilio in FME Desktop.
Twiliomakecalls.: Make automated calls, the content of the call can be set at runtime.
TwilioSendSMS: Send SMS messages, the message content including text and images can be set at runtime.
The scenario we will look at is related to flooding. Let’s say that we want to monitor real-time flood data, based on the level of the river dynamically generate flood plain maps, and then select everyone that lies within the floodplain and send them an automated message if there is a problem.
Flood data: The USGS provides real-time gage height and discharge for the whole of the USA now. We read in thedata for the Gilmer County catchment.
Floodplain map: Point cloud data for the drainage basin including z values.
Users: A database of users who have subscribed to receive alerts. You will need to build a subscribe workflow to allow users to signup for the service, details on how to do thathere.
We read the USGS feed every 1 minute using the schedule functionality on FME Server.
使用点云数据,我们可以创建代表不同洪水风险区域的多边形。我创建了两个区域:人们直接风险和需要警告的人。基于洪水高度动态创建多边形。例如,如果仪表目前在10英尺 - 泛洪级别上方 - 我们创建以下多边形:
Immediate Risk: Containing the land mass below gauge height and up to 5 feet above gauge height.
Warning risk: Containing the land mass between 5 feet to 15 feet above gauge height.
这些都是我们使用的变压器achieve this complex workflow, all 12 of them!
Now that we have selected our subscribers that are at risk of flooding we need to send them a notification to warn them. We do this using the Twilio web service. There are two custom transformers in the FME Store, TwilioMakeCall and TwilioSendSMS. Using the telephone number from the database we send the immediate risk people a automated call and the people at moderate risk a SMS.
We need to run this workspace every minute to check the latest data coming from USGS. To do this we publish the workspace up to FME Server and schedule it to run every minute. The failover and fault tolerance capabilities of FME Server ensures that the workspace will always run.
Thank you for the article, very informative and helpful! I have been trying to build a similar workspace using the TwilioSMSSender using a trial Twilio account. I have to verify each number I want to send the text to before it works, otherwise the TwilioSMSSender will not work. Is this the same with the paid version of Twilio? Because the purpose of my workspace kind of gets lost if I do need to verify each number... Thank you in advance!!
Hi@ev2019除非Twilio发生了变化,否则在我使用付费版本时对我来说并非如此。我所做的就是在账户上加载了大约30美元的信用。然后我不得不选择我发送的号码。之后,我可以将短信发送给任何数字。自从我试过了大约1年前。
Receiving email, Part 2: Processing email with a workspace (2015)
Receiving email, Part 3: Using email attachments (2015)
Receiving email, Part 1: Setting up a topic and an email address (2015)
发送电子邮件,第4部分:使用HTML发送更漂亮的电子邮件(2015)
Sending email, Part 1: Setting up a topic and an email subscriber (2015)
Sending email, Part 3: Sending an email when a workspace completes (2015)
Sending email, Part 2: Sending an email using the FMEServerNotifier (2015)
© 2020 Safe Software Inc |合法的