Prediction of wind and solar energy is deemed one of the most important contributory factors towards sustainability. Along the same lines, to harvest energy and guarantee the safety of a place, accurate information about the future of the region is needed. To achieve the target, this paper predicts solar irradiation and wind velocity time series by two robust artificial intelligence algorithms which are called Wavelet and ANFIS (Adaptive Network Fuzzy Inference System). The data used for the predictor system are obtained from a meteorological station in Tehran, Iran. The results show that a) robustness of both algorithms for prediction of wind velocities and solar irradiation b) superior strength of Wavelet to ANFIS for prediction of solar irradiation c) ANFIS makes a better prediction of Wavelet for wind velocities.