Assist the development of apps for OnSign TV platform by running them locally.
Project description
OnSign TV App Simulator
This simulator makes it easier to develop OnSign TV Apps by testing your configuration locally, without having to upload your HTML to OnSign TV every time you make a change while developing your app.
Installing
This simulator requires Python 3.7 and up. You can optionally install ffmpeg to determine the duration of video and audio files, but that is not needed unless you plan on using those attributes on your app. If you want ID3 information for audio files, you'll also need to install mutagen.
Installing from PyPI
You can easily install it from PyPI:
pip install onsigntv-app-simulator
Installing from this repo
You can also install it from this repo.
After cloning or downloading this repo, just enter the folder, create a new environment and install it.
python3 -m venv env
. env/bin/activate
python setup.py install
Using the Simulator
After installing, running the simulator is very simple. The following command should be in your path:
onsigntv-app-simulator path/to/apps
If you don't specify a path, the app simulator will use your current working directory.
After running, open your browser and navigate to http://127.0.01:8080/. Click on your template file, fill in the options and start developing.
The app simulator will automatically track files – like images, CSS or Javascript - used by your app. If any file used changes the app will be automatically reloaded.
Heads Up! If you installed the simulator in a
virtualenv
the command should be running with thevirtualenv
activated!
Report any issues you find here and keep on working on your apps!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for onsigntv-app-simulator-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9bffb36a2f94072778e665bc3857962467f85a86f6e80899ac563a3b5fc16f4 |
|
MD5 | 39bc4942b490f90f478693a2fdd93569 |
|
BLAKE2b-256 | 5107aca6acc5d8239445651f5afcb6f0498a2b5d0285e0e0ff89389b8a3d6a68 |
Hashes for onsigntv_app_simulator-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e96c4d8a54cede00b3ec7937aa4e87c6e39466486dc23920a2e1e40cacb5349 |
|
MD5 | 6812f89cd9fe63a64f4541c93740dcac |
|
BLAKE2b-256 | e847d11ed495bea49bfccb30eac69fa4816cc8eb7cba58b73c0a2b67e77f189a |