Skip to content

lopesgon/word-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word Clock

DIY Wordclock - A Python Flask based project

This is part of a diy project of building a wordclock with NeoPixels.

Important about NeoPixels

This project works with Adafruit dependencies. Thus you may use compatible leds.

  • “NeoPixel” is Adafruit’s brand for individually-addressable RGB color pixels and strips based on the WS2812, WS2811 and SK6812 LED/drivers, using a single-wire control protocol.

  • NeoPixels don’t just light up on their own; they require a microcontroller (such as Arduino) and some programming.

## Important about electric power

Do not forget electrical projects imply working with 220v power that can be letal !

Each RGB Led requires approximately 5v 0.6a of power at full power (bright white).

E.g. wiring & power supply

  • 5v 10A Power supply
  • Soldered wires to power up RaspberryPi & Leds with a single power supply

Installing / Getting started

To start your server, execute Makefile command lines here above.

make install
make run-debug

Your server will start serving at http://127.0.0.1:5000

Initial Configuration

In order to install and run project, you must have these versions installed:

  • python3.8
  • pip3.8
  • setuptools

If needed, you can install global environment requirements by running pip install -r requirements.txt

Fill in with needed global dependencies ./requirements.txt.

Developing

Starting developing isn't currently available but be pleased to fork this project and open pull requests :)

git clone https://github.com/lopesgon/word-clock
cd word-clock/
make install
make run-debug

Just start coding.

Building

If you need to rebuild your project, simply follow the steps below:

make clean
make install
make run-debug

Your application will be cleaned the started back again serving on port :5000.

Running with PyCharm Community Edition (CE)

Configure Python Interpreter

If it wasn't automatically generated when project was first opened with PyCharm, you must configure a python interpreter to run this project.

Go to Preferences (PyCharm -> Preferences...) and in Project -> Python interpreter, show all and add a new Virtualenv Environment with default settings.

PyCharm CE - Python interpreter

Configure Flask

Open the project and configure a new configuration, go to Run -> Edit Configurations

Add a new Python configuration and set Script path with flask binary from project generated virtual environment ./venv/bin/flask

Add Environment variables:

  • FLASK_APP=main.py
  • FLASK_ENVIRONMENT=development <-- set dev to avoid double threaded clock (known issue due to flask debug mode)

IMPORTANT - Working directory must be the sources folder ./app and not the ./venv/bin folder

PyCharm CE - Flask configuration

Deploying / Publishing

  • Todo

Features

What's all the bells and whistles this project can perform?

  • Turn on/off LED ws2812b based on a matrice
  • Some other stuff coming..

Configuration

  • Todo

Argument 1

  • Todo

Contributing

Be pleased to fork this project and build on top of it.

Do not hesitate to open pull-requests.

Links

Even though this information can be found inside the project on machine-readable format like in a .json file, it's good to include a summary of most useful links to humans using your project. You can include links like:

Licensing

One really important part: Give your project a proper license. Here you should state what the license is and how to find the text version of the license. Something like:

"The code in this project is licensed under MIT license."

About

Word-Clock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors