Moodifier Daemon
A lighting control and home security and surveillance server for Raspberry Pi, Linux & Mac OS X

Moodifier Daemon is a powerful lighting control server developed by Barsark.

Moodifier Daemon lets you schedule, automate and control your entire Moodifier, Philips hue and other hue compatible ZigBee LED lights from any web browser on any device.

It basically gives you all the lighting control and IP-alarm features of the Moodifier desktop application for Mac and Windows, on a Raspberry Pi, without the need of having a Mac or Windows computer running 24/7.

Main feautures
• Moodifier lighting control.
• Philips hue lighting control.
• ZigBee lighting control, via hue bridge.
• Unlimited number of light scenes.
• Organisation of light scenes in zones.
• Timed light scene playlists through light scenarios.
• Full light scheduling by time of day, day of week, weekends, weekdays, sunrise and sunset.
• Full configuration of Moodifier wall switches.
• Full Moodifier status reporting.
• IP-alarm functionality with intrusion alert, email (& sms) notifications, IP-camera image capture, monitoring and video recording.
• HTTPS encrypted access security.
• Import and export of light settings

Download the Moodifier Daemon Documentation.


If you have comments, feature requests or questions?
- Contact us!

Raspberry Pi installation instructions
How to Install Moodifier Daemon on your Raspberry Pi 2 or 3

1) Download the zipped InstallMoodifierDaemonRPi.sh.zip shell script to your home folder on the Raspberry Pi with Terminal using the following command (all on one line):
curl -o ~/InstallMoodifierDaemonRPi.sh.zip https://www.barsark.com/InstallMoodifierDaemonRPi.sh.zip

2) Unzip it with Terminal using the following command:
unzip -o ~/InstallMoodifierDaemonRPi.sh.zip -d ~/

3) Run the InstallMoodifierDaemonRPi.sh shell script in Terminal on your Pi using the following command:
~/InstallMoodifierDaemonRPi.sh

-Follow the instructions and MoodifierDaemon should then be running on port 80 on your Pi.

4) Use a web browser to access the Moodifier Daemon on your Pi, browse to the ip address of your Pi or visit http://home.moodifier.net and you should be automatically redirected to your Pi.

5) Once MoodifierDaemon is running on your Pi you can easily enable secure and encrypted HTTPS access on port 433 with a self signed cert by simply clicking a button in the admin web interface of the application.

For further info and installation options please read the documentation in the InstallMoodifierDaemonRPi.sh shell script.

Linux installation instructions
How to Install Moodifier Daemon !-BETA-! on your Linux box with terminal

Compatible 64 bit Linux flavours
• Ubuntu 12.04 or later - verified on Ubuntu 16.04.3.
• Debian 6.0 or later - verified on Debian 9.2.1.
• CentOS 7.0 or later - not verified.
• Linux Mint 16 or later - not verified.
• OpenSUSE 11.3 or later - not verified.
• Fedora 13 or later - not verified.

1 Ubuntu) In terminal, become root with the following command
sudo -i
1.1 Ubuntu) Install curl with the following command
apt-get install curl

1 Debian) In terminal, become root with the following command
su
1.1 Debian) In terminal, move to root home
cd /root/

2) Install curl with the following command
apt-get install curl

3) Download the zipped InstallMoodifierDaemonLinux.sh.zip shell script with Terminal using the following command (all on one line):
curl -o ~/InstallMoodifierDaemonLinux.sh.zip https://www.barsark.com/InstallMoodifierDaemonLinux.sh.zip

4) Unzip it with Terminal using the following command:
unzip -o ~/InstallMoodifierDaemonLinux.sh.zip -d ~/

5) Run the InstallMoodifierDaemonLinux.sh shell script in Terminal on your Pi using the following command:
~/InstallMoodifierDaemonLinux.sh

-Follow the instructions, you will be prompted to confirm installation steps with a 'Y' and enter key.
MoodifierDaemon should then be running on port 80 on your Linux box.

6) Use a web browser to access the Moodifier Daemon on your Linux box, browse to the ip address of your Linux box or visit http://home.moodifier.net and you should be automatically redirected to your Linux box.

7) Once MoodifierDaemon is running on your Linux box you can easily enable secure and encrypted HTTPS access on port 433 with a self signed cert by simply clicking a button in the admin web interface of the application.

For further info and installation options please read the documentation in the InstallMoodifierDaemonLinux.sh shell script.

Mac OS X installation instructions
How to Install Moodifier Daemon on your Mac

1) Download the Moodifier Daemon application for Mac OS X.

2) Move the MoodifierDaemon folder to where you would like to run it from.
The MoodifierDaemon application and supporting files are located in the MoodifierDaemon folder.

3) Open Terminal and execute the MoodifierDaemon application to run on port 8080 like this:
/path/to/your/MoodifierDaemonFolder/MoodifierDaemon --Port=8080

4) MoodifierDaemon should now be running on port 8080 on your Mac.
Use a web browser to access the Moodifier Daemon on your Mac, browse to port 8080 on the ip address of your Mac (for example "http://127.0.0.1:8080/") or visit http://home.moodifier.net and you should be auto redirected to your Mac.

5) Once MoodifierDaemon is running on your Mac you can enable HTTPS by generating a self signed cert from the web interface of the application. Once you have generated the self signed cert you can activate HTTPS on port 8433 in Terminal like this:
/path/to/your/MoodifierDaemonFolder/MoodifierDaemon --Port=8080 --SecurePort=8433 --certificate=/full/path/to/your/MoodifierDaemon.crt

Running Moodifier Daemon on ports below 1024 requires root privileges.

If you like to run the MoodifierDaemon on port 80 or 433 you need to start it from terminal as root like this:
sudo /path/to/your/MoodifierDaemonFolder/MoodifierDaemon --Port=80 --SecurePort=433 --certificate=/full/path/to/your/MoodifierDaemon.crt