Skip to content

Latest commit

 

History

History
76 lines (49 loc) · 1.67 KB

readme.md

File metadata and controls

76 lines (49 loc) · 1.67 KB

Lesson 04

You can now implement your projects with the help of other libraries/packages. You can improve or change these examples at any time.

Video Player

Please install OpenCV packages for Python first! Dependent to your Hardware, you will come quickly to the limits.

File: VideoPlayer.py

# show help
$ sudo python ./VideoPlayer.py -h

# execute with default
$ sudo python ./VideoPlayer.py

# execute with parameter
$ sudo python ./VideoPlayer.py --video '../video/video.mov'

Crypto LED

Please install requests packages for Python first! You need the API key from nomics.

File: CryptoLED.py

# show help
$ sudo python ./CryptoLED.py -h

# execute with default
$ sudo python ./CryptoLED.py [API KEY]

# execute with parameter
$ sudo python ./CryptoLED.py [API KEY] --currency=CHF
$ sudo python ./CryptoLED.py [API KEY] --currency=CHF --crypto='LTC,ETH,DOT'

Weather LED

Please install requests packages for Python first! You need the API key from openweathermap.

File: WeatherLED.py

# show help
$ sudo python ./WeatherLED.py -h

# execute with default
$ sudo python ./WeatherLED.py [ZIP CODE] [COUNTRY CODE] [API KEY]

# execute with parameter
$ sudo python ./WeatherLED.py [ZIP CODE] [COUNTRY CODE] [API KEY] --units 'imperial'

REST API Display

Please install Flask packages for Python first!

File: APIDisplay.py

# start server
$ sudo python ./APIDisplay.py

now via other terminal session

# do curl request
$ curl http://localhost:5000/?text=HelloWorld

Go Back