Git Product home page Git Product logo

telemonbot's Introduction

TeleMonBot

Monitor and log to SQLite your Windows/Linux server via Telegram + ThingSpeak (freaky, yep?)

Python 2.7 script

Write to my bot and see how it works (List of commands):

https://telegram.me/EKOshTower_bot

Be patient - it doesn't work 24/7

Used python libraries: psutil, telepot, PyQt4 and peewee

Don't install them, the code will install them itself

The code is really raw right now... But, well, you can use it and tell me about your experience. My telegram is @E_KOsh. Email [email protected]

For read before sleep: www.thingspeak.com/ www.telegram.org/

Huge THANKS to GitHub user Nick Lee! Check out his project www.github.com/nickoala/telepot

Installation (Linux):

  • Clone my code to your lovely linux pc:

git clone https://github.com/EKOsh/TeleMonBot TeleMonBot && cd TeleMonBot

  • Install all libs + SQLite DB browser and create a DB for future logging:

sudo chmod +x inst.sh && sudo ./inst.sh

  • Now, open the config.ini file with any editor, paste your telegram bot api code and (optionally) thingspeak channel write code (I think you got them while your before_sleep_reading) and save+close it

Are you excited? Let’s run it!

sudo python Main.py

With ThingSpeak (if you've added the code):

sudo python Main.py TS

Installation (Windows):

  • Intstall python 2.7.* (don't forget to add it to PATH):

https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi

  • Download and install psutil library:

https://pypi.python.org/pypi/psutil#downloads

  • Open console and say there:

pip install psutil geocoder uptime telepot peewee

  • Download and install PyQt4 binary:

https://riverbankcomputing.com/software/pyqt/download

  • Download and unzip this repo

  • Run the dbcreate.py file

  • Open and edit config.ini file (add the API key of your bot)

  • Run it!

Double-click Main.py

If everything is OK, you will get your terminal that looks like this:

Terminal

Command List

Returns RAM usage in %:

RAM usage

Returns CPU usage in %:

CPU usage

Find out system uptime:

Uptime

And time:

What is the time?

Sends you a screenshot:

Screenshot

Tells where he is:

Where are you?

Bot says what you ask him to say:

Say: ...

Helps to make a random choise:

Say, ... or ...

Final:

Who is your creator?

Returns a link to my telegram:)

Usage preview

msg

ts

telemonbot's People

Contributors

ekosh avatar

Watchers

 avatar

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.