c7ph3r10
c7ph3r10
+1 Running two of those and also would like to see them controlled via home assistant!
> I was just jumping on to say the same thing. Received one of these today and would like to be able to automate it around solar production etc. I...
> Ok, trying to get around to doing this now, but it seems like they change commands every few versions of miner, so I don't know if what I already...
> 1. The api complains the "time interval is too short", does anything change if you send 1 instead of 0? Changing 0 to 1 does nothing. Same for 2...
> here is also the case of the `litestats` command, which used to be just `stats` The following command does its work: `echo '{"command": "litestats", "param": "0"}' | nc 10.0.0.201...
guess you prefer this one: `echo '{"command": "stats", "param": "0"}' | nc 10.0.0.201 4028` response: `{"STATUS":[{"STATUS":"S","When":1753220674,"Code":70,"Msg":"CGMiner stats","Description":"cgminer 4.11.1"}],"STATS":[{"STATS":0,"ID":"AVALON0","Elapsed":1528,"Calls":0,"Wait":0.000000,"Max":0.000000,"Min":99999999.000000,"MM ID0:Summary":"","HBinfo":""},{"STATS":1,"ID":"POOL0","Elapsed":1528,"Calls":0,"Wait":0.000000,"Max":0.000000,"Min":99999999.000000,"Pool Calls":0,"Pool Attempts":0,"Pool Wait":0.000000,"Pool Max":0.000000,"Pool Min":99999999.000000,"Pool Av":0.000000,"Work Had Roll Time":false,"Work Can Roll":false,"Work...
> I would try `echo '{"command": "ascset", "param": "0,softoff,1:4"}' | nc 10.0.0.201 4028` Still this response: `{"STATUS":[{"STATUS":"E","When":1753220807,"Code":15,"Msg":"Missing device id parameter","Description":"cgminer 4.11.1"}],"id":1}# `
> You could try constructing it with pyasic if you want... I am affraid there are some missig capabilities on my side to do this. Would really have to deep...
> Interestingly enough they released sources for the nano3s, this is (eventually) how those commands get handled - https://github.com/Canaan-Creative/Avalon_Nano3s/blob/04c84d312a4e38c1efa437b086bbcb297749e77a/cg_miner/cgminer/driver-avalon.c#L2907-L2933 > > This also contains a list of all the commands!...
> Maybe you want to try the `help` command with ascset? Response is: `{"STATUS":[{"STATUS":"E","When":1753221666,"Code":15,"Msg":"Missing device id parameter","Description":"cgminer 4.11.1"}],"id":1}#` in both cases. somehow the device id seems to be required for...