evilmarty / mjpeg-timelapse

Mjpeg Timelapse integration for Home Assistant
MIT License
24 stars 4 forks source link

add possibility for webcam with username and password #3

Closed snoopy0815 closed 2 years ago

snoopy0815 commented 2 years ago

finally I've got it running - after finding the error on my side - I've forgotten that my camera requests username and password... after switching this off for testing - it works like a charm :)

therefor this feature-request: would it be possible to either enhance this wonderful extension to handle cameras with username and passwords or except as input just the camera entity, which is already present within the configuration.yaml ?

e.g. I have multiple motioneye streams already present like this - would be perfect if this timelaps extension could be feed with the name "Terrasse"

  - platform: mjpeg
    name: Terrasse
    mjpeg_url: http://192.168.178.44:8081
    username: xxxx
    password: yyyy
    authentication: digest

I would be more than happy to test or support in any way - unfortunately me skills are not sufficient to suggest a pull-request right away :( (I could even not find out, where the timelapse pictures are stored - maybe this could be as well a helpful info for unexperienced user in order to delete maybe later on some of them - or start debugging)

cheers! and thanks once again!

evilmarty commented 2 years ago

I could even not find out, where the timelapse pictures are stored

They are stored in your HA config directory in a folder called camera.

Trebacz commented 2 years ago

My cameras (Reolink) allow passing user name and password in the query string. I set up view only guest camera accounts and access through https... This works more my setup. Thought it may help you.

Electronlibre2012 commented 2 years ago

hello @evilmarty

thanks a lot for your work, nice feature.

I search for minutes where the pictures are stored...found them, but i dont understand where the mpeg video is? sorry if its a nooby question but dont found any info about this, anywhere...

Where can i changed the "camera" folder ?, i would like to create in /media folder and then i can reach "camera" folder from the media browser.

Thanks

evilmarty commented 2 years ago

@Electronlibre2012 you're welcome.

but i dont understand where the mpeg video is? There are no videos being generated. It's using MJPEG, not MPEG. They are different formats.

i would like to create in /media folder and then i can reach "camera" If you'd like the camera folder in the /media folder you can just create a symlink.

Electronlibre2012 commented 2 years ago

Thanks for your fast reply!

Sorry i have made a mistake about MJPEG and MPEG lol...but you explain in the doc :

framerate

(integer)(Optional)The playback framerate of the timelapse. Default is 2.

How to launch the playback of the time lapse please?

Symlink its a work around...the files still stay in the /config/camera folder...i'd like to have all my media files at the same place.

I create a symlink to my 2nd disk but i have no right to access it from windows (this 2nd SSD is mount with Samba Nas addOn). Dont know how to apply rights in this case.