david-fisher / 320-F19-Track-I

Track I's group repo
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Update Hobolink Email Delivery Destination #82

Open GitThePower opened 4 years ago

GitThePower commented 4 years ago

The hobolink data delivery is set to deliver to an email account which routes the email to the s3. A new orchard watch gmail account needs to be created and set to automatically route emails to the s3.

Procedure:

  1. Create a new gmail account for Orchard Watch

  2. Go to https://www.hobolink.com/ and log in with the orchard watch credentials

  3. From the home page, navigate to the sidebar, open the Data drop-down menu, and select Data Delivery

  4. Select the delivery titled "EmailHourly"

  5. Under the Data Destination section, locate the Email Address field and replace the existing email with the new Orchard Watch gmail

  6. Click the Save button

  7. Log into the Orchard Watch gmail

  8. Find and select the gear shaped button on the right side of the page

  9. From the drop-down menu, select Settings

  10. From the top-bar sections of the Settings page, select Forwarding and POP/IMAP

  11. Under the Forwarding section, select the "Add forwarding address" button

  12. In the following prompt, enter 123@orchardwatch.org and select the Next button. This should send a confirmation email to the s3 bucket and ask for a confirmation number in a prompt

  13. Log into the AWS cloud console and navigate to the s3

  14. In the s3 console, select 0bucket2019

  15. In 0bucket2019, navigate to the hobo-data directory and locate the confirmation email file (it should be less than 10kB in size and will have a timestamp close to the current time if these steps are followed sequentially)

  16. Select the check box next to the file, then click the Download button to save a file to your computer

  17. Write some code (or use part of the code located in hobonet-lambda decode.py file) to read the file and print its contents, then locate the confirmation number

  18. Return to the Orchard Watch gmail and enter the confirmation number in the prompt to register the forwarding address

  19. Either set all emails to forward to the forwarding address or configure a filter to send only emails addressed from hobolink