Metadata-Version: 2.1
Name: mosaik-web
Version: 0.3.0
Summary: A simple simulation visualization for the browser.
Home-page: https://bitbucket.org/mosaik/mosaik-web
Author: Stefan Scherfke
Author-email: mosaik@offis.de
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering
License-File: LICENSE.txt
License-File: AUTHORS.txt

mosaik-web
==========

A simple mosaik simulation visualization for web browsers.


Installation
------------

::

    $ pip install mosaik-web


Add mosaik-web to sim_config:

::

    sim_config = {
        'WebVis': {
            'cmd': 'mosaik-web -s 127.0.0.1:8000 %(addr)s',
        },
    }

Start mosaik-web without SSL:

::

    webvis = world.start('WebVis', start_date='2014-01-01 00:00:00', step_size=60)

Start mosaik-web with SSL:

::

    webvis = world.start('WebVis', start_date='2014-01-01 00:00:00', step_size=60, activate_ssl=True, keyfile=keyfile, certfile=certfile)



Changelog
=========

0.3.0 – 2021-06-18
------------------

- [NEW] Allow to activate SSL.
- [CHANGE] Updated to mosaik-api 3.0.


0.2.2 – 2019-11-01
------------------

- [CHANGE] Compatibility to networkx 2.4

0.2.1 – 2017-12-08
------------------

- [FIX] Some necessary bug fixes for the cooperation with mosaik.


0.2 – 2014-10-31
----------------

- [CHANGE] Moved configuration from separate config file to extra methods
  ``set_config()`` and ``set_etypes()``.
- [CHANGE] Tolerate entities for which no etype-config is provided.
- [CHANGE] Removed real-time capabilities since mosaik offers this now.
- [FIX] Catch OSErrors for websockets to make them not crash the whole
  simulation.


0.1.6 – 2014-09-22
------------------

- [NEW] Raise an ``AssertionError`` if an entity type is not listed in the
  config file.
- [FIX] The progress bar no longer makes strange jumps.


0.1.5 – 2014-09-22
------------------

- [CHANGE] Updated to mosaik-api 2.0.


0.1.4 – 2014-07-31
------------------

- [CHANGE] Updated to mosaik-api 2.0a4.


0.1.3 – 2014-06-26
------------------

- [CHANGE] The timeline diagram now looks way nicer.
- [CHANGE] Adopted latest changes of the mosaik API.


0.1.2 – 2014-05-05
------------------

- [FIX] Updated ``get_related_entities()`` call for mosaik 2.0a2.


0.1.1 – 2014-03-27
------------------

- [FIX] Include html/css/js files in the package.


0.1 – 2014-03-27
----------------

- Initial release


Authors
=======

The mosaik web visualization was created by Stefan Scherfke and Gunnar
Jeddeloh.


