Post ASMmpdiEMsgFoCTqee by yassie_j@mastodon.lol
 (DIR) More posts by yassie_j@mastodon.lol
 (DIR) Post #ASMT2mVmxvEhmSeMIC by izaya@social.shadowkat.net
       2023-02-05T06:50:30.581436Z
       
       0 likes, 0 repeats
       
       so this AP has a green LED and a red LED and I can control them from OpenWRTwhat if I used them to indicate whether the air conditioner should be on
       
 (DIR) Post #ASMTxjKXSzIOQ5XjU0 by izaya@social.shadowkat.net
       2023-02-05T07:00:48.175190Z
       
       0 likes, 0 repeats
       
       @lispi314 the what
       
 (DIR) Post #ASMU81hzzV9MJbQTcu by izaya@social.shadowkat.net
       2023-02-05T07:01:16.903448Z
       
       0 likes, 0 repeats
       
       @lispi314 also yes, it's a question of how much power the solar panels are making, not the temperature
       
 (DIR) Post #ASMWjL0ZOlQMnK21Ym by izaya@social.shadowkat.net
       2023-02-05T07:31:50.498109Z
       
       0 likes, 0 repeats
       
       #!/usr/bin/env lualocal f=io.popen("wget -qO - http://asakura.sks.local/solarstats/stats","r")local c = f:read("*a")f:close()local v = c:match("solar_EnergyFlow_BatteryWatts[^\n]+ ([-%d]+)\n")print(v)print(c)if tonumber(v) > 0 then local f = io.open("/sys/class/leds/green:power/brightness","w") f:write(255) f:close() local f = io.open("/sys/class/leds/red:power/brightness","w") f:write(0) f:close()else local f = io.open("/sys/class/leds/green:power/brightness","w") f:write(0) f:close() local f = io.open("/sys/class/leds/red:power/brightness","w") f:write(255) f:close()end
       
 (DIR) Post #ASMmEYR31duUj9lABs by yassie_j@mastodon.lol
       2023-02-05T10:22:11Z
       
       0 likes, 0 repeats
       
       @izayaCan you not mix them to form yellow?
       
 (DIR) Post #ASMmEYyN1kZ6OVLm88 by izaya@social.shadowkat.net
       2023-02-05T10:25:33.313654Z
       
       0 likes, 0 repeats
       
       @yassie_j I think I can mix them, but at max brightness the red drowns out the green
       
 (DIR) Post #ASMmpdiEMsgFoCTqee by yassie_j@mastodon.lol
       2023-02-05T10:30:28Z
       
       0 likes, 0 repeats
       
       @izayaThat's mega annoying. If you mix them right, is it still visible?
       
 (DIR) Post #ASMmpeDmTZuxO3F2pc by izaya@social.shadowkat.net
       2023-02-05T10:32:15.861877Z
       
       0 likes, 0 repeats
       
       @yassie_j I imagine so, haven't tried. Script has it switch between for now. Might play with it later...