The AndyMOTE Server connects to the AndyMOTE App through a local network as shown in the diagram. The Server also connects to an LIRC subsystem which provides the infra-red signals that control the devices in your system.
An Infrared Remote Control Extender (eg: Neoteck IR Repeater) allows you to hide away your server in a cabinet or behind your media system and control your devices without direct line of sight.
You will need a Monitor, a Keyboard and cables capable of connecting these items to your Raspberry Pi
Once Raspian Lite is installed on your SD Card and before you move the card to your Raspberry Pi; mount the card on your PC. Create an empty file /boot/ssh (this enables SHH on the server) and make the following edits to file /boot/config.txt
For guidance on hdmi settings please visit here.
First, insert your pre-prepared SD Card into the Raspberry Pi.
Put the Raspberry Pi into it's case. I had an issue that the ENER314-IR Infra Red Controller interfered with the Pibow case so did not use two of the pieces.
Next, plug the Energenie ENER314-IR Infra Red Controller into the Raspberry Pi (see picture).
Then, connect the Raspberry Pi to keyboard (using USB connector) and monitor (using HDMI connector... Adapters may be necessary).
Finally, power up and wait for the unit to boot.
First, Open the wpa-supplicant configuration file using your favorite editor (eg nano).
Goto the end of the file and add your network (eg).
Replace YOUR_SSID, YOUR_KEY and YOUR_SSID_NAME as appropriate for your network.
Save the file, restart the WPA supplicant and reboot.
It's recommended that your server has a fixed IP Address.
You may be able to achieve this by configuring your DHCP server appropriately or, to set the wlan0 interface to a static address on the Raspberry Pi, edit the file /etc/dhcpcd.conf and include the lines .
Change 192.168.1.1 to the actual address of your router and 192.168.1.116 to the actual static address you require for your application.
* You may wish to run the raspi-config utility and make any configuration changes at this point.
Reboot when done.
Install LIRC using the command.
Edit the /etc/modules file; eg:
and add the lines:
Save the file and reboot.
Edit the /etc/lirc/hardware.conf file, eg:
and make it look like this:
Edit the /etc/lirc/lirc_options.conf file and modify lines as below:
Save the file and restart lircd.
Enter the following sequence of commands to stop the LIRC Daemon and test the receiver.
The mode2 program will output the mark-space ratio of an IR Signal to the console. Point a remote control at your IR receiver and press some buttons. You should see something like this:
when you are done press ctl-c and restart the LIRC Daemon using the following command.
LIRC uses configuration files that contain data relating to each remote control that can be emulated by LIRC. You must generate or otherwise provide these configuration files in order for the LIRC subsystem to work as desired.
Config files can be downloaded from here but beware that, if you use them, they must contain only one remote configuration. (Config files are simple text files and can be easily edited if necessary.
You can create your own config files, using the original remote control, quite simply using the following commands:
Replace FILENAME with some discriptive name for the remote control you are configuring. The latter command creates a 'raw' file and this is sometimes needed depending on the characteristics of remote control you are using. The -n switch allows you to you to use any keyname you like (rather than be limited to the LIRC Namespace list).
Remember to restart lircd and reboot when you are done.
Install Libraries liblirc and libboost as described below:
Next, install git, goto your home directory & clone the andymoteserver repository
then compile the source
Move the resulting file to a convenient location; eg:
Finally, to run AndyMOTE Server as a service, create the file /lib/systemd/system/andymote.service with content as shown below:
Enable and start the service