Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

hectorsvill/rvn2MinersUpdates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rvn2MinersUpdates

rvn.2miners.com/api/

Setup

Install libraries
  • Install necessary packages.
pip3 install requests
pip3 install smtplib
pip3 install apscheduler
pip3 install twilio

Usage

SMS Updates
  • Set rvn address you want to track on 2Miners.
  • Create an account with twillio and enable sms.
  • Setup TwillioSerivice with your account sid, auth token and the number provided.
  • Set account.twillio_service.to_number - The number you want to send updates to.
  • Call schedule_sms_updates and set a second interval.
if __name__ == '__main__':
    rvn_address = ""
    account = Account(rvn_address)
    # Send SMS Updates
    account.twillio_service = TwillioService(account_sid="", auth_token="", from_number="")
    account.twillio_service.to_number = ""
    account.schedule_sms_updates(10)
Email Updates
  • Set rvn address you want to track on 2Miners.
  • Create a new gmail account.
  • Go to setting, security, turn on Less Secure app access.
  • Setup EmailSerivice with your gmail, password.
  • Set account.mail_service.mail_to - The email you want to send updates to.
  • Call schedule_email_updates and set a second interval.
if __name__ == '__main__':
    rvn_address = ""
    account = Account(rvn_address)
    # Send email Updates
    my_gmail_user = ""
    my_gmail_password = ""
    account.mail_service = MailService(my_gmail_user, my_gmail_password)
    account.mail_service.mail_to = ""
    account.schedule_email_updates(60)

About

rvn.2miners.com/api/

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages