-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetgem.txt
130 lines (123 loc) · 3.49 KB
/
netgem.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
Help on module netgem:
NAME
netgem
FILE
py-netgem/netgem.py
CLASSES
__builtin__.object
Netgem
class Netgem(__builtin__.object)
| Manipulate with NETGEM STB over IPv4
|
| Methods defined here:
|
| __init__(self, ip, delay=0.1, timeout=5)
| delay - pause (in seconds) between HTTP requests
| timeout - sets timeout (in seconds) waiting for HTTP response
|
| connect(self)
| Prepare STB for communication
|
| get_channel_list(self)
| Get channel list
|
| get_current_channel_id(self)
| Get currently active channel
|
| get_volume(self)
| Read current volume setting
|
| html(self, url, w=721, h=500, x=780, y=0, timeout=4000, opaque=255)
| Retrieve content from url and render it in overlay widget. Kinda looks like on screen display.
|
| url - url from which content is retrieved
| timeout - time in milliseconds before content disappears
| opaque - transparency (255 = 100% transparent)
| w,h,x,y - width, height and x, y size of rendering widget
|
| notify(self, msg, timeout=2000, pictogram='NONE', type='confirm')
| Raise notification bar on STB
|
| msg - message to appear
| timeout - time before notification disappears (in milliseconds)
| pictogram - icon used in notification area
| type - background color of notification
|
| Possible values for pictogram are:
| "WARNING"
| "INFO"
| "TIMERS"
| "NETWORK"
| "PARENTAL"
| "WIFI"
| "SMCARD"
| "USB"
| "TRASH"
| "PROCESSING"
| "DOT"
| "FAVORITE"
| "NONE"
| "GENERIC666"
| "NETGEM"
| "RECORDING"
| "USB"
|
| Possible values for notification are:
| "confirm" (green)
| "error" (orange)
| "neutral" (grey)
|
| send_key(self, key='OK')
| Sends a key to the box. List of supported keys:
| * on_off
| * deep_sleep
| * channel_up
| * channel_down
| * volume_up
| * volume_down
| * prev
| * next
| * rec
| * play_pause
| * up
| * down
| * left
| * right
| * ok
| * back
| * narobase
| * fullscreen
| * delete
| * favorite
| * mute
| * red
| * green
| * yellow
| * blue
| * menu
| * 0, 1, 2, ..., 9
|
| send_text(self, text)
|
| set_volume(self, volume=0)
| Set current volume (0..100)
|
| volume_down(self)
| Volume down
|
| volume_up(self)
| Volume up
|
| zap(self, channel='11')
| Zap to channel
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables (if defined)
|
| __weakref__
| list of weak references to the object (if defined)
FUNCTIONS
main()