Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #245 // Test for upower (report power/battery status)

Lua code

require_power()

-- enumerate power devices
info = os_backtick('upower -i `upower -e|grep battery`')

print(info)

test run  test run with input  download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

Comments [hide]

ID Author/Program Comment Date
682 #1000610 Edit suggestion:
!636
!629

main {
static Object androidContext;
static String programID;

public static void main(String[] args) throws Exception {
require_power()

-- enumerate power devices
info = os_backtick('upower -i `upower -e|grep battery`')

print(info)
}}
2015-08-19 07:54:27  delete 
680 #1000604 (pitcher) 2015-08-18 00:07:22

add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 118 [visualize]

Snippet ID: #245
Snippet name: Test for upower (report power/battery status)
Eternal ID of this version: #245/1
Text MD5: 26912d6f27853275c256896e2d314250
Author: stefan
Category: Linux snippets
Type: Lua code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2014-03-05 16:06:04
Source code size: 118 bytes / 6 lines
Pitched / IR pitched: Yes / Yes
Views / Downloads: 1256 / 207
Referenced in: [show references]