I got excited when I learned that Chromecast devices (Generation 2 and above of video) will offer multi-room audio support. I already owned Chromecast Audio devices for a few years now, and enabled multi-room audio on those already. However, I have a Gen. 2 Chromecast on my patio which I wanted to pair with the Chromecast Audio device that connects to a receiver that feeds audio output to speakers already in that area. I thought it was going to be a fantastic option to stream from YouTube Music into My TV that is then simulcasted to my Chromecast Audio.
I tried yesterday, and found out that there is no video streaming available on my Gen. 2 Chromecast. Just Audio. Bummer!
So, at least for now, Multi-Room Audio will be for just that, just audio. Would have been great to see Video also streamed in simultaneous with Chromecast Audio.
Recently I learned about the change of terms for Flickr, where I save all my CCTV snapshot images coming from my Amcrest 960H HVR. They are triggered when there is movement detected. Granted, not that effective by default, but at least provides me with indications or patterns of something abnormal happening, which can then allow me to search the video recordings (I shall run them against media analytics services at some point).
Point is that I needed to find out an alternative for hosting my images, and no better option than Google Drive. The system already sends out images via email, and I had to figure out how to land them into Google Drive. Luckily I found out this post from Andreas Gohr, where he provides a script that takes Gmail attachments and saves them into Google Drive.
On a high level, the solution relies on two processes:
Rule within Gmail that treats the incoming email
Script that runs asynchronously, finds emails and copies the attachment to Google Drive.
I took the original code, and modified to suite my needs:
Extract the DVR snapshot attachment image.
Make a copy into a Google Drive sub-folder, using a sub-string. Used the camera number as folder name.
Create subfolder names based on year, month and date provided by the filename (sample: 03_20181202010558.jpg). The folder name will be re-used if it already exists.
Delete the email (as I no longer needed once copied).
My Gmail rule differs a bit from the original poster:
Mute the Conversation (it does not appear in the inbox)
Feel free to create your own copy and modify to suite your needs. Just make sure to follow the instructions including the authorization step. This is important as the scripts requires access to Gmail. Google will be sending out an email with “possible risk” to the account, but you can instruct through console that you are OK with the script.
Script
Gmail Rule
Email
Google Drive
Google Drive
Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.