Giter Site home page Giter Site logo

b1nt0n / xmr_poll_bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 30 KB

An easier way to access your information about your mining rig on the xmr.eu pool.

Home Page: http://t.me/xmrpool_eu_bot

License: GNU General Public License v3.0

Python 100.00%

xmr_poll_bot's Introduction

Hello, I'm Kleiton Andrade - aka [B1NT0N]

Gif

I'm a Engineer, Developer, and a Science Enthusiast!!

  • ๐Ÿ”ญ I'm a Electrotechnical and Telecommunication Engineering
  • ๐Ÿ“š I'm currently learning SDR Technologies and applications
  • ๐Ÿฅ… 2024 Goals: Contribute more and Learn even more
  • โšก Fun fact: I'm kinda lazy but also very focused


Languages, Tools nad Standards:

Visual Studio Code

HTML5

CSS3

Javascript

Python

Terminal

Matlab

C

Arduino

Jupyter

MySQL

Dart

Flutter

Open Source Hardware

Open Source Iniciative


Connect with me:

xmr_poll_bot's People

Contributors

b1nt0n avatar

Watchers

 avatar

xmr_poll_bot's Issues

List all the workers in a single message

Hi @B1NT0N
I tweaked your code on my private repo to have all the workers info in one line.

  if new_msg == "/rigs" or new_msg == "/r" or new_msg == "r":
                mining_data = get_data(wallet)
                for worker in mining_data["perWorkerStats"]:
                    send_message_only(data,
                                f'*{worker["workerId"][:3]}* '
                                f'*{worker["hashrate"][:4] if ("hashrate" in worker) is True else "*---*"}*  '
                                f'{str(round((float(worker["hashes"])/10**9), 3))} bil  '
                                f'{datetime.fromtimestamp(int(worker["lastShare"])).strftime("%d %b %H:%M")}'
                                )

I currently have 6 workers, so the above code prints 6 messages.

Would it be possible to have all the workers listed in a single 6-lines message?
Thanks

Schedule automatic message

Hi @B1NT0N
how would you add feature to send automatically scheduled messages every x hours?
i.e. I would like my bot to print my workers stats every 4 hours.
Thanks

How can I run it online?

Like in pythonanywhere?
I get error Max retries exceeded, OSError Tunnel connection failed: 403 forbidden

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.