Answers: <p>In case the requirement for Whatsapp/Facebook is not mandatory, you could consider using a solution offering an API for such things and targeted specifically for IT teams.</p>
  
  <p>For example, Slack channels allow uploading files through Slack's API and sharing files in channels.</p>
  
  <p>Documentation: <a href="https://api.slack.com/methods/files.upload" rel="nofollow noreferrer">https://api.slack.com/methods/files.upload</a></p>
  
  <p>For a ready CLI stub, consider for example <a href="https://github.com/bcicen/slackcat" rel="nofollow noreferrer">slackcat</a>.</p>
  
Answers: CC BY-SA 4.0
Answers: 2018-12-17T15:57:13.680Z
Answers: Hi Peter, I found this tool [slackcat](https://github.com/bcicen/slackcat). I tested this and it's working well with Linux CLI. I will soon incorporate this in my bash script. What do you say about this tool? Actually i am trying to automate this from CLI.
Answers: dheerendra
Answers: CC BY-SA 4.0
Answers: 2018-12-17T16:04:43.080Z
Answers: have no experience with this tool, but this it's great if there is already a CLI stub for the API! Cool finding, shamelessly added this to the answer body. :-)
Answers: Ta Mu
Answers: CC BY-SA 4.0
Answers: 2018-12-17T20:29:32.980Z
Answers: [pageres-cli](https://github.com/sindresorhus/pageres-cli) + [slackcat](https://github.com/bcicen/slackcat)  did the job. Unfortunately my organisation's proxy is blocking the connection to slack.
  Anyway, that's a different thing, my original problem is solved now. Thanks for the help.
Answers: dheerendra
Answers: CC BY-SA 4.0
Answers: 2018-12-17T14:32:08.937Z
Answers: 2018-12-17T16:05:31.710Z
Answers: 2018-12-17T16:05:31.710Z
Answers: Ta Mu
Answers: <blockquote>
    <p>I am trying to automate the process of "sending the screenshots of a monitoring tool dashboard to my WhatsApp number" at regular intervals.</p>
  </blockquote>
  
  <p>IMO you're approaching this from a very difficult direction, far more than necessary. Sending screenshots of your monitoring dashboard is presumably so you can check and see when things break. But that's what alerting is for.</p>
  
  <p>There are plenty of alerting tools, and if your monitoring db is a standard one then most of them will have hooks into it. The alerting software will run checks, and when the checks fail notify you by phone, slack, PagerDuty, whatever. This will be far easier to manage than a headless UI tool, will be something other future employees are more likely to have experience with, and most importantly, you won't get pager fatigue because it'll only be notifying you when things are <em>wrong</em>.</p>
  
Answers: CC BY-SA 4.0
Answers: 2018-12-18T17:22:21.487Z
Answers: Totally agree with you, It makes no sense to monitor without any alerting system.
  We have SMS alerts in place however for some dashboards this integration is not there. We will look forward to integrate them also.
Answers: dheerendra
Answers: CC BY-SA 4.0
Answers: 2018-12-18T06:56:28.473Z
Answers: 2018-12-18T06:56:28.473Z
Answers: Xiong Chiamiov
Body: <p>I am trying to automate the process of "sending the screenshots of a monitoring tool dashboard to my WhatsApp number" at regular intervals.</p>
  
  <p>So far I have achieved the following:</p>
  
  <ol>
  <li>Automated the screenshot taking using <a href="https://github.com/sindresorhus/pageres-cli" rel="nofollow noreferrer">pageres-cli</a></li>
  <li>Integrated the same with SMTP server using postfix</li>
  </ol>
  
  <p>Now I also want to send these screenshots to my Whatsapp group or Facebook messenger group. How can I achieve this?</p>
  
Comments: CC BY-SA 4.0
Comments: 2018-12-17T06:28:34.707Z
Comments: hi Dhiru! Is Whatsapp/Facebook a hard requirement? otherwise there is also Slack: https://api.slack.com/methods/files.upload
Comments: Ta Mu
Comments: CC BY-SA 4.0
Comments: 2018-12-17T14:24:27.287Z
Comments: There are not hard requirement. Acutually monitoring guys takes screenshot from his mobile and sends it to group at regular intervals.
Comments: dheerendra
Comments: CC BY-SA 4.0
Comments: 2018-12-17T14:31:54.900Z
Comments: Anything that i can access from mobile app should work. I will try slack and check if it works well with team. Are you already using this? Thank you for your time!
Comments: dheerendra
Comments: CC BY-SA 4.0
Comments: 2018-12-17T14:35:29.403Z
Comments: currently we have other scenarios, but in other contexts I have observed people posting events instead of scheduled dashboard screenshots. But, maybe sometimes it's good to just have current dashboard in case it behind VPN etc.
Comments: Ta Mu
Comments: CC BY-SA 4.0
Comments: 2018-12-17T16:10:18.443Z
Comments: Uploading to facebook/whatsapp? Do you not have security requirements behind the monitoring?
Comments: JohnP
Comments: CC BY-SA 4.0
Comments: 2018-12-18T17:31:47.763Z
Comments: Yes @JohnP, security requirements are there. I was looking for a way to send these screenshots to my mobile as i don't have access to office laptop all the time. I believe that it's secure to send these to Team's WhatsApp group because WhatsApp does end to end encryption.
Comments: dheerendra
Tags: <automation>
Title: Take automatic screenshots of a website and send it to WhatsApp or Facebook Messenger
UserDisplayName: dheerendra
ThreadText: # Take automatic screenshots of a website and send it to WhatsApp or Facebook Messenger
  
  (Asked by: username_0 on 2018-12-16)
  
  I am trying to automate the process of "sending the screenshots of a monitoring tool dashboard to my WhatsApp number" at regular intervals.
  
  So far I have achieved the following:
  
  1. Automated the screenshot taking using [pageres-cli](https://github.com/sindresorhus/pageres-cli)
  2. Integrated the same with SMTP server using postfix
  
  Now I also want to send these screenshots to my Whatsapp group or Facebook messenger group. How can I achieve this?
  
  **Tags:** automation
  
  > **Comments:**
  > **username_1**: hi Dhiru! Is Whatsapp/Facebook a hard requirement? otherwise there is also Slack: https://api.slack.com/methods/files.upload  
  > **username_0**: There are not hard requirement. Acutually monitoring guys takes screenshot from his mobile and sends it to group at regular intervals.  
  > **username_0**: Anything that i can access from mobile app should work. I will try slack and check if it works well with team. Are you already using this? Thank you for your time!  
  > **username_1**: currently we have other scenarios, but in other contexts I have observed people posting events instead of scheduled dashboard screenshots. But, maybe sometimes it's good to just have current dashboard in case it behind VPN etc.  
  > **username_2**: Uploading to facebook/whatsapp? Do you not have security requirements behind the monitoring?  
  > **username_0**: Yes @username_2, security requirements are there. I was looking for a way to send these screenshots to my mobile as i don't have access to office laptop all the time. I believe that it's secure to send these to Team's WhatsApp group because WhatsApp does end to end encryption.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-12-17. Score: 0 | Accepted answer
  
  In case the requirement for Whatsapp/Facebook is not mandatory, you could consider using a solution offering an API for such things and targeted specifically for IT teams.
  
  For example, Slack channels allow uploading files through Slack's API and sharing files in channels.
  
  Documentation: <https://api.slack.com/methods/files.upload>
  
  For a ready CLI stub, consider for example [slackcat](https://github.com/bcicen/slackcat).
  
  > **Comments:**
  > **username_0**: Hi Peter, I found this tool [slackcat](https://github.com/bcicen/slackcat). I tested this and it's working well with Linux CLI. I will soon incorporate this in my bash script. What do you say about this tool? Actually i am trying to automate this from CLI.  
  > **username_1**: have no experience with this tool, but this it's great if there is already a CLI stub for the API! Cool finding, shamelessly added this to the answer body. :-)  
  > **username_0**: [pageres-cli](https://github.com/sindresorhus/pageres-cli) + [slackcat](https://github.com/bcicen/slackcat)  did the job. Unfortunately my organisation's proxy is blocking the connection to slack. Anyway, that's a different thing, my original problem is solved now. Thanks for the help.  
  
  ---
  
  ### Answer by username_3 on 2018-12-18. Score: 0
  
  > I am trying to automate the process of "sending the screenshots of a monitoring tool dashboard to my WhatsApp number" at regular intervals.
  
  IMO you're approaching this from a very difficult direction, far more than necessary. Sending screenshots of your monitoring dashboard is presumably so you can check and see when things break. But that's what alerting is for.
  
  There are plenty of alerting tools, and if your monitoring db is a standard one then most of them will have hooks into it. The alerting software will run checks, and when the checks fail notify you by phone, slack, PagerDuty, whatever. This will be far easier to manage than a headless UI tool, will be something other future employees are more likely to have experience with, and most importantly, you won't get pager fatigue because it'll only be notifying you when things are *wrong*.
  
  > **Comments:**
  > **username_0**: Totally agree with you, It makes no sense to monitor without any alerting system. We have SMS alerts in place however for some dashboards this integration is not there. We will look forward to integrate them also.  
  
  ---
  
  