Power Status (was Re: Because LC can't do two things at once.)
Mark Wieder
mwieder at ahsoftware.net
Fri Mar 6 15:26:27 EST 2015
Michael Doub <mikedoub at ...> writes:
> if there is a folder "/sys/class/power_supply/BAT0" then
> put url "/sys/class/power_supply/BAT0/Status" into tStatus
> else if there is a folder "/sys/class/power_supply/BAT1" then
> put url "/sys/class/power_supply/BAT1/Status" into tStatus
Getting better. The "status" file should be lowercase though
And now that I'm looking at it again, I don't think that's the proper format
for the url command. It should be
put url "file:///sys/class/power_supply/BAT0/status" into tStatus
--
Mark Wieder
ahsoftware at gmail.com
More information about the use-livecode
mailing list