Hardware Reference
In-Depth Information
The first GET request made by the app is for a file called “config.xml” in the root of the servers URL. The display
is broken up into 6 x 6 areas (the index first referenced as the position on screen, in the command argument), reading
left-to-right, then top-to-bottom, with each area being either a piece of text, a function button with an icon, or a link
to another menu. In this case, our first menu (called zero) begins with a line of controls for the TV, which have various
icon references, and is following by a link to menu 1 (i.e., the second). The icon for the menu is predetermined.
The available icons are:
0. Blank
1. Ellipsis—reserved for menu
change
2. Power off
3. Power off
4. Book mark
5. Mixer levels
6. TV output
7. Music
8. Photographs
9. House control
10. News or information
11. Film
12. Photographs
13. Mail
14. Weather
15. CD
16. Documents on a
server (or cloud)
17. Friends
18. Up
19. Down
20. Left/previous
21. Right/next
22. Plus/more
23. Minus/less
24. Cross/delete/remove
25. Magnify/show/status/info
26. Grow
27. Battery or power
28. Chat messages or
conversations
29. Document
30. Play/start
31. Pause
32. Stop
33. Volume lower
34. Mute
35. Volume higher
36. Rewind
37. Previous
38. Next
39. Fast forward
40. Favourites
41. Tags
N Because there is a lot of typing involved in the configuration file, sample ones can be downloaded at
http://www.minervahome.net/homeremote.htm
Note
Once a button is pressed, the full URL is called as mentioned previously. You can then split the command at the
dots, and parse each according to the specifics of your app. An example processing script works like this:
<?php
$cmd = $_GET['command'];
$code = $_GET['code'];
if ($code != "nocode") {
echo "Invalid code";
return;
}
preg_match('/menu\.(\d+)\.icon\.(\d+)\.index\.(\d+)/', $cmd, $match);
$menu = $match[1];
$icon = $match[2];
$index = $match[3];
 
Search WWH ::




Custom Search