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.

Reading Buttons of a LCD Keypad with Arduino

The LCD Keypad shield from dfrobot is a nice way to get a display and some buttons for an Arduino board. Unfortunately the reading of  button presses does not reliably work with the standard software (LCDKeypad). The alternative keygrabber library seems to be incomplete and did not work for me. The dfrobot forum lists some interesting approaches, so I decided to make my own library.

The LCDButtons library is hosted on github. It can be used as a replacement for LCDKeypad. The button() method works different: if a value is read that indicates a key press the reading is repeated until two consecutive values make the same key. The delay between the readings can be configured. Optionally the function can wait until the button is released.

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.

Talk at the Modelica Conference 2012 in Munich

ncDataReader2 Logo

I will have a presentation and talk at the 9. International Modelica Conference in Munich at 3.-5. September 2012. It will focus on:

  • ncDataReader2  - my file reader library,
  • its usage from Modelica and
  • its application in recent research projects.

Version 2.3.0 is out now, but  I hope to get some improvements done til september. The paper and slides of the talk will be linked here when available.

ncDataReader2 | version 2.3 coming soon

ncDataReader2 LogoVersion 2.3 of my data reader library is coming in the next days. Here's a list of recent improvements and bug fixes:

  • added CosWin approximation
  • added constant extrapolation
  • example GenerateBigFile is much faster now
  • fixed a bug with Akima and default extrapolation near the right border that existed for a long time
  • added functions to dump access statistics, useful to optimize paramters and caches
  • added error dialog for Win32: now you get error mesages within Dymola and other software that  hides stdout from the user
  • added command line client ncdr2Dump1D to dump interpolated values, very useful for testing
  • build with netCDF 4 on Windows including DAP supported
  • documentation updated to include the new features

A source package and binary package for Windows will be uploaded to GitHub within the next days.