Skip to content

Commit 9bee3a1

Browse files
authored
Merge pull request #28 from deckerego/fix_ifttt
Fixed Issue #27
2 parents d2c94d5 + 4739efe commit 9bee3a1

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ I'm assuming that you are starting with the Raspian Minimal Linux distribution.
2121
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`
2222
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
2323
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`
24-
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`
24+
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`
2525
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
2626
6. Reboot your Pi to re-load modules and start the IDE web server
2727

debian/changelog

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
hackclock (2.1.5-1) stable; urgency=low
1+
hackclock (2.1.6-1) stable; urgency=low
22

3-
* Added ability to adjust volume
3+
* Fixed IFTTT event name trigger
44

5-
-- DeckerEgo <[email protected]> Tue, 07 Feb 2017 22:15:00 -0500
5+
-- DeckerEgo <[email protected]> Tue, 01 Mar 2017 21:32:00 -0500

lib/hackclock/runapp/Libs/IFTTT.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def sendMakerEvent(self, eventName):
3232
logger.info("IFTTT Body: %s" % body)
3333

3434
conn = httplib.HTTPSConnection(self.__SERVER, self.__PORT)
35-
conn.request("POST", "/trigger/wake_up/with/key/%s" % self.__KEY, body, self.__HEADERS)
35+
conn.request("POST", "/trigger/%s/with/key/%s" % (eventName, self.__KEY), body, self.__HEADERS)
3636

3737
response = conn.getresponse()
3838
logger.info("IFTTT Response: %s %s" % (response.reason, str(response.status)))

package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ rm home/pi/hack-clock/backups/blocks_clock.*
77

88
cd ..
99
echo "Compressing file..."
10-
tar Jcf hackclock_2.1.5.orig.tar.xz hack-clock/
10+
tar Jcf hackclock_2.1.6.orig.tar.xz hack-clock/
1111

1212
cd hack-clock
1313
dpkg-buildpackage -rfakeroot -uc -us

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def all_files(newroot, oldroot):
2727

2828
setup(
2929
name='HackClock',
30-
version='2.1.5',
30+
version='2.1.6',
3131
description='A hackable alarm clock for the Raspberry Pi',
3232
author='DeckerEgo',
3333
author_email='[email protected]',
@@ -55,7 +55,7 @@ def all_files(newroot, oldroot):
5555
classifiers=[
5656
"License :: OSI Approved :: Apache Software License",
5757
"Programming Language :: Python",
58-
"Development Status :: 4 - Beta",
58+
"Development Status :: 5 - Production/Stable",
5959
"Intended Audience :: Education",
6060
"Topic :: Education"
6161
],

0 commit comments

Comments
 (0)