Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

Thank you Adafruit for CC3000 Shield!
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Thank you Adafruit for CC3000 Shield!

by tech500 on Thu Feb 27, 2014 11:01 pm

Webserver.JPG
Screen capture of dynamic webpage.
Webserver.JPG (40.09 KiB) Viewed 1184 times


I have a sketch that records weather observations --Humidity, Temperature, and Barometric pressure. Data is recorded in 15 minute intervals; Date & Time stamped, Displayed on Serial Monitor, Logged to microSD card, and Displayed on a Dynamic, Webpage!

I had lots of help and this was a great learning experience. Attaching sketch with the hope it will help others with their projects.

Thank you Adafruit for the resources, products, forum, and learning tutorials!!!

*** Update 03/03/2014: Revised sketch for better download performance. Not a complete solution. Need error checking to make sure webFile is only opened once.


William
Attachments
CC3000_Wifi_Weather_Webserver_Rev3.zip
(6.49 KiB) Downloaded 107 times
Last edited by tech500 on Mon Mar 03, 2014 10:22 pm, edited 5 times in total.

tech500
 
Posts: 189
Joined: Wed Dec 04, 2013 3:53 pm
Location: indianapolis, IN

Re: Thank you Adafruit for CC3000 Shield!

by adafruit_support_bill on Fri Feb 28, 2014 6:45 am

You are welcome! :)

adafruit_support_bill
 
Posts: 83771
Joined: Sat Feb 07, 2009 10:11 am

Re: Thank you Adafruit for CC3000 Shield!

by kazhugu on Sun Mar 16, 2014 8:37 am

Hi William,

I have been trying to run CC3000 as a web server that would just serve a Hello World html page, but haven't been successful. In the project you have uploaded, are you using it as a web server? Will it run with the standard Adafruit library or did you have to make any changes? I'd appreciate if you could let me know.

Thanks,
Bala
kazhugu
 
Posts: 5
Joined: Fri Feb 21, 2014 12:39 am

Re: Thank you Adafruit for CC3000 Shield!

by tech500 on Thu Apr 03, 2014 2:18 pm

@Bala

I believe that I used only standard libraries; sketch source has download links to libraries.

Suggestions welcome for improvements.

Latest improvements; CC3000_Weather_Observations_Webserver.zip

William
Attachments
CC3000_Weather_Observations_Webserver.zip
(6.16 KiB) Downloaded 60 times

tech500
 
Posts: 189
Joined: Wed Dec 04, 2013 3:53 pm
Location: indianapolis, IN

Re: Thank you Adafruit for CC3000 Shield!

by tech500 on Wed Apr 09, 2014 11:14 pm

Just found this topic: viewtopic.php?f=25&t=46805 and have implemented adafruit_support_mike's code for improved, buffered client.write.

Thank you adafruit_support_mike!
Attachments
CC3000_Weather_Observations_Webserver.zip
(6.29 KiB) Downloaded 72 times

tech500
 
Posts: 189
Joined: Wed Dec 04, 2013 3:53 pm
Location: indianapolis, IN

Re: Thank you Adafruit for CC3000 Shield!

by adafruit_support_mike on Thu Apr 10, 2014 1:20 am

You're welcome!

adafruit_support_mike
 
Posts: 64491
Joined: Thu Feb 11, 2010 2:51 pm

Re: Thank you Adafruit for CC3000 Shield!

by tech500 on Fri Nov 14, 2014 11:00 pm

Some time has passed; thought I would pass along latest update to my project.

Project now has a Two line LCD Display. Every 15 minutes Data collection is updated, time stamped, displayed -on Serial Monitor and on Dynamic Web page.

There was a download link for the Data collection; I have removed it while I search for a way to do download error checking, Download link is commented out; but still present in sketch code.

Posting project code; hoping others will find it helpful.

William
Attachments
LCD_CC3000_Weather_Observations_Webserver.zip
Project file; latest update
(7.87 KiB) Downloaded 52 times
Last edited by tech500 on Sun Nov 16, 2014 1:02 pm, edited 1 time in total.

tech500
 
Posts: 189
Joined: Wed Dec 04, 2013 3:53 pm
Location: indianapolis, IN

Re: Thank you Adafruit for CC3000 Shield!

by adafruit_support_mike on Sat Nov 15, 2014 4:45 pm

Neat! Thanks for posting. ;-)

adafruit_support_mike
 
Posts: 64491
Joined: Thu Feb 11, 2010 2:51 pm

Re: Thank you Adafruit for CC3000 Shield!

by tech500 on Mon Oct 19, 2015 2:55 pm

Current sketches of the project have been posted to GitHUB:

https://github.com/tech500

There are two versions; an Ethernet (wired) version and an Adafruit CC3000 Shield (wireless) version of the project.

Description of project: https://forums.adafruit.com/viewtopic.php?f=22&t=73426

William

tech500
 
Posts: 189
Joined: Wed Dec 04, 2013 3:53 pm
Location: indianapolis, IN

Re: Thank you Adafruit for CC3000 Shield!

by Matthieu.stb on Mon Oct 19, 2015 4:13 pm

Hi William,

Thanks you very much for sharing your project ! That's very helpful for the community !

It could fix my trouble (https://forums.adafruit.com/viewtopic.php?f=22&t=81884&p=415784&hilit=cc3000#p415784) ! Just to confirm, thanks to your code you can connect to your HTTP server with a GET request (in order to get a streaming of the log file if I understood correctly) as many times as you want without crashes ? I will implement your way of streaming hoping I get a reliable system.

Matthieu
Matthieu.stb
 
Posts: 17
Joined: Mon Sep 09, 2013 9:00 am

Re: Thank you Adafruit for CC3000 Shield!

by tech500 on Mon Oct 19, 2015 10:19 pm

@ Matthieu

Just to confirm, thanks to your code you can connect to your HTTP server with a GET request (in order to get a streaming of the log file if I understood correctly) as many times as you want without crashes ?


There have been improvements over time; I can consistently download the data log file. No guaranties of 100% reliability; things like wireless inference, provider outages,. unintentional multiple clicks on a link, an aborted download, can cause sketch to come to halt and more... Currently, I am running the Ethernet version of my project.

Temporary link to live project, website:

http://tinyurl.com/Weather-server

IP Address will be logged. Firefox browser used in developing project.

William

tech500
 
Posts: 189
Joined: Wed Dec 04, 2013 3:53 pm
Location: indianapolis, IN

Please be positive and constructive with your questions and comments.