MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    Send Selfie to Flickr or Photobucket

    Requests
    4
    4
    2087
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • in_a_days
      in_a_days last edited by

      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!

      What ship would bear me ever back across so wide a Sea?

      1 Reply Last reply Reply Quote 0
      • A
        alexyak last edited by

        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

        morozgrafix Mykle1 2 Replies Last reply Reply Quote 1
        • morozgrafix
          morozgrafix Moderator @alexyak last edited by

          @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)

          1 Reply Last reply Reply Quote 1
          • Mykle1
            Mykle1 Project Sponsor Module Developer @alexyak last edited by

            @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. 👍🏻

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy