-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install with setuptools aka pip #5
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
# Smart-Mirror | ||
Raspberry powered mirror which can display the news, weather, and time. | ||
|
||
## Installation and Updating | ||
Installation is simple as running the following command. | ||
|
||
> sudo pip install git+https://github.com/HackerHouseYT/Smart-Mirror.git | ||
|
||
## Running | ||
To run the application run the following command in this folder | ||
> python smartmirror.py | ||
|
||
## Demo and Build Instructions | ||
[![Link to youtube how-to video](http://i.imgur.com/cMyaSHT.png)](https://youtu.be/fkVBAcvbrjU) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/python | ||
|
||
import os | ||
import sys | ||
from setuptools import setup, find_packages | ||
|
||
# Must be ran as root or as sudo | ||
if os.getuid() != 0: | ||
print('ERROR: Need to run as root') | ||
sys.exit(1) | ||
|
||
# Install the requirements if the system does not have it installed | ||
print('INFO: Checking and installing requirements') | ||
os.system('! dpkg -S python-imaging-tk && apt-get -y install python-imaging-tk') | ||
|
||
# Run setuptools for pip | ||
setup( | ||
name='smartmirror', | ||
version='1.0.0', | ||
description='Raspberry powered mirror which can display news, weather, calendar events', | ||
author='HackerHouse', | ||
url='https://github.com/HackerHouseYT/Smart-Mirror', | ||
install_requires=['requests', 'feedparser', 'Pillow'], | ||
packages = find_packages(), | ||
) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the appropriate place to ask users where they'd like the weather/news from. Modifying scripts is a bit tedious in my opinion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its up to @atainter, I do like not editing config files and run everything from CLI. Perhaps someone could add something like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
pyhton smartmirror.py --token TOKEN_KEY
would be tedious if you have to append the token every time you run it. Let's keep it as is for now.