headlesspi
Goal: The purpose of this is to be able to access the raspberry pi through SSH, and avoid using the Gui interface of the Pi Zero W.
- The Pi Zero W is great, but is underpowered to the point utilizing the GUI interface for the OS is unrealistic and incredibly slow.
- In this Project I created a stock ticker that pull data using quandl api
Check out the Video of How It works!!
Tools:
- Python
- Numpy
- Tkinter
- Raspbery Pi -W
- Micro SD Card
- Etcher.io
Tips:
- SSH login for Raspbery Pi
- shutdown: sudo shutdown -h now
- to exit python type: exit()
- Setup at: http://desertbot.io/setup-pi-zero-w-headless-wifi/
Step 1:
ssh-keygen -R raspberrypi.local ssh pi@ramzipi.local
pass: enter your pass
setup at: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=35152
Step 2: Create a directory of files for python
$mkdir python (or whatever you want to name it)
Step 3:
From Mac in a separate terminal send files:
scp /Users/Ramzi/Documents/stockticker.py pi@ramzipi:python/ scp /Users/Ramzi/Documents/stockticker2.py pi@ramzipi:python/
Step 4: How to Run python file within raspberry pi:
python filename.py
Step 5: install quandl
you'll need to follow it in this order otherwise it won't work, installing quandl will probably work fine in OSX but there is some dependencies not included on Raspbian
- pip install numpy
- pip install pandas
- sudo apt-get install libssl-dev
- sudo apt-get install build-essential libssl-dev libffi-dev python-dev
- pip install cryptography
- pip install quandl
Future Improvements:
- Auto Run Python file as raspberry pi connects to the internet
- Show Opening and closing prices as time changes throughout the day
- Better parse the data frame to only display prices and tickers more fluidly