@@ -71,7 +71,8 @@ Tested on [Lubuntu](http://lubuntu.me/)
71
71
<table >
72
72
<tr>
73
73
<td align="center">Code Quality</td>
74
- <td align="center"><a href="https://www.codacy.com/app/sepand-haghighi/Orangetool?utm_source=github.com&utm_medium=referral&utm_content=Moduland/Orangetool&utm_campaign=Badge_Grade"><img src="https://api.codacy.com/project/badge/Grade/ad9374e6e7b24a63b34d6a4f419497ac"/></a></td>
74
+ <td align="center"><a href="https://www.codacy.com/app/sepand-haghighi/Orangetool?utm_source=github.com&utm_medium=referral&utm_content=Moduland/Orangetool&utm_campaign=Badge_Grade"><img src="https://api.codacy.com/project/badge/Grade/ad9374e6e7b24a63b34d6a4f419497ac"/></a></td>
75
+ <td align="center"><a href="https://codebeat.co/projects/github-com-moduland-orangetool-dev"><img alt="codebeat badge" src="https://codebeat.co/badges/78f987a9-d504-4d29-b98d-21dd1f2d319e" /></a></td>
75
76
<td align="center"><a href="https://www.codefactor.io/repository/github/moduland/orangetool"><img src="https://www.codefactor.io/repository/github/moduland/orangetool/badge" alt="CodeFactor" /></a></td>
76
77
</tr>
77
78
</table >
@@ -83,13 +84,13 @@ By [Moduland Co](http://www.moduland.ir)
83
84
84
85
## Installation
85
86
### Source Code
86
- - Download [ Version 0.35 ] ( https://github.com/moduland/Orangetool/archive/v0.35 .zip ) or [ Latest Source ] ( https://github.com/Moduland/Orangetool/archive/dev.zip )
87
+ - Download [ Version 0.45 ] ( https://github.com/moduland/Orangetool/archive/v0.45 .zip ) or [ Latest Source ] ( https://github.com/Moduland/Orangetool/archive/dev.zip )
87
88
- ` pip3 install -r requirements.txt ` or ` pip install -r requirements.txt ` (Need root access)
88
89
- ` python3 setup.py install ` or ` python setup.py install `
89
90
### PyPI
90
91
91
92
- Check [ Python Packaging User Guide] ( https://packaging.python.org/installing/ )
92
- - ` pip3 install orangetool==0.35 ` or ` pip install orangetool==0.35 ` (Need root access)
93
+ - ` pip3 install orangetool==0.45 ` or ` pip install orangetool==0.45 ` (Need root access)
93
94
<div align =" center " >
94
95
<a href =" https://asciinema.org/a/141548 " target =" _blank " ><img src =" https://asciinema.org/a/141548.png " /></a >
95
96
</div >
@@ -128,7 +129,7 @@ ip_status=orangetool.ping(ip_address) #this function check ip and return True if
128
129
129
130
# 5- set_ip
130
131
131
- set_ip(" 192.168.1.46" ," eth0" ) # this function set static ip for system
132
+ orangetool. set_ip(" 192.168.1.46" ," eth0" ) # this function set static ip for system
132
133
133
134
# 6- mac
134
135
@@ -188,6 +189,14 @@ orangetool.unmount_all() #This function unmount all of the mounted devices
188
189
189
190
orangetool.mount(" sda1" ," /mnt/usb1" ) # This function mount input device in input addresses
190
191
192
+ # 6- usb_on
193
+
194
+ orangetool.usb_on() # This function enable USB
195
+
196
+ # 7- usb_off
197
+
198
+ orangetool.usb_off() # This function disable USB
199
+
191
200
```
192
201
193
202
### Display Functions
@@ -214,38 +223,42 @@ orangetool.hdmi_size(1280,720) # this function change hdmi display resolution
214
223
215
224
orangetool.sleep() # put system in sleep mode
216
225
217
- # 2- halt
226
+ # 2- hibernate
227
+
228
+ orangetool.hibernate() # put system in hibernate mode
229
+
230
+ # 3- halt
218
231
219
232
orangetool.halt() # poweroff system
220
233
221
- # 3 - restart
234
+ # 4 - restart
222
235
223
236
orangetool.restart() # restart system
224
237
225
- # 4 - wakeup
238
+ # 5 - wakeup
226
239
227
240
orangetool.wakeup(day = 1 ,hour = 0 ,minute = 1 ) # set rtc wakeuptime
228
241
229
- # 5 - get_temp
242
+ # 6 - get_temp
230
243
231
244
temp= orangetool.get_temp() # this function return cpu temperature as string
232
245
233
- # 6 - uptime
246
+ # 7 - uptime
234
247
235
248
time= orangetool.uptime() # this function return uptime of system
236
249
237
- # 7 - idletime
250
+ # 8 - idletime
238
251
239
252
time= orangetool.idletime() # this function return idle of system ( all cores)
240
253
241
254
242
- # 8 - version
255
+ # 9 - version
243
256
244
257
orangetool.version() # return orangetool version for test
245
258
246
- # 9 - check_update
259
+ # 10 - check_update
247
260
248
- orangetool.check_update # Return True if new version is available
261
+ orangetool.check_update() # Return True if new version is available
249
262
250
263
```
251
264
@@ -255,15 +268,15 @@ orangetool.check_update # Return True if new version is available
255
268
- ` local_ip ` and ` global_ip ` originally are available in ipz package [ Link] ( http://github.com/sepandhaghighi/ipz )
256
269
- RAM functions in this version need psutil package
257
270
- Running ` set_ip ` function remotely will freeze your terminal so it's better to set ` restart ` parameter to True
258
- - Running ` halt ` ,` restart ` & ` sleep ` functions remotely will freeze your terminal
271
+ - Running ` halt ` ,` restart ` , ` hibernate ` & ` sleep ` functions remotely will freeze your terminal
259
272
- Some of funtions need root access so it's better to run ``` sudo -s ``` before use this tool
260
273
261
274
262
275
263
276
## Issues & Bug Reports
264
277
265
278
Just fill an issue and describe it. We'll check it ASAP!
266
- or send an email to [ info@moduland .ir ] ( mailto:info@moduland .ir " info@moduland .ir ") .
279
+ or send an email to [ info@orangetool .ir ] ( mailto:info@orangetool .ir " info@orangetool .ir ") .
267
280
268
281
## Dependencies
269
282
0 commit comments