Send Selfie to Flickr or Photobucket



  • I think this module is fun:

    https://github.com/alexyak/camera

    But e-mailing the selfie image seems kind of clunky. I think it would be great if the “Selfie” image can be automatically (or optionally) uploaded to my account on an online image hosting service.

    I can handle a lot of the simple changes to the code. I’m comfortable modifying the socketNotificaiton send and receives, and I think I know what I need to carve out of the original module. But I do not know how to write the script that will communicate with the image hosting servers. Any help will be greatly appreciated!


  • Module Developer

    You will need to communicate via the API’s that these services provide. For example flickr has this:

    https://www.flickr.com/services/api/upload.api.html


  • Moderator

    @alexyak this flickr-upload npm package https://www.npmjs.com/package/flickr-upload can be utilized for that functionality. (Heh, I just realized it was written by a friend of mine)


  • Module Developer

    @alexyak @morozgrafix

    Hi,

    I have camera installed (and dependencies) working on my MM. The only problem I have is that it doesn’t email the picture. I’m sure I’ve made a mistake somewhere. I was hoping you might help me.

    {
    			module: 'camera',
        			position: 'top_right',
        			config: {
    			selfieInterval: 3,  // Time interval in seconds before the photo will be taken.
            		emailConfig: {
                		service: 'iCloud', // Email provider to use to send email with a photo.
                		auth: {
                    	user: 'xxxxxxxx@icloud.com', // Your email account
                    	pass: 'xxxxxxxxxx'        // Your password for email account
                	}
            	}
    		}
    		},
    

    Does it use the same email account to send To: and From: ? If not, how/where do I tell the module the address to send the picture to? Also, can I change the size of the picture being taken from 640x480 to 320x240?

    Many thanks ahead of time. :thumbsup_tone1:


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.