View previous topic :: View next topic |
Author |
Message |
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Mon Aug 03, 2015 5:54 pm Post subject: |
|
|
hello Ben,
well I lost ! you send yours before me, but my approach is very different !
My project is nearly finish the weather station needs some modifications (very few )
And then I have to translate it in english !
but now 15 days of vacation ! |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Mon Aug 03, 2015 6:07 pm Post subject: gauges... |
|
|
Very nice. Would like to see the code for the gauges.
Have a nice holiday
Ben Zijlstra |
|
Back to top |
|
|
aphawk
Joined: 23 Jan 2010 Posts: 168 Location: Brazil
|
Posted: Tue Aug 04, 2015 3:44 am Post subject: |
|
|
Ben,
Very nice project !
This API is very interesting, and the ESP8266 make our programs be very small.
In fact, I'm using one ESP8266 to make an remote Power Off / delay 10 seconds / Power On again , to reset my cable modem that hangs sometimes and are located in other room, I use my Ipad in my Wi-Fi to make this .
Thank you again for share this new project !
Duval,
Your Gauges are very nice too, what display you are using ?
Paulo |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Tue Aug 04, 2015 8:12 am Post subject: |
|
|
to Ben
No thanks,
my weather station is a part of a great project that will unveil in september... secret!
jp |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Tue Aug 04, 2015 8:34 am Post subject: |
|
|
To Ben again ! you know I'm a clown !
yes I would like to share my program but it is not completely finish I have to clean, to translate, please wait september !
|
|
Back to top |
|
|
aphawk
Joined: 23 Jan 2010 Posts: 168 Location: Brazil
|
Posted: Sun Aug 09, 2015 3:09 am Post subject: |
|
|
Duval,
Well, I like surprises !!!!!
Waiting for September !
Paulo |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Aug 18, 2015 10:15 am Post subject: |
|
|
Hello Ben & Theo.
Good to see your summer project
You guys always have cool projects. Thanks for sharing your project. _________________ Mark |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Sep 06, 2015 3:00 pm Post subject: Weatherstation with reset Nodemcu |
|
|
Weatherstation is running very well but I would like to harden the code a bit.
Now the code is running with optimal conditions, in reach of an Access Point.
But what if there is an internet connection problem?
Have added a timer/counter that is running for 8 minutes en through Portb.4 of the Arduino Mega sends a reset to the Nodemcu.
This is a small piece of electronics between the Arduino Mega and the Nodemcu
Have fun
Ben Zijlstra
Last edited by bzijlstra on Tue Jan 05, 2016 8:32 pm; edited 1 time in total |
|
Back to top |
|
|
Evert :-)
Joined: 18 Feb 2005 Posts: 2156
|
Posted: Sun Sep 06, 2015 4:28 pm Post subject: |
|
|
Hi Ben,
Nice project.
It would be nice if you can also reset the weather from rain to sunshine.
Look outside and you know what I mean. _________________ www.evertdekker.com Bascom code vault |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Sep 06, 2015 5:44 pm Post subject: Will do.. |
|
|
Will add that option:
Code: | Call replace_rain_in_sunshine() |
Give me a few days..
Have fun
Ben Zijlstra |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Tue Jan 19, 2016 3:50 pm Post subject: |
|
|
looks great Ben. Looking forward to the update. _________________ Mark |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Fri Jan 22, 2016 5:13 pm Post subject: Update |
|
|
Lets call it Weatherstation 3.0
Same hardware, just replace the ili9327 400x240 display with an HX8357B or C display. The Bascom-AVR-code is written for the HX8357C (480x320 pixels).
The nodemcu should point to another provider. Instead of a proxy/parser server in Switserland, the nodemcu must point to a proxy/parser in Holland.
We will be using a free service, there is an extended service with forecast for a week, moonphase and all kind of extra options, details later on.
You should have a API-key as mentioned before from www.forecast.io
The code for the nodemcu:
Weatherstation.ino
WeatherClient.cpp
WeatherClient.h
You will find it in the ZIP-file
If the nodemcu gets the weatherinfo you will see this on the serial port. You can test this function without the Arduino:
Quote: | CURRENT_DATETIME=2016-01-20 15:33:56
CURRENT_TEMP=3.96
CURRENT_ICON=partly-cloudy-day
CURRENT_SUMMARY=Mostly Cloudy
CURRENT_OZONE=394.96
CURRENT_WINDSPEED=4.11
CURRENT_WINDBEARING=250
CURRENT_HUMIDITY=86.0
CURRENT_DEWPOINT=1.76
CURRENT_PREC_INTENS=0.0
CURRENT_PREC_PROB=0.0
CURRENT_TEMP_APPARENT=0.51
CURRENT_PRESSURE=1018.94
CURRENT_CLOUDCOVER=65.0
closing connection
|
In the URI that is send to the proxy/parser you can put a &lang=option, or, when you ommit it, you will get the summary in Dutch.
&lang=en will put the summary in English.
Check
https://github.com/darkskyapp/forecast-io-translations/tree/master/lib/lang
for all possible languages.
In the zip-file also all Bascom-AVR files, images, drivers, fonts etc. The HX8357B/C display driver has been made by HKipnik.
The code is working, the nodemcu is been reset by the Arduino every 8 minutes. If you take the weatherstation away from the location and re-enter the location again, it will automatically attach again to the wireless network, and will try that every 8 minutes.
Some considerations:
Windbearing is now in degrees. Perhaps I will change that to N, S, W, E. Have to add these characters to digital20x32.font which now has only the 7-segment characters.
And have to check the length of the summary-text. Will do some small correction later on. Perhaps some text don't fit in the single line reservated now for the summary. BTW all English text and the translation to different languages can also be found at
https://github.com/darkskyapp/forecast-io-translations/tree/master/lib/lang You have to pick the languages you would like to use.
The plans now are to make a weatherstation with two locations, perhaps 'house' and 'boat'. And a bigger version on a 7 inch display.
Have fun
Ben Zijlstra
Theo Kleijn
Edit: something went wrong with the ZIP-file, so we uploaded a new one. |
|
Back to top |
|
|
|