ads' corner

Weather Forecast in openHAB based on OpenWeatherMap, using Ansible

After setting up OpenWeatherMap in openHAB, I had another project on my list: send a forecast for the next day.

That is rather easy to do with a Cron rule.


Run your own Dynamic DNS server

Dyn, the company behind the widely known dynamic DNS service DynDNS, will shut down it’s free service effectively May 7th, 2014. Of course there are plenty of other free or freemium services out there, but history will repeat itself and these services will vanish over time, or change their business modell.

A while ago I spent an afternoon to implement my own dynamic DNS service.


Cleanup and reuse unused Copy&Paste disk space occupied by VMware

Whenever you Copy&Paste (or Cut&Paste) something into or from a VMware instance, the software first copies the files into a temporary directory and later on sends the copy/move job to Windows. Since the Windows task is asynchronous, VMware has no chance to find out when this actually finishes - so it is supposed to clean up this temporary directory at boot time.

However, waiting for the next reboot can clog up quite some disk space (when I develop something I often have to copy many files around between several virtual machines and the desktop) - despite that Windows still likes to BSoD on me from time to time. And sometimes VMware does not get the cleanup right at reboot and the files are still there.


sudo: sorry, you must have a tty to run sudo

It took me a while to find out, why this backup script would not start. Finally, I found this error message: sudo: sorry, you must have a tty to run sudo. The sudo call is required to execute clustat and find out, which machine is the current master.

sudo is configured to execute clustat without password and works fine on the command line - so what’s wrong here?


Manage Serendipity installations with Spartacus

I have to manage a few Serendipity (s9y) installations. Only one of them is my personal blog, the others are customer installations, all on different servers. Apart from new Serendipity versions, there’s also the problem with updated plugins. How can one know about available updates without opening each blog in a browser window, open administration, select Configure Plugins and check for new sidebar and event plugins?


Cron mails from root@localhost

If your cron keeps sending mails from root@localhost (which is bad, if the mails are forwarded to another system), check your mailserver settings. In Postfix, your $myhostname setting should point to an existing and valid domainname.