Dianemo S
Dianemo S is a software product that shares a common heritage with LinuxMCE, which enables you to have a Dianemo installation on almost any LinuxMCE compatible Core hardware that you already own. This is a full implementation of Dianemo but assumes that you are the 'Installer' and the software only product is supported by the CHT Tech Support team only via the LinuxMCE forum to keep its cost to a minimum. We cannot guarantee that all hardware will work with Dianemo S so there will be some restrictions as to which hardware you can install it on. One key restriction is that both for Hybrid NerveCentre's (Intel GPU's may work in UI1 only) and Media Managers we will only be supporting nVidia GPU's. Each installation will have a Dianemo installation ID and will be upgradable to future releases using a disc-less online update/upgrade procedure. You will receive 12 month's of support included in your initial purchase cost and there will be an annual charge to continue to receive Tech support for subsequent years. Updates will be released as and when we develop them and will be available at the same time as they are made available to our hardware products and OS upgrades will follow shortly after Ubuntu OS releases and dates. Any customer who does not sign-up for paid for support after the initial 12 months will not loose access to their system they will just not receive any direct support from our support team - however forum support will continue to be available to anyone. You can choose to liven up support later if you subsequently feel the need for it.
Dianemo S is currently built for Ubuntu 10.10 and Ubuntu 11.10 and will be available for Ubuntu 12.04 shortly after its release - ALL Dianemo S systems can be upgraded without a re-install (ie they will upgrade like any other Ubuntu installation) see the procedure below for upgrading from one Ubuntu release to another. If you choose to use Ubuntu 11.10 please be aware that there still may be some 'wrinkles' in our upgrade procedure. So please take that into consideration when choosing whether to install on Ubuntu 11.10 or if planning to upgrade your existing Ubuntu 10.10 installation.
See the Dianemo Forum Thread for more information about pricing and the procedure for purchasing a support license.
Contents
- 1 Installing Dianemo S
- 2 Hardware Compatibility
- 3 Installing from scratch
- 4 Upgrading an Existing Ubuntu 10.10 System to 11.10
- 5 Using the AVwizard 2.0 to Configure Video/Audio for your TV
- 6 Updating Dianemo
- 7 Dianemo Permanent License Key
- 8 Notes
- 8.1 Turning On Remote Assistance
- 8.2 Accessing Web Admin
- 8.3 Backing up your Dianemo Database
- 8.4 Xorg custom setup
- 8.5 Detecting Shares when adding a NAS
- 8.6 Configuring Media Config
- 8.7 Adding SqueezeSlave Devices
- 8.8 Creating DCEWhisperer Device Templates
- 8.9 Configuring HDMI Audio for nVidia Video Cards with on-board Sound cards
- 8.10 Using a multi-channel sound card as multiple Virtual Stereo cards
- 8.11 DPMS control of computer monitors
- 8.12 Show/Hide The Mouse or Cross Hair Cursor
- 8.13 UPnP Media Servers & Media Playback
- 8.14 Choosing which DVD Ripper to use
- 8.15 Adding iOS Orbiters to your System
- 8.16 Adding a UPnP Device Manually
- 8.17 Adding remote Controls
- 8.18 Using theMovieDB service
- 8.19 ZWave Devices
- 8.20 Installing and using Dianemo's Camera Features
Installing Dianemo S
Hardware Compatibility
Basically if the Ubuntu LiveCD is happy with your hardware then you should be all set in overall terms - do that test first. Alternatively if you already have some hardware that is performing well with LinuxMCE then that is very likely to be suitable for Dianemo too
More specifically we have tested and use the Asus PF7-M WS Server Class MicroATX motherboard and if this suits you requirements then it will work very nicely as an NC or 'Full Size' MM motherboard. Pretty much any of the current crop of Atom/iON motherboards or pre-built units should work well as MM's or as small NC's too. We particularly like the Asus AT510NT-I Atom/ION Mini-ITX motherboard as a good choice for MM's as its fanless and has a good low-profile heat-sink design.
Installing from scratch
Below are the simple steps needed to install Dianemo S from scratch on your existing LinuxMCE compatible hardware;
- Install 32bit Desktop edition of Ubuntu 10.10 or Ubuntu 11.10 from a LiveCD
- After installing Ubuntu 10.10 you will be prompted to upgrade to 11.04
- Say NO if you intend to stick with Ubuntu 10.10 (**Dianemo is not supported on Ubuntu 11.04**).
- If you installed 11.10 then you should be all set for the Dianemo S installation below.
- After installing Ubuntu 10.10 you will be prompted to upgrade to 11.04
- At this point you should have the dianemo-licence and dianemo-installer debs somewhere on your systems drive (via e-mail from CHT).
- Install the dianemo-temporary-licence deb first
sudo dpkg -i <dianemo-license.deb>
- Install the dianemo-installer deb second
sudo dpkg -i <dianemo-installer.deb>
- Execute in a terminal:
/usr/pluto/install/install-dianemo.sh
Lastly please run the Diskless Setup script on your NC;
sudo /usr/pluto/bin/Diskless_Setup.sh
Please note that Diskless Setup will take a considerable amount of time... please be patient!!
Upgrading an Existing Ubuntu 10.10 System to 11.10
Before any upgrade process we would recommend that you backup your Dianemo S installation - see the section below called 'Backing up your Dianemo Database'.
Unfortunately you cannot upgrade directly from Ubuntu 10.10 to 11.10. You must first upgrade to Ubuntu 11.04 and then upgrade from 11.04 to Ubuntu 11.10. This is because of the way the Ubuntu upgrade process works. Just follow the steps below to start the upgrade procedure;
- Firstly you need to remove your existing diskless directories - these will get automatically re-created from scratch later when you run the dianemo-installer under Ubuntu 11.10. So do the following at a console prompt;
sudo rm -rf /usr/pluto/diskless
- Next from the console upgrade your 10.10 system to 11.04;
sudo do-release-upgrade
- When the upgrade to Ubuntu 11.04 has finished you a ready immediately to start the upgrade to Ubuntu 11.10. Simple do the following again at the the console prompt;
sudo do-release-upgrade
- Once the upgrade to Ubuntu 11.10 has completed do the following at a console prompt;
/usr/pluto/install/install-dianemo.sh
You will be prompted for your user password for sudo above, to become root ie the user/password you created in the Ubuntu installer. Go make yourself a cup of tea or coffee, bake a few biscuits, that kind of thing!... while the installer does its thing.
The installer will download the debs (including updating itself if it needs to be updated) and install them for you without asking any questions. After the system is installed, it will run Diskless_CreateTBZ.sh as well.
Lastly please run the Diskless Setup script on your NC;
sudo /usr/pluto/bin/Diskless_Setup.sh
This will reinstate all of your MM's.
Please note that Diskless Setup will take a considerable amount of time... please be patient!!
Lastly reboot your system and Dianemo will start.
You Dianemo S installation will now be running on Ubuntu 11.10
Using the AVwizard 2.0 to Configure Video/Audio for your TV
AVwizard 2.0 - The AVwizard automatically detects what connector (HDMI/DVD/VGA) your display/TV is connected to and will automatically configure the highest resolution suitable for the displays reported EDID capabilities & aspect ratio. The AVwizard now uses the native uBuntu X detection first and if it succeeds it will use that otherwise it will test the previously used custom mode lines. You can still override its choice of screen resolution setup if required and the rest of the process is as before. However this version should avoid situations where some users cannot get a display to start X and therefore do not get video at all.
The AVwizard will automatically be run when you start-up your NC for the first time or add a new MM and boot it for the first time. You can re-run the AVwizard at any time to change the configuration of your TV display & audio outputs for your NC or MM's. From the RedLine UI Home screen select;
Control -> System -> Enter your system PIN (defaults to '1234') and then select/press the Circular button. Now Select/Press the 'Video Res & Audio Button'
The NC or MM will now reboot and run the AVwizard automatically.
Updating Dianemo
On your NerveCentre run the Updater script below to update your system with the latest packages & fixes;
sudo /usr/pluto/install/dianemo-software-update.sh
Periodically we will announce that you need to run this script - but you free to run it at anytime to make sure your NerveCentre is up to date.
To Update your Media Managers
Please run the Diskless Setup script on your NC;
sudo /usr/pluto/bin/Diskless_Setup.sh
This will update all of your MM's and also retain any existing software changes you have made to any of them.
Please note that Diskless Setup will take a considerable amount of time... please be patient!!
Dianemo Permanent License Key
Within 14 days of your Dianemo S10.10 installation contacting our servers you will receive another deb called 'Dianemo-license-nnnnnn' this should be copied to your NerveCentre and installed. This deb installs a securely signed file that completes your installation.
Notes
The following are some notes on configuring your system.
Turning On Remote Assistance
Please do the following;
From a web browser on the the NC or on a PC on the LAN side of your NC please enter the URL below;
http://192.168.80.1/dianemo-admin/index.php
On the Web page displayed after entering the URL above please got to the Remote Access menu in the blue menu bar and select the 'Tech Support' menu item. On the page that is displayed make sure that the 'Remote Assistance' indicator says 'Enabled'. If it does then please click on the 'Disable' button and then 'Enable' it again - ie toggle it off/on. The 'Remote Assistance' indicator should now say 'Enabled'.
Accessing Web Admin
To access Web Admin please use the following url from your Web browser on the NC itself or another PC on the LAN side of your NC;
http://192.168.80.1/pluto-admin/index.php
Backing up your Dianemo Database
We recommend that you regularly take a backup of your Dianemo systems database so that you can always restore your systems configuration should you need too. Please note that these backups are only of your systems database - none of your media or other data is backed up. To make a backup do the following;
- Open your NerveCentre's Web Admin page (see above)
- From the green menubar select - Advanced -> Configuration -> Backups
- On the Backups page enter some descriptive text or notes on the backup and then click the 'Backup' button. After 60 secs or so a backup file will be added to the page beneath the 'Backup' button.
Download Backups
Backups can be downloaded by clicking on the 'download' link next to each listed backup entry and stored safely on another system.
Restore Backups
Backups can be restored by using the 'Choose file' button in the 'Restore' section of the Backups page. This enables you to restore a backup that you had previously downloaded to your laptop or PC.
Backup files are actually stored in;
/home/backup/download
Xorg custom setup
Installing a different Nvidia driver
If you have an older nVidia card that isn't supported by the driver provided by nvidia-current, you normally shouldn't need to download anything from Nvidia. Ubuntu provides packages for older drivers too.
If you require the 173 series, as for the Quadro FX 2000, this is what you need to do to activate Ubuntu's 173 driver:
Inside a terminal, do this:
apt-get install nvidia-173 update-alternatives --config gl_conf # select the 173 library at the prompt ldconfig reboot
This will install the 173 series nvidia driver and activate it. Nothing else needs to change.
Custom xorg.conf
If you need Dianemo to keep your xorg.conf exactly the way you left it, add this line anywhere in it:
# CustomUserConfig=1
That's: Single hash character as the first character on the line, followed by space, followed by the string "CustomUserConfig=1". Any variations on this (like putting two hash signs, or omitting the space) will not work.
When this is present, Xconfigure.sh will not touch xorg.conf at all. That also means AVWizard won't work properly either, and any mismatch between your xorg.conf and the database will have to be handled manually.
The shares detection problem is due to the Configure_1837.sh script not getting called correctly by some other scripts. We're working on a fix for that. In the meantime if your server has been detected and added but the shares have failed to get detected automatically then run this script from the console and your shares will be detected. Firstly use Web Admin's device tree to find out the Device ID for the newly added NAS and note it down. Now from the console run the following scripts to detect the shares;
sudo /usr/pluto/bin/Configure_1837.sh -d <device_ID>
Next run the the script below to create the file structure;
sudo /usr/pluto/bin/StorageDevices_Setup.sh
Make sure you have an Orbiter displayed so that you can respond to the standard setup questions for your shares... ie 'use pluto file structure' etc etc. Once this script has run your good to go.
Configuring Media Config
In Dianemo 10.10 we use the media_config.conf file to define how media should be routed/controlled. Essentially media_config.conf replaces the pipes editor. The file should be created in /etc/pluto as below if not already there;
/etc/pluto/media_config.conf
This file is line based, and each line follows the following format:
Room=RoomID: AudioDev=AudioDeviceID; VideoDev=VideoDeviceID; KeepScreenOnForOSD=yes/no
Each parameter means the following:
- RoomID - This is a number coming from the "Rooms" page in pluto-admin. You can easily get the RoomID number by reading the "Delete Room" link corresponding to each room. Don't click it though. Only read the number at the end of the text "Delete Room #RoomID";
- AudioDeviceID - this is the number of the device that will receive the sound commands (Volume Up, Volume Down, Mute, On ,Off for audio streams) in the room specified by "Room=RoomID";
- VideoDeviceID - this is the number of the device that will receive the video commands (On, Off for video strams) in the room specified by "Room=RoomID";
- KeepScreenOnForOSD - this is the equivalent of LinuxMCE's Orbiter DeviceData "Keep Screen On For OSD", but it's a more generic option that allows you to have rooms without Media Manangers that still have amps and TVs controlled. Setting this option to "yes" will keep the TV and amplifier on after media stops. Setting this option to "no" will cause the TV and amplifier to be sent to sleep as soon as media playback ends.
Here's an example from our office demo system:
Room=3: AudioDev=59; VideoDev=60; KeepScreenOnForOSD=yes Room=4: AudioDev=37; VideoDev=; KeepScreenOnForOSD=yes
Room #3 is the Lounge, Room #4 is the Kitchen. In each of these rooms we have a Media Manager. The Nerve Centre is not used for media playback, and it lives in a rack, thus it doesn't appear in this file.
In the Lounge we have a Denon Amplifier and a LG TV. The Denon has device number 59, the LG TV has device number 60, and we assign these numbers to AudioDev= and VideoDev= respectively. And we want the TV to stay on after media playback ends.
In the Kitchen we don't have any A/V equipment to control but the on-board sound card. The AppServer has a facility to respond to volume commands and it manipulates ALSA's mixers on receipt of these commands. The AppServer device in the Kitchen has device number 37, thus we assign it to AudioDev=. There's no video device to control, thus VideoDev= is left empty. And we also want this screen to remain on after media playback finishes.
After editing your media_config.conf file save the changes. There is no need to reload the router for your changes to take effect.
Adding SqueezeSlave Devices
Follow the steps below steps to add Squeezeslave Audio streaming devices to your Dianemo system;
- Click 'Show Devices Tree' in Web Admin
- Select the Core & then use the 'Add Child Device' option at the top of the screen on the right.
- In the 'Add Child Device' screen click 'Pick Device Template' button
- Now enter Device ID 1964 and click 'OK'
- 'Squeezebox Slave' & '1964' will be visible next to the 'Pick Device Template' button - click it to select this template
- You will now see your new Squeezeslave device template screen;
- Add a meaningful Device Description to uniquely identify which Squeezeslave this is (a reference to the Room Or zone is a good idea)
- Set the Room & Entertainment Area
- In the Device Info section set the (**ie the top most section of the template**);
- Set the Mac Address. This should be in the form of; 00:00:00:00:00:01 and unique on the system
- In the Device Data section set the;
- Sound card this Squeezeslave will use
Next you need to create a Squeezebox Player to be associated with the SqueezeSlave you created above;
- Click 'Show Devices Tree' in Web Admin
- If there is already a 'Slimserver Streamer' section under the 'Core' then;
- Add a child device under the 'Slimserver Streamer'
- In the 'Add Child Device' screen click 'Pick Device Template' button
- Now enter Device ID 58 and click 'OK'
- A new Squeezebox Player will be added under the 'Slimserver-Streamer'
- Give it a matching name to the Squeezeslave you are associating it with and locate in in the same Room/EA & enter the same Mac Address too.
- Save the changes
- Now do a reload
- Next you should start the Squeezeslaves manually (on boot they will be started automatically);
sudo /usr/pluto/bin/Start_SqueezeBox_Slaves.sh
- Test your new devices to make sure they work correctly
Creating DCEWhisperer Device Templates
Configuring HDMI Audio for nVidia Video Cards with on-board Sound cards
The AVWizard, when setting up sound, will first ask you to select the sound card you want to use. There may be one entry, or there may be more.
The list contains the output of the /usr/pluto/bin/ListSoundCards.sh script, and it looks like this:
pci0000:00/0000:00:1b.0 pci0000:00/0000:00:1c.0/0000:01:00.1
In particular, Nvidia ION machines, and machines with Nvidia pre-GT video cards will only have one card that also does HDMI sound, while ION2 and machines with Nvidia GT cards will display two cards - one will be the onboard card, which doesn't do HDMI sone, and the other will be a second sound card embedded on the video card, which only does HDMI sound.
As a rule of thumb, the longer entry is the one you want if you want to configure sound over HDMI, and the shorter entry for Stereo or S/PDIF.
Particularities
Shuttle XS35 and similar
On the Shuttle XS35, when you run the AVWizard and select HDMI sound you won't hear anything. That's because it exposes several HDMI sound devices, and the AVWizard can't handle that situation yet, and it always uses the first one.
To make these machines output sound, create the /root/.asoundrc file with the following content:
pcm.!hdmi_playback { type plug slave { @func concat strings [ "convert:RATE=48000,CARD=hdmi:1,1" ] } }
This will override the hdmi_playback setting that is in /etc/asound.conf and get sound working. There's no need for modprobe options trickery. If you add this file after the system is up, all you have to do is reload the router - this will reload Xine Player, which is the device that is affected by the sound settings. No need to reboot.
Do a reload from the console with the following;
/usr/pluto/bin/MessageSend dcerouter 0 -1000 7 1
Using a multi-channel sound card as multiple Virtual Stereo cards
Example: ESI Gigaport HD
- Add a device of template "Multichannel sound card" (Dianemo Device Template #1993) under the machine to which the sound card is attached.
- Select the physical card that will be partitioned into virtual cards from the drop down.
- Set the number of channels the sound card supports.
- Under this device, add as many "Stereo virtual sound card" (Dianemo Device Template #1994) as are needed - for a 8 channel card you should have 4 child devices of this type.
- For each virtual card set the "Channel Left" and "Channel Right" device data to the physical channel on the card that will be used to output the left and right channel of the virtual card. Numbering start at 0 - for a 8 channel card, the channel number pairs would be 0,1; 2,3; 4,5; 6,7.
- Execute /usr/pluto/bin/SetupAudioVideo.sh - this will setup ALSA to show the virtual cards.
- Execute /usr/pluto/bin/UpdateAvailableSoundCards.sh - this will add the virtual cards to the "Sound Card" device data drop-down. Virtual cards are named "Virtual_NN", where NN is the device number of the virtual card in the device tree.
- You can now set up Squeezebox Slave devices using these virtual sound cards following the Squeezebox Slave instructions on this page.
- Now you can use a virtual card as the main card of an MM (ie the virtual cards will be selectable) ie Sound card that supports 7.1 audio could be used to deliver 1 Virtual Stereo Sound card and a 5.1 surround Virtual Surround Card for a Hometheatre all from one physical card.
DPMS control of computer monitors
If you want to use DPMS to control the On/Off power state of a computer monitor rather than a serial control of a TV, you can add a device based on the "DPMS Monitor" template (Dianemo Device Template #1995) to the machine(s) in question, then see the "Configuring Media Config" on this page on how to tell the system to control it. You should assign the number of the DPMS Monitor device to VideoDev under the appropriate room.
Show/Hide The Mouse or Cross Hair Cursor
By default the Mouse Pointer & Cross Hairs Cursor are hidden. You can enable these cursors by renaming/deleting the following file on each Media Manager;
/etc/pluto/orbiter.disable.mouse
If the file is present then neither the mouse pointer or the cross hairs cursor will be displayed. If you are not using a Gyration Style remote or a mouse/trackball then you will probably want this file to exist on each Media Manager. Delete or rename the file on any Media Manager where you would prefer those cursors to be displayed.
UPnP Media Servers & Media Playback
Dianemo supports browsing of DLNA/UPnP Servers that are connected to your NerveCentre's LAN. Its most likely that you will have a DLNA/UPnP Compatible NAS (Network Attached Storage) on your LAN, but there are other types of devices that increasingly may contain a DLNA/UPnP server capability such as some uPnP Media Players, TV's or BluRay Players. Whatever your device it is important to make sure that you have turned on the DLNA/UPnP features to make sure that your NerveCentre can access your media files located on your device. The only setup required for DLNA/UPnP servers is to make sure that they have their UPnP server option turned 'on' - there is no configuration required at the Dianemo NC or in Web Admin.
Add a 'UPnP Plug-in' as a Child of the DCErouter
If your installation did not ship with a 'UPnP Plug-in' device installed please follow these simple steps to add one to your NC;
- In Web Admin select the 'Devices Tree' from the bottom of the left hand menu
- Click on the DCErouter Device in the Devices Tree and then click on the 'Create Child Device' option in the Device details on the right.
- In the next screen click 'Pick Device Template' and then type '1984' into the Device ID field and click 'Go' and then click 'Pick Device Template'.
- You Should now see a new 'UPnP Plug-in' device added as a child of the DCErouter.
- Next do a Reload Router and you are all set
Using the UPnP Media Browser for Media Playback
Once your DLNA/UPnP server is powered up and attached to the LAN side of your NC then all you need to do is the following on any Orbiter:
- Set your 'Room' to one which contains either a Media Manager or a compatible (and configured) UPnP Media Player such as an XBMC machine or another UPnP Media Renderer such as a WD Live Media Player.
- From the Home Screen Select select either 'Audio' or 'Video'
- In the next screen you will have two choices - select either 'Media Library' or UPnP
- 'Media Library' will take you to the standard Dianemo Media Library stored on your NC's internal Media Drive or on a SAMBA share
- 'UPnP' will take you to the UPnP Browser
- If this is the first time you've browsed to your UPnP Media Servers (after a fresh system boot or reload) then the first screen will display a list of all of the UPnP servers your NC has detected on your LAN.
- Selecting one of the UPnP servers listed will display the server's list of content. Each UPnP server will have a different hierarchical directory structure for the media files stored on it. Each directory will be enclosed in square brackets and look something like: '[DIRECTORY]'. Each time you select a directory you will be shown the next directory level down. When ever you see any items listed without square brackets they are playable files and selecting those will commence playback of that file on the UPnP media Player device or the Media Manager in the currently selected Room that your Orbiter is set too.
- Once you are playing a Media File you will see the Media Player screen on your Orbiter with the standard Media playback, audio & lighting controls etc. Pressing the 'Stop' button will stop the currently playing files from playing. All of the other transport controls will have the expected functionality. However this will depend on the Media Playback device located in the room you have chosen to stream media too. Currently any Room that has an Media Manager as its media playback device will have some limitations when using FFwd or Rew. With other 3rd pary Media Players your Media Transport controls will depend on the features of that device. The 'File List' button will always take you back to the screen with 'Media Library' & 'UPnP' browsing choice options displayed. Choosing 'UPnP' will take you back to the last browsed to media directory where you can select a new Media file for playback.
- You can use the '<-- Parent Directory' entry in any screen to go back up to the previous directory.
- Use the 'Server List' button to the right to return directly to the UPnP Media Server list at any time to browse to another of your DLNA/UPnP servers.
Choosing which DVD Ripper to use
Dianemo now has the choice of two different DVD rippers that can be chosen from Web Admin;
- Disc Copy - this is the original ripper that copies the DVD and retains its copy protection.
- DVD Backup - this ripper removes copy protection and can sometimes handle difficult to rip DVD's more successfully than the Disc Copy ripper. The other advantage of this ripper is that the output .dvd (these are identical to .iso's by the way) files have no copy protection and can therefore be played on devices that can only play un-protected .iso files (eg UPnP Media Renderers).
You can choose which DVD ripper to use in Web Admin;
- Open up Web Admin
- Choose Wizard->Basic Info->Installation from the Green menu bar.
- You should now see the Installation Settings screen
- Look for the 'Ripping Type for DVD's' drop down
- Choose the ripper you like your system to use from the drop down.
- Click the 'Save' button to confirm your choice
- Do a Reload Router and now your new ripper is active.
Adding iOS Orbiters to your System
Please download the latest Dianemo App from Apple's iOS App Store. The Dianemo App is a free download from the App store.
Follow the steps below to add an iOS device to your Dianemo S10.10 NC;
Configuration changes on your NC
The procedure to setup a new iOS Device on your NC is simple but the order of the steps is important.
- First of all, add a new Generic Web Device as a Child Device of your Core:
- Goto the Dianemo Admin website--> Pull down Advanced --> Configuration --> Devices --> This shows the devices tree on the left window --> click CORE. The CORE's detail page should appear.
- Click 'Create Child Device'.
- In the Description, enter the name of the specific web orbiter (choose a device descriptive name ie 'Paul's iPod4G')
- In the Add child device window, click the button 'Pick device template'. A new pop-up window containing device templates will be opened.
- Type the template id: 1748 and press go.
- Click the button 'Pick Device Template'. The Add Child Device Window will close, and the Generic Web Device will be added to the Core, as the updated Device Tree will be displayed.
- A new Generic Proxy Orbiter will also be created automatically. Watch the Orbiter generation process on the Orbiters page: Wizard-->Devices-->Orbiters.
- Make a note of the device ID of the new Generic Web Orbiter as this will be needed when configuring the Dianemo Orbiter App on your device.
- Wait till the Orbiter generation procedure finishes.
- A message on an active Orbiter or on the Orbiter page will indicate when it has completed.
- Set the appropriate screen resolution to suit the iOS device you are adding from the 'Size' drop down
- iPad1 or iPad2 = 1024x768
- iPhone 3G, 3GS, iPod 1-3 Generation = 480x320
- iPhone4 or iPod4G = 960x640
- Set the 'Skin' drop down to the skin you want to use (we recommend the 'RedLine' skin or 'Basic')
- Click on your new Generic Proxy Orbiter in the device tree, give it a unique, and meaningful name, and then scroll to the bottom of the page on the right and look for the field called 'Listen Port'. This field will be set to '3461' by default (if this Generic Proxy Orbiter is not your first then you should increment this value by one ie to '3462' - each Web Orbiter must have a unique 'Listen Port' number)
- Now click the 'Save' button at the bottom of the screen to save the changes you have made.
- Now do a 'Full Regen' from the 'Wizard - Orbiters' page (use the 'Full Regen' for the specific Web Orbiter you have created and not the overall 'Full Regen' button at the top of the page). When the Regen has completed do a "Quick reload router". This step is important Otherwise the Generic Proxy Orbiter won't work properly.
Setting up your iOS Device
- Make sure your iOS device is connected to your LAN side WiFi AP
- Download the Dianemo Orbiter App from the App store
- Start the Dianemo App and use an Upward 'swipe' gesture to display the Tab Bar at the bottom of the display
- Touch the Configuration Tab to display the Connections screen
- Select '<New Connection>' to display the Connection Settings screen and fill in the fields as follows
- Description>>> And text string that uniquely describes this Connection Setting
- Installation number>>> The installation ID of your NC
- Device number>>> The Device ID you noted down when setting up your Generic Web Device in Web Admin
- User Name>>> Used for remote access via the Dianemo's Remote Access System **Contact CHT for availability**
- Password>>> Used for remote access via the Dianemo's Remote Access System **Contact CHT for availability**
- Nerve Centre IP>>> The NC's internal LAN side IP address - usually this will be 192.168.80.1
- 'SAVE'>>> touch this when you want to save the settings you have entered.
- Select your new Connection to display the options for using it;
- Connect Locally>>> Use this when you are at home and using your NC's WiFi connection
- Connection Remotely>>> Use this when you are not at home and want to access your Dianemo system (you need WiFi, mobile 2G/3G data connection foe this to work outside of the house)
- Edit>>> Edit or update this configuration
- Delete>>> Delete this configuration from your iOS device.
- Touching the Settings button in the Connections screen displays the Global Settings screen;
- Wifi Only>>> forces the device to only use Wifi if set to 'ON'
- Load Indicator>>> Displays the load indicator if set to 'ON' when the screen is updating.
- Polling Frequency>>> Determines how often the Dianemo Orbiter will check back with your NC to see if any display changes have occurred
- Enhanced UI>>> If set to 'ON' then the Enhanced UI mode is used in certain screens in the Orbiter eg Media Browsing. This turns on the interactive layer that provides dynamic scrolling etc. If set to 'OFF' then the standard static UI screens are displayed.
- Save Settings>>> Saves any changes you make while in the Global Settings screen.
- Select '<New Connection>' to display the Connection Settings screen and fill in the fields as follows
Adding a UPnP Device Manually
Some basic instructions on Adding a new UPnP device manually from Web Admin;
Firstly install the "uPnP AV Control Point" software on your NC (or another Ubuntu system on your LAN) using the Ubuntu Software Center. Now follow the steps below to add & configure your uPnP Media Player & a uPnP Device Template;
- Connect your uPnP device to the LAN and power it up.
- Create a Child device of the 'Core' and use device template #1980
- Using the GUPnP Universal Control point App find the 'UUID' of the UPnP device you want to add a DCEdevice for. Click the UPnP device entry in the Apps left hand pane and then right-click on its UDN entry in the right-hand pane and use the 'Copy to' option.
- Now scroll to the bottom of your new uPnP device in Web Admin and paste the UUID into the 'uuid' field in the device template and hit save to save the changes.
- Make sure the device is set to 'Manually configure'
- Select a free room & entertainment area and select these for your new device.
- Now save the changes again.
- Now do a reload router.
Note; After creating the UPnP device you may find that the device does not function. This is often due to the device having an entry in 'Pluto_spawned_local_devices.txt' locks file. All you need to do is find the Device ID of the UPnP device you just added in this locks file, remove its entry and save the file. Now back in Web admim do a Reload and your device should now startup correctly and function;
/usr/pluto/locks/pluto_spawned_local_devices.txt
Adding remote Controls
Setup Wii-Remote
I added this HowTo to this Wikipage to have a complete Dianemo S10.10 Guide (copyed from the LinuxMCE Wikipage).
Login (Logging_In) as root to the media manager which has a bluetooth stick with ssh.
sudo su -
Install the cwiid driver as follows
- For Dianemo S10.10:
apt-get install libcwiid1 wminput
Make sure the uinput kernel module is loaded at boot-time:
echo "uinput" >> /etc/modules
Load it manually in the mean time:
modprobe uinput
create the daemon
cat >/usr/sbin/wminputd <<"EOF" #!/bin/bash #read the config file . /etc/wminputd.conf export DISPLAY=:0 while true do #check if the Orbiter/OrbiterGL is already running! if [ "$(pidof OrbiterGL)$(pidof Orbiter)" ] then #check if the wiimote is already connected if [ -z "$(hcitool con|grep $WIIMOTE_BDADDR)" ] then PID=$(pidof wminput) if [ "$PID" ] then kill -9 $PID fi #check if WiiMote is in range (prevents spawning devices every 10 secs) if [ "$(hcitool scan|grep $WIIMOTE_BDADDR)" ] then #mouse acceleration, adjust to your liking #see also: "man xset" and/or "xset -h" # xset m 1/2 3 wminput -c ir_ptr $WIIMOTE_BDADDR & fi fi fi sleep 5 done EOF
Make it executable
chmod 755 /usr/sbin/wminputd
- Create the config file (vi commands)
vi /etc/wminputd.conf #this is the config file for the wminputd #enter the wiimote mac address, you can find it with #hcitool scan and then press the red button #besides the battery's off the wiimote #Then place the show'n mac address as follows WIIMOTE_BDADDR="00:AA:00:BB:AA:FF"
you can find your address with hcitool scan
- Edit the file /etc/cwiid/wminput/buttons
vi /etc/cwiid/wminput/buttons
And make it suitable to your needs below is mine
#buttons Wiimote.A = KEY_ENTER Wiimote.B = KEY_ESC Wiimote.Up = KEY_UP Wiimote.Down = KEY_DOWN Wiimote.Left = KEY_LEFT Wiimote.Right = KEY_RIGHT Wiimote.Minus = KEY_F7 Wiimote.Plus = KEY_F8 Wiimote.Home = KEY_F3 Wiimote.1 = KEY_F1 Wiimote.2 = KEY_F6
- create the init file
vi /etc/init.d/wminputd
#!/bin/sh # Start/stop the wminputd daemon. # ### BEGIN INIT INFO # Provides: wminputd # Required-Start: $syslog $time # Required-Stop: $syslog $time # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: mousemodule # Description: wminputd # # # ### END INIT INFO test -f /usr/sbin/wminputd || exit 0 . /lib/lsb/init-functions case "$1" in start) log_daemon_msg "Starting wii-remote mousemodule" "wminputd" start-stop-daemon -b --start --quiet --pidfile /var/run/wminputd.pid --name wminputd --startas /usr/sbin/wminputd -- $LSBNAMES log_end_msg $? ;; stop) log_daemon_msg "Stopping wii-mote mousemodule" "wminputd" start-stop-daemon --stop --quiet --pidfile /var/run/wminputd.pid --name wminputd log_end_msg $? ;; restart) log_daemon_msg "Restarting wii-mote mousemdule" "wminputd" start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/wminputd.pid --name wminputd start-stop-daemon -b --start --quiet --pidfile /var/run/wminputd.pid --name wminputd --startas /usr/sbin/wminputd -- $LSBNAMES log_end_msg $? ;; *) log_action_msg "Usage: /etc/init.d/wminputd {start|stop|restart}" exit 2 ;; esac exit 0
Make it executable
chmod 755 /etc/init.d/wminputd
run the script and push the red button beside the battery and your wiimote is ready to go
enable the script so that it will start at boot time
update-rc.d wminputd defaults
now start the script and see if it works
/etc/init.d/wminputd start
To establish the Bluetooth connection press the Buttons 1&2 on your Wii-Remote. The LED's on your Wii-Remote will flash. When the LED's stop flashing your remote is connected.
Adding a Gyration Media Remote
Plug the Gyration Dongle into your MM and then in the Media Manager page in Web Admin select "dev/input HID MCE kbd/remote" as the 'Infrared Receiver' from the drop down. Save the change by scrolling to the bottom of the page an clicking the 'Update' button.
Adding a Fiire Remote
In Web Admin display the device tree in the left hand pane. Now locate the Orbiter of the Media Manager you want to add the Fiire Remote too and click on its entry in the Tree. Now click on 'Create Child Device' in the right hand main window (top left of that pane) and then click 'Pick Device Template' in the 'Add Child Device' window. In the 'Pick Device Template' window enter '1848' (which is the device template No. for the Fiire remotes Template) and press 'Go'. Now plug in your Fiire Remote Dongle. Now do a reload router and your new Fiire Device is ready to go.
Using theMovieDB service
The Enhanced Movie Metadata Web Tool accesses theMovieDB database and can be accessed from the following internal Web Admin url;
http://192.168.80.1/pluto-admin/moviedb/
ZWave Devices
Adding A ZWave USB Interface
- Attach your ZWave USB Interface to your NC
- Open Web Admin
- Change to the Devices Tree view (see bottom of left hand menu pane)
- Add a Device Template 1754 as a child device of the Core
- Use 'Add Child Device'
- Do a Reload Router
- You should now see a 'ZWave' item as a child device of the Core in the Devices Tree
- Expand the 'ZWave' device (click the small '+' to its left)
- You should see two Child devices;
- Zwave Embedded Climate Interface
- ZWave Embedded Security Interface
- Your ZWave interface is now configured and working.
Adding ZWave Devices to your System
See this wiki page for details of the step by step process of adding ZWave devices using the ZWave SUS/SIS mode;
ZWave#SUC.2FSIS_Mode_.28recommended.29
Installing and using Dianemo's Camera Features
Dianemo uses the Open Source project Motion to provide a more intelligent solution that rivals expensive Security DVR products. In addition to Motion Dianemo also adds the Kmotion package for easier retrieval of archived images. This is how to install, configure and use Motion and Kmotion with Dianemo:-
- From Web-Admin Wizards->Interfaces, add an instance of the motion wrapper (template #64)
- Add the Cameras to the Dianemo network, ensuring that they are configured for dhcp and have similar resolutions (ie (640 * 480). Note the mac addresses and the resolutions and then use syslog from a console session (tail -f /var/log/syslog) to see the ip address allocated to the camera by the core. Please try to clearly identify each camera within the camera setup - use a clear naming convention.
- Still within Pluto-Admin goto Wizard, devices, surveillance cameras, and then use 'Add Device' to add a 'Generic Motion IP Camera' (template #1916).
- Next add the path to the images, the userid and password, click update. Now click on the 'Advanced' button - to add and save the IP address and MAC address fields.
Some common paths are here:-
Axis
/axis-cgi/jpg/image.cgi
Y-cam
/stream.jpg:username:password
- note - Default username and password are admin 1234
Panasonic
/Snapshotjpeg?Resolution=320x240&Quality=standard
- note - Change resolution accordingly
Grandstream
GXV 3611_HD
- primary
/snapshot/view0.jpg
- secondary
/snapshot/view4.jpg
- Either from an orbiter or from Pluto-Admin (Wizard, Restart) do a 'Quick reload router'
- If prompted from an Orbiter respond 'yes, regenerate all orbiters in my home'
- When the regen is finished you should see the New Buttons for your camera from the Security menu.
Configuring Kmotion
Kmotion2 takes over the configuration tasks from motion.conf and, at the point of writing this, Dianemo does not fully auto-configure Kmotion2. We therefore need to configure Kmotion2 as well. This will change over time. To do this go to 192.168.80.1/kmotion and using the config button add the paths including the full IP address ( ie http://192.168.80.229/stream.jpg), resolution, and username and password. Press the 'Apply' button to save the changes and restart kmotion. Please note that Kmotion2 also lets you create masks within the config screen and does not let you use any mask entries that may have been stated in motion.conf or in the threadx.conf files. Creating masks is so much easier under Kmotion2.
If after any camera maintenance or camera downtime you need to restart Kmotion without affecting the rest of the system use the appropriate command as shown below:-
Kmotion1
/usr/bin/kmotion_reload
Kmotion2
sudo -u motion kmotion restart