Hi Helge,
Glad you made steps forward. What you would like to happen:
PushingBox will send an email to Gmail with the text you define AND the variables MATLAB Analysis asks to send i.e. "Temperature is 35.5 *C".
-In PushingBox you put the text: Temperature is $tmpVar$ *C
-In MATLAB Analysis via webwrite you send "tmpVar=35.5" Of course 35.5 is one data point stored in Thingspeak Channel.
-In Gmail you receive one email with the subject "Temperature is 35.5 *C"
Details in PushingBox:
After Log-in the second line shows these links:
Dashboard - My Services - My Scenarios - Settings - API - Help - Community
you need to set up My Services and My Scenarios
In My Services you will want "Add a service" by clicking cyan button [Add a service] next you use another (right side) cyan button [Select this service] so a window appears asking for "a name" and your Gmail address to receive the emails (maybe new account for this use?)
Now in My Scenarios you have 4 steps,
1- fill the long textbox with a related name "not working" perhaps? then click at right [Add] button
2- COPY the DeviceID: characters, then click at the bottom [Add an Action] cyan button
3- Choice your "service" by clicking [Add an action with this service] cyan button
4- Window appears, there put the text for subject and body AND the variables, if any, you need; this way $VarName$ (in subject and/or body)
So, when PushingBox receives DeviceID: sends via My Services the My Scenarios associated with DeviceID:
You use MATLAB Analysis webwrite function to send (PushingBox's) DeviceID: and $VarName$ you want
Details in MATLAB Analysis:
Basically use webwrite function:
response = webwrite(destURL, 'devid',yourDeviceID, var1,val1, var2,val2, var3,val3)
As an related example:
destURL="http://api.pushingbox.com/pushingbox"
yourDeviceID= the DeviceID obtained in PushingBox i.e. v16Upcase-number
var1="xxxx"
val1=number or string you want in the email e.g. 123
var2="yyyy"
val2=number or string you want in the email e.g. "ON"
var3="zzzz"
val3=number or string you want in the email e.g. 1.23
So, in PushingBox you created
subject:my values are $xxx$ and $zzzz$
body:The switch in my bedroom is $yyyy$
You receive in Gmail:
Subject in inbox-->my values are 123 and 1.23
Inside body------->The switch in my bedroom is ON
If more info needed... post and share your work the way to all us learn
Cheers