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
2 comment(s) hidden. show
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: | 1258 / 207 |
Referenced in: | [show references] |