• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Extracting Data from Pop3 Email

    Scheduled Pinned Locked Moved User help
    4 Posts 2 Posters 1.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      Robmalone
      last edited by phildunlap

      Hi all,
      I am attempting to use a pop3 email as a data source but am having issues successfully extracting the data. I have a Sigfox device sending kWh readings every 15 mins from 3 modbus devices. There is one email sent per modbus slave device. It was working well with just one device but since adding 2 more devices it is having trouble extracting data.
      The email format is:

      **Modbus Slave 1:** Subject: 209start 15398 end Body:209start 15398 end
      **Modbus Slave 2:** Subject: 210start 2043 end
      **Modbus Slave 3:**211start 2113 end.
      

      ^ formatting modified by Phil

      **Modbus Slave 1:** Subject: 209start 15398 end Body:209start 15398 end, **Modbus Slave 2:** Subject: 210start 2043 end & **Modbus Slave 3:**211start 2113 end.
      

      ^ original formatting but inside ``` for not getting italics from the stars

      The format for the emails sent from the sigfox backend is configurable but it will be the same for each modbus device. The only thing to differentiate each slave device is the message no. (209, 210 & 211). I have RegEx set up for each data point in this format - 209start (.*?) end, 210start (.*?) end, 211start (.*?) end respectively. The emails are being received by Mango and deleted from the inbox but its not extracting the data correctly. Is there anything else I can do here? Thanks.

      1 Reply Last reply Reply Quote 0
      • phildunlapP Offline
        phildunlap
        last edited by

        Hi Robmalone,

        I'm not sure exactly where the message formatting of the sample data would be from. It seems like Slave 3 is missing the subject / body distinctions and slave 2 is missing the body. So, is that copied from somewhere or spitballed?

        Assuming that is whole message is the body of the email, I would have expected your regex to match on that one. But, if that's an example of three different messages then you'll need to be sure to "Ignore if missing" is checked on all the points.

        Something like,

        0_1544467439452_forumPop3.png

        Have you checked the events page to see if there are any related events?

        1 Reply Last reply Reply Quote 0
        • R Offline
          Robmalone
          last edited by

          Thanks for getting back Phildunlap. The email subject and body are the same for each only the message no. and kwh reading are different. That was my poor copying not different emails. All of the emails read (message no.)start (dataIwant) end, without the brackets. I can change that to something else if you think it would help. The only messages were "no match found" type, not sure of the exact wording. I'll make sure "ignore if missing" is ticked on all points and let you know.
          Thanks again.

          1 Reply Last reply Reply Quote 0
          • R Offline
            Robmalone
            last edited by

            Thanks Phil. Looks like selecting the points to ignore if missing did the trick.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post