added standalone script for weatherstation and bugfix.