Author
Topic: ARDUINO UNO IS HERE! (Read 16561 times)

I know you might be able to buy a weather station cheaper (or not) but the fun is knowing that you BUILT IT!I did just that I took My arduino uno and got a few various sensors and plied the innerweb fer clews on how to post ("GET" to Wunderground).My results can be found here....http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KFLFORTM67Idea's inc, 5 VOLT SOLAR POWERED, GPRS for remote locals or just so you don't need your COMPUTERThe code below contains my rant's of what is what and why.If your reading this then you know what your doing.....++++++DON'T BURN THE HOUSE DOWN! (again)++++++lets get this party started and quit using AMERICAN remade Chinese stuff and build our own AMERICAN made Chinese stuff!!gotta go,I need a shot of Saki

/* This MODIFIED sketch connects to a website (http://www.rtupdate.wunderground.com) Using an Arduino Wiznet Ethernet shield To upload your weather conditions to wunderground.com, We make a standard HTTP GET request with the ID, PASSWORD and weather conditions as GET parameters. You must first create an account with wunderground for this to werk! Various notes throughout attempt to explain why i did what i did to make it werk. This sketch also incorporates an NTP RTC update code to make sure that the time is always correct and resets the RTC Soft or Hard to UTC ZULU Wunderground wants "UTC ZULU HOUR". Results for this can be monitored @ http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KFLFORTM67

Serial.println("Ready!"); Serial.println("End of the Setup Function");}void loop(void){ // Lets see what time the RTC is set at! DateTime now = rtc.now(); Serial.println("+++++++++++++++++++++++++"); Serial.println("RTC current TIME ");

fmbfla - In your sketch you have this comment:"Clear the rainin, windgustmph and rainSample every 10 loops. If you let the results run they will add up on wunderground and report constant additions to wing gust and rain fall. But you must report the readings for a few posts for wunderground to realize it is a real reading and not a false one."

Thanks for sharing your project especially the sketch. When we buy a weather station in the box, we never get exactly the features that we're wishing for. A DIY wx station gets closer to our needs providing we can create the software.Al

/* This MODIFIED sketch connects to a website (http://www.rtupdate.wunderground.com) Using an Arduino Wiznet Ethernet shield To upload your weather conditions to wunderground.com, We make a standard HTTP GET request with the ID, PASSWORD and weather conditions as GET parameters. You must first create an account with wunderground for this to werk! The anemometer/windvane are from ebay looke for a cheap one and upgrade it or make your own code for the Anemometer from: Authors: M.A. de Pablo & C. de Pablo S. on there home-made version af an anomometer Various notes throughout attempt to explain why i did what i did to make it werk. This sketch also incorporates an NTP RTC update code to make sure that the time is always correct and resets the RTC Soft or Hard to UTC ZULU to comp for time drift, (Wunderground wants "UTC ZULU HOUR" for RTU). Results for this can be monitored @ http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KFLFORTM67

#define DHTTYPE DHT22 // DHT 22 (AM2302)int buttonState; // the current reading from the input pinint lastButtonState = HIGH; // the previous reading from the input pin// Below is for bebouncing the rainBucket's hall effect switch. // I'm tring this out because from time to time, I get false hits due to something unknown at this time.// The following variables are long's because the time, measured in miliseconds,// will quickly become a bigger number than can be stored in an int.long lastDebounceTime = 0; // the last time the output pin was toggledlong debounceDelay = 10; // the debounce time; increase if the output flickers

ntp();//Set the RTC on first boot, it will fail the first time but Complets the second time}// ______________________________End of the Setup Function_______________________________void loop(void){ DateTime now = rtc.now();

Udp.begin(localPort);// Start the UDP on the selected port // Serial.println(); delay(100); int packetSize = Udp.parsePacket(); //<<<<<<<<<<<<NEW LINE HERE // send an NTP packet to a time server sendNTPpacket(timeServer1); // wait to see if a reply is available delay(1000); if ( Udp.available() ) { // read the packet into the buffer Udp.read(pb, packetSize); // New from IDE 1.0 <<<<<<<<<<<<<MODIFIED LINE

Where you reset every night: if (now.hour()==24)This will keep resetting for the entire hour, you'll lose any rain data during this time. It would be better if you did something like this:if (now.hour()==24 && now.minute()==0 && now.seconds() < 10 )

Also, for rainin it looks like you are accumulating rain for an hour, then resetting. I thought wunderground wanted a rolling 60 minute total. So you would always show the rain for the previous 60 minutes. This would be more difficult to code. Do you know which way is right?

SCOTTI'm still trying to figure out the best way to run it but I think it clears everything on the 24 hour, ..................and now I see your point for a full hour it will always reset until it reaches 01:00 hours..

client.print(now.hour()+5);// YOU MUST Add 5 hours to get back to UTC or Wunderground wont show RAPID FIREWhen the hour is 21, this will result in 21 + 5 = 26, which isn't a valid hour. Here's how I am doing it:

Also, I'm uploading some test data to wunderground and I can't get the "Precip Accum" to work. On my PWS it's displaying -9999.00 in. I though the dailyrainin field would populate this, but it doesn't seem to be working. Here's a sample URL

Thank you , I will correct that one .Are you attempting one of these too?whats your set up ?Drew

I have a wireless Davis Vantage Pro weather station and I'm decoding the wireless data (with a Moteino) and sending it to Weather Underground PWS. I've got my files on GitHub: https://github.com/Scott216/Weather_Station_Data. I'm still debugging it, but I think I'm close to having it working.

I have a wireless Davis Vantage Pro weather station and I'm decoding the wireless data (with a Moteino) and sending it to Weather Underground PWS. I've got my files on GitHub: https://github.com/Scott216/Weather_Station_Data. I'm still debugging it, but I think I'm close to having it working.

I finished debugging. Seems to work well. Go to github repo is you want to see my files.

I have a wireless Davis Vantage Pro weather station and I'm decoding the wireless data (with a Moteino) and sending it to Weather Underground PWS. I've got my files on GitHub: https://github.com/Scott216/Weather_Station_Data. I'm still debugging it, but I think I'm close to having it working.

I finished debugging. Seems to work well. Go to github repo is you want to see my files.

Fixed a bug in the rain counter. I assumed Davis ISS rain counter rolled over at 255, but it rolls over at 127.In weather underground, I was getting rain accumulation jumps of 1.29 inches (129 pulses). It's all fixed now and uploaded to GitHub.