Tag: python

Polygon | new version 2.0.6 and 3.0.6

Polygon logoI just released the new version of my packages for polygon handling with Python 2 and Python 3. There are only small changes, the most important ones are:

  1. moved development and downloads from GitHub to bitbucket after GitHub closed the download area,
  2. renamed the packages from Polygon to Polygon2 and Polygon3 to avoid confusion, especially on pypi,
  3. added a Douglas-Peucker simplification routine to Polygon3.

From now on I will implement new features in Polygon3 while Polygon2 will receive bugfixes only.

Binary packages for Windows will follow. I currently can’t compile x64 binaries for Python 3.3 because neither my Visual Studio 2008 nor Visual Studio 2010 Express supports this. I would appreciate any help for this or the contribution of packages.



DyMat | HDF5 export and other Modelica/Python projects

DyMat_logoAfter the request of a user I added a very simple HDF5 export to my DyMat package. The code is already in the github repository and will be part of the next release.

If you are interested in the handling of Modelica simulations with Python you should also have a look at these packages:

Happy new year!

SunnyWebBox | version 0.3 with UDP and Python 3

I’ve updated the code for my python package to communicate with a Sunny WebBox. The two most important changes of version 0.3 are:

  • support for UDP stream communication
  • support for python 3.x

The communication protocols are documented very poorly. I had to use trial-and-error a lot and collect information from different sources to get this working. The UDP-based protocol finally works but seems to be pretty weak.

The package is used for several months now to monitor a photovoltaic plant, but was still not tested with a wider range of devices. Use It with care!

Polygon | Douglas-Peucker and Future Development

Polygon logoThe Polygon3 branch now includes an implementation of the Douglas-Peucker algorithm for line simplification by reducing the number of points. It is already included in the repository and will be part of the next release.

Now that python 3.3 is out I decided to focus much more on python-3. This has some impact on my development of python modules. Bugs in the Polygon2 branch (for python 2.x) will be fixed in the near future but new features will only be implemented in the Polygon3 branch.

Polygon | more Windows binaries

Polygon logoI just added more Windows binaries of my python package for polygon handling to the download areas on GitHub. You can download the following variants:

  • for Python 2.7 or Python 3.2 (Polygon 2 / Polygon 3)
  • for 32 or 64bit Windows (win32 / win-amd64)
  • with or without support for numpy compiled in (version 1.6.2)

Please report any problems you have with the packages.

Polygon | new versions 2.0.5 and 3.0.5

Polygon logo

I released new versions of my python package for polygon handling. The changes contain only bug fixes, no new features were added:

  • fixes some issues with recent versions of NumPy
  • fixes some issues with recent versions of Python 2 and 3
  • NumPy support is enabled by default now

Source and binary Packages for Python 2 and 3 will be available on GitHub and PyPI soon.

SunnyWebBox | python module for RPC

The main building of the UdK Berlin now has a solar plant (photovoltaic) mounted on the roof. It’s equipped with a monitoring system: a Sunny WebBox made by SMA Solar Technology. This box offers browser-based access to the realtime data and a RPC system (remote preocedure calls). Although documentation exists, it was not easy to implement the RPC in python. The documentation is not complete, I had to analyse the implementations of other tools to made my software working.

Finally here it is: SunnyWebBox – a python module to communicate with a Sunny WebBox

At this time there’s no documentation for my module. The development of this module will be driven by my needs and public demand – if there’s any. The project is hosted on github.


The Sunny WebBox (made by SMA Solar Technology) is a monitoring system for solar plants which offers RPC (remote procedure calls) to access the data of the box. These calls are made of JSON objects which are transported by HTTP or UDP.

This python module provides a classes that can be used to communicate with a Sunny WebBox. You can use the classes in your own code. A small sample program is used if you run the module as a script. The first parameter is the hostname or IP of the box. A password can be provided with an optional second parameter.

python SunnyWebBox.py “foobar”

There’s no documentation yet. You should try to read and understand the code of the class and the sample program to get an idea of the data structures.

The RPC API is documented here, but the documentation is not complete. I had analyse other tools to get some hints on how to get this working.


The development of this package is hosted on bitbucket.org, you may browse and download the source code and documentation there.