Post
Topic
Board Mining (Altcoins)
Re: [Awesome Miner]- Powerful Windows GUI to manage and monitor up to 5000 miners
by
puwaha
on 04/01/2018, 22:29:51 UTC
Guys, is there some way to integrate MQTT devices in AM? We have some MQTT powered SONOFF POW switches for power control and rigs monitoring, it would be great if we have power consumption information in progress list and a buttons  "Power on"/"Power off"

There's no native support for MQTT, but you could construct some interface for AM to use.  When it comes to rules actions, you have a few options like a custom C# action, email, SMS, telegram, executable, SSH, or webhook.  You might be able to piece something together from an If This Then That website with the webhook option.
I see it's possible to use webhooks with device with JSON API enabled, but this is for monitoring. How can i make a button, or an option in rightmouseclick menu for power off/on device via remote relay? Is it possible?

I think the whole point of using something like AM is that it can automate some of these things for you.  You setup a rule with some trigger... like maybe a rig that hasn't increased it's Accepted rate in X minutes... so that would tend to mean that it's offline, then the action would be a webhook with some POST data to the IOT device that does some action.... like a power off and then power on?  Or if you have an executable file, you can have it run a batch script to run some program like:

devicesoftware.exe -poweroff -IP 192.168.0.X
TIMEOUT /t 5
devicesoftware.exe -poweron -IP 192.168.0.X

I'm just spit-balling some ideas here.