Difference between revisions of "Timed Events - Play Media"

From LinuxMCE
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{versioninfo|710Status=Working with issues|710UpdatedDate=before|710UpdatedBy=Techstyle|810Status=Working with issues|810UpdatedDate=7th April 2011|810UpdatedBy=Techstyle}}
 
{| align="right"
 
{| align="right"
 
   | __TOC__
 
   | __TOC__
 
   |}
 
   |}
 
+
[[Category: Admin Website]]
 +
[[Category: Automation]]
 +
[[Category: Tutorials]]
 
Here we will walkthrough how to set up a timed event to either play a piece of media or a playlist.  This can be used for a variety of reasons, one of which is as an alarm clock.
 
Here we will walkthrough how to set up a timed event to either play a piece of media or a playlist.  This can be used for a variety of reasons, one of which is as an alarm clock.
  
Line 57: Line 60:
  
 
[[Image:Techstyle_add_timed_event4.png]]
 
[[Image:Techstyle_add_timed_event4.png]]
 +
 +
4) In the '#78 EK_Playlist (int)' enter the number associated with the playlist.  This is the order in which they were created, they are numbered in the Playlist page under 'files & media > Playlists' however if one is deleted from here they renumber on this page but not in the database.
 +
 +
5) In the '#45 PK_EntertainArea (string)' enter the number of the entertain area you want the event to happen in.  This number is in the order that the MD was added from 1 upwards.  In my case the 'Bedroom' is number 5.
 +
 +
6) Hit the Save button
 +
 +
8) Reload the router and you should be set.
 +
 +
= Change the time =
 +
 +
If you make changes such as the time then you need to reload the router before they come into effect.

Latest revision as of 04:46, 8 April 2011

Version Status Date Updated Updated By
710 Working with issues before Techstyle
810 Working with issues 7th April 2011 Techstyle
1004 Unknown N/A N/A
1204 Unknown N/A N/A
1404 Unknown N/A N/A
Usage Information

Here we will walkthrough how to set up a timed event to either play a piece of media or a playlist. This can be used for a variety of reasons, one of which is as an alarm clock.

Create a new timed event

1) Log into web admin

2) Goto Wizard > Event Handler > Timed Events

Techstyle add timed event.png

3) Enter a title for your event into the description box

4) Select Interval based, Day of the Week based,Day of the Month based and Absolute. They are pretty self explanatory. I choose day of the week based for my alarm clock.

5) Hit the 'Add' button

Techstyle add timed event2.png

6) With Day of the Week based selected: select the days of the week you want the event to happen and enter the time in 00:00 format.

7) If you want your event to appear in the 'Sleeping Menu' pick the room off this list and the event will show up in the orbiter when that entertainment area is selected

8) Hit the 'Update' button

Play a media file

1) select device 'Media Plug-in' which states it is attached to which ever room your core is in - that is OK even if the event is not going to be in this room

2) select command 'MH Play media'.

3) Hit the 'Add' button

Techstyle add timed event3.png

4) In the '#13 Filename (string)' field enter a reference for the file you want to play. This can be the full path of the file or click on the folder icon and browse to the file you want to play. Once you have selected a file the database entry number for the file will be entered into the field. Before you accept this number you must edit it by adding '!F' in front of it as shown above.

5) In the '#45 PK_EntertainArea (string)' enter the number of the entertain area you want the event to happen in. This number is in the order that the MD was added from 1 upwards. In my case the 'Bedroom' is number 5.

6) In the '#29 PK_MediaType (int)' enter the number associated with the media type (4=Audio, 5=Video)

7) Hit the Save button

8) Reload the router and you should be set.


Play a Playlist

1) select device 'Media Plug-in' which states it is attached to which ever room your core is in - that is OK even if the event is not going to be in this room

2) select command 'Load Playlist'.

3) Hit the 'Add' button

Techstyle add timed event4.png

4) In the '#78 EK_Playlist (int)' enter the number associated with the playlist. This is the order in which they were created, they are numbered in the Playlist page under 'files & media > Playlists' however if one is deleted from here they renumber on this page but not in the database.

5) In the '#45 PK_EntertainArea (string)' enter the number of the entertain area you want the event to happen in. This number is in the order that the MD was added from 1 upwards. In my case the 'Bedroom' is number 5.

6) Hit the Save button

8) Reload the router and you should be set.

Change the time

If you make changes such as the time then you need to reload the router before they come into effect.