@bsatrom - I have been looking at this part of our project (finally) and have had another person looking at it for about a week. I’m an intermediate level programmer who has made considerable progress in the last month on our main monitoring program to monitor and report pressure from a vapor recovery system for the gasoline distribution industry.
That being said, we do not have a lot of experience with AWS or their version of “lambda”. I understood “lambda” to be an anonymous function that I have only touched a couple of times in programming tutorials. Your python guide for AWS seems to be extremely comprehensive and would be well suited for our needs, but we just cannot figure it out.
There seems to be something missing in the glue that connects all the functions together between the web hooks and the functions and we cannot really determine which function goes where and how they all inter-relate.
Is there a simplier way perhaps? one were we just drop a file in any accessible location and the send a note to card to begin the download process? We have our own linux server currently exposed on port 80 and responding to web hooks from particle and is being used to receive and collect the data from units already. I could easily add a python script there to received a command from a blues webhook.
looking at the notifier code, you have:
def lambda_handler(event, context):
project = os.environ['PRODUCT_UID']
device = os.environ['DEVICE_UID']
I do not understand how a specific notecard actually gets notified that there is a new file waiting.
How does the notifier get the project and device within the scope of the AWS lambda function?