Answer the question
In order to leave comments, you need to log in
How to control and status ASICs using telegram bot in Python?
Hello.
There are several ASICs (devices that mine crypto), these devices are connected to the router and are in a common local network, they also have their own DHCP web interface . You need to write a Python bot that will receive this information (temperature, hash rate, uptime, work status, pool status, fan speed) . But I have questions:
1. Is there already some ready-made information about this, I searched on Google, I didn’t find it, but for sure, someone was doing it
2. How to do this? (Some libraries, possibly information)
3.If the bot is on the server, then I will first need to somehow connect to my router, and from it already via the local network to the devices?
3.1 If the devices have a DHCP IP address, that is, it can change periodically (although it has not changed yet), how can I track it on the local network (if it is done this way)
In general, I am looking for some information about this. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
1. If there is ready-made info, then you need to check it with the ASIC manufacturer - perhaps he has an api, or maybe not.
2. See what requests the frontend makes to find out the temperature and so on. From a python it will be necessary to imitate these requests. If there is no api there, then it will be necessary to soar html
3. If they are on the same network, then you just need to access by ip. If the bot and ASICs are in different networks, then the networks will need to be connected via VPN
3.1 - there is mDNS technology (it seems to be called that, but I'm not sure) - you can use it to find out the current address if ASICs use it. Another option is to bind the IP to the ASIC MAC address.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question