Introduction: Datarhei/Restreamer - Changing Port, Username, Password and Snapshot Interval

About: Datarhei/Restreamer offers smart free video streaming in real time. Stream H264 video of IP cameras live to your website with our open source software for free

    This Instrucables shows how to change some Environment variables in your Datarhei/Restreamer.

    1. change default port for UI
    2. change default username and password
    3. change default snapshot interval

    It is always the same routine if you want to change the variables.

    1. Stop running Docker image
    2. Change variables
    3. Start Datarhei/Restreamer again with the new environments

    Kitematic users take a look here in our Environment Guide for Kitematic (Docker Toolbox) with some examples.

    Ok - Let´s rock!
    (Sven)

    -------

    Want to talk to us? Email to open@datarhei.org. You could choose a nickname speak to us in IRC: irc.freenode.net/#datarhei or (Webchat). You could ask a question in our Forum, too. If you're having a problem while developing, see Known Issues. If you want just keep in touch follow us on Twitter: https://twitter.com/datarhei

    Step 1: Change Port of the Restreamer User Interface

    If you want to change the port 8080 to another port to open the web user interface of your Datarhei/Restreamer.

    You have to change the start command. Detect

    8080:8080 and change to 1337:8080 

    In the Example the port for the Restreamer UI is changed to 1337.

    1. Login your Raspberry Pi with SSH connection

    For HypriotOS users Username: # root Password: # hypriot

    2. Show the running Docker images with the command:

    # docker ps

    3. Stop the running Datarhei/Restreamer with the name of the running image (it should be "restreamer").

    # docker stop restreamer && docker rm restreamer

    4. Starting the Datarhei/Restreamer (Raspberry Pi 1 ARMv6) with port 1337

    ARMv6l Raspberry Pi 1 use:
    # docker run -d --name restreamer --restart always -e "RESTREAMER_USERNAME=YOUR-USERNAME" -e "RESTREAMER_PASSWORD=YOUR-PASSWORD" -p 1337:8080 -v /mnt/restreamer/db:/restreamer/db datarhei/restreamer-armv6l:latest
    
    ARMv7l Raspberry Pi 2 use:
    # docker run -d --name restreamer --restart always -e "RESTREAMER_USERNAME=YOUR-USERNAME" -e "RESTREAMER_PASSWORD=YOUR-PASSWORD" -p 1337:8080 -v /mnt/restreamer/db:/restreame/db datarhei/restreamer-armv7l:latest

    5. Browse to http://your-device-ip:1337 to see if the changes were stored.

    Step 2: Change the Snapshot Interval

    A snapshot is captured every 60 seconds default time. You can modify this by starting your Docker image with an additional command. The 60 seconds is 60000 in msec.

    If you want to create a snapshot every 10 seconds you have to enter 10000. Add the following to your start command:

    "SNAPSHOT_REFRESH_INTERVAL=10000"

    1. Login your Raspberry Pi with SSH connection

    For HypriotOS users Username: # root Password: # hypriot

    2. Show the running Docker images with the command:

    # docker ps

    3. Stop the running Datarhei/Restreamer with the name of the running image (it should be "restreamer").

    # docker stop restreamer && docker rm restreamer

    4. Start the Datarhei/Restreamer with the new command with 10000 ms (10 Sec) Snapshot interval:

    ARMv6l Rasbperry Pi2 use:
    # docker run -d --name restreamer --restart always -e "RESTREAMER_USERNAME=YOUR-USERNAME" -e "RESTREAMER_PASSWORD=YOUR-PASSWORD" -e "SNAPSHOT_REFRESH_INTERVAL=10000" -p 8080:8080 -v /mnt/restreamer/db:/restreamer/db datarhei/restreamer-armv6l:latest ARMv7l Raspberry Pi2 use:
    # docker run -d --name restreamer --restart always -e "RESTREAMER_USERNAME=YOUR-USERNAME" -e "RESTREAMER_PASSWORD=YOUR-PASSWORD" -e "SNAPSHOT_REFRESEH_INTERVAL=10000" -P 8080:8080 -V /mnt/restreamer/db:/restreamer/db datarhei/restreamer-armv7l:latest

    5. The Snapshot will be updated every 10 seconds. We recommend 60 Seconds default time.

    Step 3: Change Username and Password

    We recommend to change the default username and password.

    To change the default login data please change the start command of your Datarhei/Restreamer.

    Change the two attibutes RESTREAMER_USERNAME and RESTREAMER_PASSWORD.

    Default start environment:

    "RESTREAMER_USERNAME=RESTREAMER_USERNAME"<br>"RESTREAMER_PASSWORD=RESTREAMER_PASSWORD" 

    In this example it is changed to username: scotty and password enterprise.

    "RESTREAMER_USERNAME=scotty"<br>"RESTREAMER_PASSWORD=enterprise"

    1. Login your Raspberry Pi with SSH connection

    For HypriotOS users Username: # root Password: # hypriot

    2. Show the running Docker images with the command:

    # docker ps

    3. Stop the running Datarhei/Restreamer with the name of the running image (it should be "restreamer").

    # docker stop restreamer && docker rm restreamer

    4. Start the Datarhei/Restreamer with the new command with the username: scotty and the password: enterprise

    ARMv6l Raspberry Pi1 use:<br># docker run -d --name restreamer --restart always -e "RESTREAMER_USERNAME=scotty" -e "RESTREAMER_PASSWORD=enterprise" -p 8080:8080 -v /mnt/restreamer/db:/restreamer/db datarhei/restreamer-armv6l:latest
    
    ARMv7l Rasbperry Pi2 use:<br># docker run -d --name restreamer --restart always -e "RESTREAMER_USERNAME=scotty" -e "RESTREAMER_PASSWORD=enterprise" -p 8080:8080 -v /mnt/restreamer/db:/restreamer/db datarhei/restreamer-armv7l:latest
    

    5. Browse to http://your-device-ip:8080 and login with your new User:Password credentials.