Skip to content

Commit

Permalink
Merge pull request #28 from deckerego/fix_ifttt
Browse files Browse the repository at this point in the history
Fixed Issue #27
  • Loading branch information
deckerego authored Mar 2, 2017
2 parents d2c94d5 + 4739efe commit 9bee3a1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> Tue, 07 Feb 2017 22:15:00 -0500
-- DeckerEgo <[email protected]> Tue, 01 Mar 2017 21:32:00 -0500
2 changes: 1 addition & 1 deletion lib/hackclock/runapp/Libs/IFTTT.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
Expand Down Expand Up @@ -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"
],
Expand Down

0 comments on commit 9bee3a1

Please sign in to comment.