Git Product home page Git Product logo

jaspermodules's Introduction

Jasper Modules

Collection of different Jasper Modules

Disclaimer : I think you probably have to tweak things a little. And of course there are always the small typos that make a script not work, so have a look at the code if things to work as expected.

##Alarm Module Basically creates a cronjob at a certain time that executes jasperAlarm.py
If you want to play a music file after the alarm, you have to add the yourself at the end of the jasperAlarm.py file.

Usage = "Set an alarm for every monday at 8", or "Wake me up in 8 hours" (Only accepts full hours, no minutes)

Requires pywapi. Install it like so :
pip install pywapi

##Hue Module Turns all hue lights on,off or dims them. Keep in mind that you need to a "bridge" to your profile.yml like so:
bridgeip: 192.168.XXX.XXX

Requires phue library. Install with :
pip install phue



Usage = "Turn the lights on/off","Reduce the brightness","Dim the lights"

##JasperLife Module You are able to control jasper with saying restart, shut down, shut up and reboot followed by yourself (restart = restarts jasper, reboot = reboots computer).

Needs a "root_pwd" setting in profile.yml. Add it like so :
root_pwd: YOUR PASSWORD HERE
ATTENTION: YOUR PASSWORD IS SAVED IN PLAIN TEXT

##Knowledged Module Extremely minor changes to the knowledged module from nexhero all credit should go to him. Visit his github page on the knowledge module for further instruction

Requires wolframalpha library. Install with :
pip install wolframalpha

##Movie Module Gets the best result for your query from kickasstorrents and downloads it to a remote server. You can change it to wherever your torrent download directory is.
If you also use a server, add "downloadip" to your profile.yml like so :
downloadip: 192.168.XXX.XXX

Requires KAT library Install with :

pip install kat

Usage: "Download a movie" BEEP "Iron man"
##Time Module The default time module somehow stopped working for me, so I wrote a new one.
Usage: "What time is it?", "What date is it?"

##Weather Module Tells you what the weather is like and can also give advice for your clothing according to the current weather. Tells you if it's going to rain or not
Change weather_com_result = pywapi.get_weather_from_weather_com('SZXX0728') according to your location.
Here is how:
Go to weather.com, search for your location. Your URL should change to something like this : http://www.weather.com/weather/today/l/SZXX0728:1:. The characters after l/ until : is your location code.

Requires pywapi. Install it like so :
pip install pywapi

Usage: "What should i wear today?", "What's the current temperature?","Is it going to rain today?"

##Say Module Simply repeats what you have said.
Usage : "Say XXXXXXXXXXXXXXXXXX"

##System Module Pings the ip addresses listed in the system.py file and tells you if they are online or not.

Usage : "Do a systems check"

##What's all that fridge.py and LampON/OFF.py ? Where I life the wemo switches are not available so I built my own. I am using intertechno IT-1500 switches which are just normal radio switches with a remote. I popped the remote open looked at the circuit and then hacked something together using a raspberry pi. Afterwards I configured nanpy. So these LampON/OFF.py are simply making a nanpy call to the arduino which then uses a relay to control the remote for the switches. You probably do not need these so if you plan on using my modules I would suggest deleting fride.py and any refrence to LampON/OFF. However if someone more interested in how I configured my setup just email me I am always happy to help.

Also if you find any errors in the code or something doesn't work anymore please do send me and e-mail.

jaspermodules's People

Contributors

hadjimina 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.