add heartbeat function for weather module.