Effacer les filtres
Effacer les filtres

how should I take a screenshot of a matlab visualization and send it to myself by email?

1 vue (au cours des 30 derniers jours)
Mi He2
Mi He2 le 23 Oct 2023
Commenté : Mi He2 le 24 Oct 2023
how should I take a screenshot of a matlab visualization and send it to myself by email? Once a day I would like to "print" a visualization chart and ideally send it by email. Is it possible to make by script? Thank you.

Réponses (1)

Christopher Stapels
Christopher Stapels le 23 Oct 2023
Modifié(e) : Christopher Stapels le 23 Oct 2023
You could use the charts API to send a particular field chart. You wont get the custome MATLAB visualizations this way though.
Write MATLAB analysis code that generates the appropriate link and then trigger an alert email to send it to yourself. Here is part of an example, you'll have to modify it yourself with the right parameters.
myAverage=3;
url=sprintf("https://api.thingspeak.com/channels/276330/charts/1?average=%d&days=7&min=200",myDays);
alertBody="your link is " +url; %or you could add html fomatting to make sure it is clickable
webwrite(alertUrl , "body", alertBody, "subject", alertSubject, options);
To do it with custom MATLAB visualization plot, you could generate an image of your plot and then save it to amazon s3 or dropbox and email yourself a lnk to the plot. Thats a bit more involved, but Ive done all the parts of that workflow seperately. EDITED: I'd stick with version 1 for now. Or just make a custom MATLAB visualization, put it on a channel view and email yourself the link to the channel everyday. :)
  1 commentaire
Mi He2
Mi He2 le 24 Oct 2023
in the end, I solved it with a small python script that I added to the task scheduler in Windows, which saves the screen on my PC and sends it to me by email. No web service is free, only trial and it doesn't work properly (zapier, pagepixels, docma)

Connectez-vous pour commenter.

Communautés

Plus de réponses dans  ThingSpeak Community

Catégories

En savoir plus sur Configure Accounts and Channels dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by