Skip to content

Commit

Permalink
Merge pull request #36 from deckerego/stretch_refresh
Browse files Browse the repository at this point in the history
Issue #34 fixed some typos and updated for Stretch
  • Loading branch information
deckerego authored Sep 26, 2017
2 parents f5f04b5 + 7101f44 commit 86f59a8
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions BUILDING
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Distributions are generated using stdeb, execute it on the Raspberry Pi to build

To debug installation:

sudo dpkg -D113 -i ../python-hackclock_2.0-beta-1_all.deb
sudo dpkg -D113 -i ../python-hackclock_2.3.0-1_all.deb

To completely uninstall:

sudo dpkg -P python-hackclock

To verify the files inside the package:

dpkg -c deb_dist/python-hackclock_2.0-beta-1_all.deb
dpkg -c deb_dist/python-hackclock_2.3.0-1_all.deb


Requirements
Expand Down
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Apache License
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}
Copyright 2017 John T. Ellis

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -199,4 +199,3 @@ Apache License
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ A suggested list of hardware you might need to buy is saved as a wishlist at Ada
Installation
------------

I'm assuming that you are starting with the Raspian Minimal Linux distribution. NOOBS or the like also works, but Raspian Minimal is small enough to fit on a 2GB microSD card. To install the hack-clock distribution on top of it:
I'm assuming that you are starting with the Raspian Minimal Linux distribution available at https://www.raspberrypi.org/downloads/raspbian/ or pre-installed by several distributors. NOOBS or the like also works, but Raspian Minimal is small enough to fit on a 2GB microSD card.

To install the hack-clock distribution on top of Raspian:

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.2.2/python-hackclock_2.2.2-1_all.deb; sudo dpkg -i python-hackclock_2.2.2-1_all.deb`
3. Add the necessary Python and GStreamer dependencies using the command: `sudo apt-get install wiringpi ntp python-bottle python-requests python-oauth2client python-httplib2 python-setuptools python-pip python-dev python-dateutil python-smbus gstreamer0.10-x gstreamer0.10-alsa gstreamer-tools gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly python-gst0.10`
4. Install hack-clock via `wget https://github.com/deckerego/hack-clock/releases/download/2.3.0/python-hackclock_2.3.0-1_all.deb; sudo dpkg -i python-hackclock_2.3.0-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
8 changes: 5 additions & 3 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
hackclock (2.2.2-1) stable; urgency=low
hackclock (2.3.0-1) stable; urgency=low

* Fixed improper escaping of a single-quote
* Migration to Raspian Stretch
* Reboot on kernel panic
* Fixed LICENSE to include copyright

-- DeckerEgo <[email protected]> Thu, 8 Jun 2017 21:30:00 -0500
-- DeckerEgo <[email protected]> Mon, 25 Sep 2017 23:00:00 -0500
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ X-Python-Version: >= 2.7

Package: python-hackclock
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, ntp, python-bottle, python-requests, python-httplib2, python-oauth2client, wiringpi, python-setuptools, python-pip, python-dev, python-dateutil, python-smbus, gstreamer0.10-x, gstreamer0.10-alsa, gstreamer-tools, gstreamer0.10-plugins-base, gstreamer0.10-plugins-good, gstreamer0.10-plugins-bad, python-gst0.10
Depends: ${misc:Depends}, ${python:Depends}, ntp, python-bottle, python-requests, python-httplib2, python-oauth2client, wiringpi, python-setuptools, python-pip, python-dev, python-dateutil, python-smbus, gstreamer0.10-x, gstreamer0.10-alsa, gstreamer-tools, gstreamer0.10-plugins-base, gstreamer0.10-plugins-good, python-gst0.10
Description: A hackable alarm clock for the Raspberry Pi
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.2.2.orig.tar.xz hack-clock/
tar Jcf hackclock_2.3.0.orig.tar.xz hack-clock/

cd hack-clock
dpkg-buildpackage -rfakeroot -uc -us
2 changes: 1 addition & 1 deletion 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.2.2',
version='2.3.0',
description='A hackable alarm clock for the Raspberry Pi',
author='DeckerEgo',
author_email='[email protected]',
Expand Down

0 comments on commit 86f59a8

Please sign in to comment.