diff --git a/README.md b/README.md index 8ce75c9..4301e78 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ I'm assuming that you are starting with the Raspian Minimal Linux distribution. 1. Make sure your Raspberry Pi is up to date with the latest packages & firmware with `sudo apt-get update; sudo apt-get dist-upgrade` 2. Enable I2C by executing `sudo raspi-config` as described in Adafruit's tutorial: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c 3. Add the necessary Python and GStreamer dependencies using the command: `sudo apt-get install wiringpi python-bottle python-requests python-oauth2client python-httplib2 python-setuptools python-pip python-dev python-dateutil python-smbus gstreamer0.10-x gstreamer-tools gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly python-gst0.10` -4. Install hack-clock via `wget https://github.com/deckerego/hack-clock/releases/download/2.1.5/python-hackclock_2.1.5-1_all.deb; sudo dpkg -i python-hackclock_2.1.5-1_all.deb` +4. Install hack-clock via `wget https://github.com/deckerego/hack-clock/releases/download/2.1.6/python-hackclock_2.1.6-1_all.deb; sudo dpkg -i python-hackclock_2.1.6-1_all.deb` 5. Tweak `/etc/hack-clock.conf` and `/etc/default/hack-clock` to fit your needs (GPIO pins, correct weather station, etc.). A list of observed weather stations is available at http://forecast.weather.gov/stations.php 6. Reboot your Pi to re-load modules and start the IDE web server diff --git a/debian/changelog b/debian/changelog index b0b9a19..af3aad1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,5 @@ -hackclock (2.1.5-1) stable; urgency=low +hackclock (2.1.6-1) stable; urgency=low - * Added ability to adjust volume + * Fixed IFTTT event name trigger - -- DeckerEgo Tue, 07 Feb 2017 22:15:00 -0500 + -- DeckerEgo Tue, 01 Mar 2017 21:32:00 -0500 diff --git a/lib/hackclock/runapp/Libs/IFTTT.py b/lib/hackclock/runapp/Libs/IFTTT.py index 9a49568..b380011 100644 --- a/lib/hackclock/runapp/Libs/IFTTT.py +++ b/lib/hackclock/runapp/Libs/IFTTT.py @@ -32,7 +32,7 @@ def sendMakerEvent(self, eventName): logger.info("IFTTT Body: %s" % body) conn = httplib.HTTPSConnection(self.__SERVER, self.__PORT) - conn.request("POST", "/trigger/wake_up/with/key/%s" % self.__KEY, body, self.__HEADERS) + conn.request("POST", "/trigger/%s/with/key/%s" % (eventName, self.__KEY), body, self.__HEADERS) response = conn.getresponse() logger.info("IFTTT Response: %s %s" % (response.reason, str(response.status))) diff --git a/package.sh b/package.sh index 76d8778..68564fc 100755 --- a/package.sh +++ b/package.sh @@ -7,7 +7,7 @@ rm home/pi/hack-clock/backups/blocks_clock.* cd .. echo "Compressing file..." -tar Jcf hackclock_2.1.5.orig.tar.xz hack-clock/ +tar Jcf hackclock_2.1.6.orig.tar.xz hack-clock/ cd hack-clock dpkg-buildpackage -rfakeroot -uc -us diff --git a/setup.py b/setup.py index 4961a49..3ec6fbc 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ def all_files(newroot, oldroot): setup( name='HackClock', - version='2.1.5', + version='2.1.6', description='A hackable alarm clock for the Raspberry Pi', author='DeckerEgo', author_email='john@deckerego.net', @@ -55,7 +55,7 @@ def all_files(newroot, oldroot): classifiers=[ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Intended Audience :: Education", "Topic :: Education" ],