UPDATE (2020-12-19): Jack from comments sent me new version that works, with slightly changed configuration for WAMP. Also notice that provider is now weatherbit.io. You need new api key. If you find any issues or have updates feel free to open issue in github’s issue tracker! Please no direct email contact. Code is up in Github repo.
UPDATE (2020-12-19): Servers are definitely offline. If someone has working copy of my project, please send it, so I can update repository on GITHUB.
UPDATE (2018-01-01): I have found out that the same set of scripts should be working also for “5-day forecast” application.
It seems that the *.netinfostation.com servers are offline. And so is the “4-day forecast” application. This probably leaves very many devices non working in the world. (sad)
I don’t like to have/see device that doesn’t work just because some guy decided to turn off their computer. So i have decided to write my own weather server. Details about how i have figured the format are <here>. (Updated: i have released most of the work, since manufacturers don’t care anymore)
Original server that was used server1.netinfostation.com. First thing to do, is to redirect all traffic to this server to the local computer. On windows/linux this is quite easy. Just add entry into /etc/hosts file. On windows this file is located here:
%systemroot%\system32\drivers\etc\hosts
Edit as administrator and add line at the end:
127.0.0.1 server1.netinfostation.com
Second you will need some server. I used WAMP (www.wampserver.com) which comes with apache and php (and mysql) in single package. Easy to install and setup.
Third thing you need is to download the set of scripts from my github repo and place them into c:\wamp\www directory.
https://github.com/robots/4dayforecast/
After triggering refresh in the application, the scripts should retrieve the data from Weatherbit.io and serve them to the 4-day forecast application – and to your weather station.
If you intend to use this I suggest you register at weatherbit.io and add your own api key into the getweather.php script.
If you find this useful leave a comment or something :-)
134 comments
Comments feed for this article
December 24, 2017 at 22:17
drp
Hi It looks like on 16.12.2017 they finally pull the plug on server1.netinfostation.com. I have tried your script and finally it kind of works. Thanks for that!
Problems I had:
1. mcrypt functions are no longer a part of PHP 7.2 and I was not able to properly replace it with openssl_encrypt() call. I had to use PHP version 7.1.12
2. openweathermap.org no longer responds to calls without api key and even after registration it does not allow calls for daily forecasts (0 calls allowance for api keys from free accounts).
So, anyway, thanks
December 24, 2017 at 22:50
Michal
Hi,
there is a bug in the code , and i don’t remember where :-) I dont have access to the device anymore, so i am not maintaining the code anymore. You should be able to add new feed to the php file , as it is pretty straight forward. Any weather provider should work as long as you can parse the data in php and put them in right form.
December 24, 2017 at 22:56
Michal
have you tried this ? https://stackoverflow.com/questions/39467008/use-openssl-encrypt-to-replace-mcrypt-for-3des-ecb-encryption
December 25, 2017 at 11:13
drp
Yes but it produced different output somehow, maybe I try again later. But now it works with mcrypt and some googled openweathermap key. I like how it is optimistic, always sunny and no rain :D
December 25, 2017 at 11:19
drp
Anyhow, how did you know how the data should be formed and do you have any additional info? Like how to set weather icon for example?
December 26, 2017 at 10:51
Michal
The original application is written in .net. I spend lot of time decompiling the application using https://www.jetbrains.com/decompiler/ and using https://github.com/icsharpcode/ILSpy
It would also be possible to recompile the application, change the weather source and skip wamp server all together. But i have no experience in .net programming at all.
December 26, 2017 at 12:56
drp
Nice work then! Not an easy task. Thanks again :)
December 26, 2017 at 16:53
Michal
Could you share your work once you get this working with PHP7 ? I would like to update the github repo to make the changes available to the world for others to use.
January 8, 2018 at 18:36
John McMullen
Mi hal
Jack and I have finished the “getweather” php and its working perfectly with weatherbit.io . Please advise as to where you want it sent to archive.
Thanks
John KG6INX
December 29, 2017 at 15:23
drp
So, as I suspected, it was a detail, I just made a pull request.
December 31, 2017 at 03:33
Jack
Moje $data vypaji takto:
forecast:@105976783#2017-12-31*2.72*7.51*0*SW*0*0*4.77*d000*0*0*0*0*84#2018-01-01*3.09*3.54*0*WSW*0*0*5.71*d000*0*0*0*0*87@uvi:@105976783#2017-12-31*0#2018-01-01*0#2018-01-02*0#2018-01-03*0#2018-01-04*0#2018-01-05*0#2018-01-06*0#2018-01-07*0#2018-01-08*0#2018-01-09*0@@sun:@105976783#2017-12-31*06:00*18:00#2018-01-01*06:00*18:00#2018-01-02*06:00*18:00#2018-01-03*06:00*18:00#2018-01-04*06:00*18:00#2018-01-05*06:00*18:00#2018-01-06*06:00*18:00#2018-01-07*06:00*18:00#2018-01-08*06:00*18:00#2018-01-09*06:00*18:00@
December 31, 2017 at 23:57
John McMullen
Jack,
Is this a default format for the EC-WS115 or drp’s 4 day, or what? There’s 10 days there
John
January 1, 2018 at 15:53
Michal
both 4day forecast app and 5day forecast app receive 10day forecast from the server. They both use the same feed. only difference is that one sends 4 days to weather station and other 5days.
January 1, 2018 at 22:44
Jack
I’m sorry for long time response. The data I sent generates getweather.php script before encrypting. I modified the script for use with OWM api 5 day / 3 hour forecast. Original script fetches data using 16 day / daily forecast api but this is paid now ($40 per month). When 4-day forecast application tries to update forecast it ends with .net error “Input string was not in a correct format”.
December 31, 2017 at 07:13
John McMullen
Spent a day or two fiddling with the server, your php files and several tcp tools watching what redirection was happening. I was not able to achieve a connection via getweather.php. Reinserted your canned data and set my location to match but no joy.I have 3 of the EC-WS115 and threw in the towel. Sad SI just screwed its customer base. There’s alot of these units out in users hands. I wish I could rebuild the code to use openweather. Real straight forward api.
Just not a .net guy.
Jack KG6INX
Lancaster, Ca
January 1, 2018 at 19:24
John McMullen
Morning Michal,
Please forgive my ignorance. This is my clawing and scratching. Got my free 5day acct & api_key. Installed in getweather.php.
I installed the server v2.4.24. Set PHP to v7.1.9. Didn’t see 7.1.12 as you mentioned. HTTP decompiled your php scripts, then PHP decompiled the result. Kept everything within the ?php ?. So the scripts are in plain view.
Used dotPeek and worked 5-Day main.cs function pluginweather and stepped thru the parsing of the inbound weather data down to byte 45 where your forecast data example shows “SW”. Looks to be aligned.
So today its try it out and see if I get data displayed.
Tnx for all your help!
73’s
Jack KG6INX
January 1, 2018 at 19:46
Michal
Great to hear you got this thing working :-)
January 2, 2018 at 00:20
John McMullen
Michal & all,
After pulling hair I see that the 5day and 16day returned formats are different enough that the getweather parsing fails. And too boot the 16 day (daily) is not free anymore, now costing $40 a month. So a rewrite of the parsing is required.
Jack
January 2, 2018 at 01:58
John McMullen
Another update. 5day data return is filled with a single days reading in 3 hour blocks. The later in the day the more blocks. Multiple days are considered “bulk”, formatted differently, and are not free either.
January 2, 2018 at 02:37
Jack
I wrote about different data formats in my first post (31.12.2017) but it seems this one is missing in the comments (maybe for language – I wrote it in czech). I modified original “getweather.php” for 5/3 api with this output: For each day it finds max/min temperatures (8 records for a day with exception for today) and shows foreast for 12 o’clock. For “today” – after 12 o’clock it shows forecast for nearest hours (15., 18., 21. hour).
I found another forecast server with 16/daily api for free with different data format, of course. I’ll try modify the script tomorrow. FYI: https://www.weatherbit.io/api/weather-forecast-16-day
January 2, 2018 at 03:39
John McMullen
Was just poking around here:https://www.apixu.com/doc/request.aspx9
No city id, rather zipcode or name. Very slow return. But does provide 10 day forecast free. Parser will need rewrite.
January 2, 2018 at 02:25
Kyle
Hey everyone who’s working on a solution here, would you mind commenting on this forum: https://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/ec-ws115-sharp-weather-station-with-windows-10/acf24d0b-88fc-45af-9dc5-ee05484bd18b?tm=1467304651074&rtAction=1514854619562
Any solution you come up with will be much appreciated. Also thank you for leaving your work public!
January 2, 2018 at 02:44
Jack
It seems weatherbit uses same location code as owm.
January 2, 2018 at 02:59
Jack
I found this post from Ventus support :-):
Dear Customer
Please note, the service that’s host the weather forcast from FORECA is currently out of order. We are working on it, but can’t say when it will be up and running again.
We wish you a merry Christmas and a happy New Year.
Med venlig hilsen / Best Regards
Ventus Support
January 2, 2018 at 03:45
John McMullen
Well a reply is something! The 3 servers must be in the same rack. Think I’ll continue to work on a local. Since Sharper Image dropped support years ago, there must be a revenue stream to pay for the Foreca subscription and web overhead or why provide the service
January 2, 2018 at 04:13
John McMullen
I suppose grabbing their server’s PhP files is impossible, sure would be nice.
January 2, 2018 at 17:14
Jack
I modified the getweather.php script for use the weatherbit.io 16/daily api. Everythig works except weather icon and sunset/sunrise time. If you know which weather code belongs to which weater icon can you please send the information to me?
January 2, 2018 at 18:16
John McMullen
You’re miles ahead of me! I lost visibility mapping their “pluginweather” parsing code against the received data example in Michal’s getweather.php. I dont easily interpret the parsing code syntax so I get lost in the nested extraction sequence.
The only way to completely map what the units need is to slug thru this parser and document each extraction against Foreca’s data stream format. Once that’s done mapping any other weather data source is straight forward.
Since SI is using Foreca as their source, I’m thinking on going to the Foreca site and start looking at their developer access. I’d like to get a forecast data capture to use to align against SI’s 5day parser to define what’s getting extracted where.
January 3, 2018 at 01:02
Jack
Hi all,
its done. Everything work fine include right weather icons and sunrise/sunset time with combination “16/daily” and “current” api ;-)
January 3, 2018 at 02:01
John McMullen
Hey Super! Would ya share? Used Michal’s canned data and got my days & fields filled. Ya beat me.
January 3, 2018 at 02:06
John McMullen
Jack,
Are you saying you used the orig openweathermap api? Or the server1.netinfostation.com
January 3, 2018 at 02:26
John McMullen
Jack,
Also, I had to add an echo “”; to the getcityver2.php to stop the Windows array out of bounds error in that module. Initially it was ?php ?.
January 3, 2018 at 02:47
Jack
What error did you cached?
January 3, 2018 at 02:45
Jack
I used weatherbit.io api – it uses the same city code as openweathermaps but 16days/daily forecast still free. For sunrise/sunset time I used their api for current weather. Sunrise/sunset time info refers to GMT so it’s necessary to modify them with current timezone location. Next I spent much time to find the right weathr icon codes. It’s all done. Everything works well. If you give me your email I can send you modified getweather.php file.
January 3, 2018 at 04:15
John McMullen
After I sent that question I remenbered the weathebit. Already have a key yesterday.
Here’s my email
forjack842@aol.com and yup my nick is Jack too!
Nice work man!
January 3, 2018 at 04:21
John McMullen
The error was a Windows .net warning specifying the getcityver2.php returned an out of bounds index. Looking at the 5day exe the querry to the getcityver2.pdp expected a null returned. The decompiled file was just ?php ?. I had to echo a null (“”) and that stopped the error. I’m using a 5day box dont know if a 4 day will fail same way.
January 3, 2018 at 11:32
Michal
could you push the changes to the github repo ? so we can keep the working version in one place?
January 3, 2018 at 11:47
Jack
Yes, of course. But tell me how can I do it pls.
January 3, 2018 at 19:40
Michal
can you zip the files and send it by some online service ? wetransfer or wikisend? ill post them to github
January 3, 2018 at 20:08
Jack
I’m sorry for late response – hard and long day at work.
Download link:
https://wetransfer.com/downloads/097ef140c607116d0eaf2e7005acb6af20180103190113/80113c412840f19733606c6c7386185e20180103190113/c97e74
There is only one file – getweather.php.
January 3, 2018 at 13:36
Pavel Kirth
Zdravím,
zkoumal jsem váš kód, protože mi taky přestala chodit aktualizace meteostanice (Evolve Revolution). Zde je několik mých poznatků při zprovoznění.
1. bylo by dobré upozornit na to, že je nutné nastavit oprávnění pro zápis cache souboru, standardně na IIS je zápis do wwwroot zakázán.
2. query ve vašem tvaru http://api.openweathermap.org/data/2.5/forecast/daily?id=… nechodí s API klíčem ve Free režimu. Musel jsem změnit dotaz (vynechat daily) na http://api.openweathermap.org/data/2.5/forecast?&units=metric&cnt=10&mode=json&id=… Dočetl jsem se, že předpověď na více dní již vyžaduje placenou verzi u OpenWeatherMap.
3. Přidal jsem si do skriptu dotaz na načtení východu/západu Slunce. Vy tam nastavujete fixně 6:00 a 18:00.
4. přidal jsem definici pro časovou zónu pro správný překlad času z UTC na místní.
Upravený celý skript můžu když tak poslat.
Jinak moc díky za práci na této úpravě.
Pavel.
January 3, 2018 at 16:41
John McMullen
Morning all,
Got the data importing and displaying. Icons are still always sunny so not all is correct yet, something in the weather codes I think. Looking forward seeing your full up. Great to see he SI living again!
January 4, 2018 at 02:31
Jack
I made simple page with codes and icons for 4-day forecast application and wetherbit.io. The 4-day forecast uses 28 icons and weatherbit.io 38. The page shows my weather codes/icons assignment. I know it’s not perfect but I mean it’s usable. You can modify your assignment as you want :-)
Link:
http://www.cvilinek.cz/forecast/wb_icon_codes.html
January 4, 2018 at 02:48
Jack
Some 4-day forecast’s icons have more than one code so I wrote out all known to me, separated by comma.
January 3, 2018 at 19:06
Mercy
Hi guys, the original server is working again.
January 3, 2018 at 21:33
John McMullen
Just in time to be irrelevant. I believe we no longer need it. I would like to get the scripts from it though, less their keys just to cross check against ours
January 4, 2018 at 02:11
John McMullen
Hey Jack,
I was just gonna rewrite that weather codes array. Nothing was working coming out.See you did that, Cool!
January 4, 2018 at 02:34
Jack
My pleasure ;-)
January 4, 2018 at 04:35
John McMullen
Jack,
Having index errors with your weather_code array. What php version are you using?
January 4, 2018 at 12:11
Jack
I’m using PHP 7.2.0 VC15 x64 Thread Safe with Apache 2.4.29 Win64 httpd server.
January 4, 2018 at 05:14
John McMullen
There’s something screwy with the “weather_code($day[‘weather’][‘code’]); ”
It passes nothing to the function.
January 4, 2018 at 08:13
John McMullen
Part of the problem is right here.”function forcacity2owm($city) {
return $city – 100000000;”
My city code is 5364940
$city_forca is being returned as 5364940 5000 5000
function forcacity2owm($city) {
return $city – 100000000; returns a bogus number -94635060. Should be 5364940
January 4, 2018 at 12:21
Jack
What in is your apache access log? In mine is “GET /getweather.php?city=103068445 HTTP/1.1” 200 1240 and my city id is 3068445. Forcacity2own function works correctly. Here is link to full weatherbit.io city codes (~376,000 records):
https://www.weatherbit.io/static/exports/cities_all.json.gz
January 4, 2018 at 08:49
John McMullen
I have been unsuccessful stripping off the 5000 5000 as a integer. Easy as a string but doing a (int) $city …the 5day app throws an exception….Cant get it back to an accepted integer.
************* Exception Text **************
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
at Forecast.Main.pluginweather(String weather, Int32 citynum, Boolean getNextUpdate)
at Forecast.Main.updateweather(Boolean prompterror, Int32 nIP)
at Forecast.Main.updatebutton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Label.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
January 4, 2018 at 12:35
Jack
The same error I had when I tried to use OWM 5/16 api. The 4-day forecast application expects 10 day records and I had only 5.
January 4, 2018 at 20:02
John McMullen
Found the $city_id issue……my bad.
Used the”wind_cdir” for wind direction
Replaced the weather code array with a case (“switch”)
The precip variable should be ‘precip’. ‘pop’ is population.
I’m down in the uv & rise and set. You have city_id hard coded and a second data get.
Will report back
January 4, 2018 at 23:54
Jack
Hi John,
be cool ;-)
I used “wind_cdir” value too and removed function “winddeg2letter” completely. For “weather_code” I used the array $codes – it is faster and more efficient than control structures including “switch”. But it’s your choice.
The weatherbit.io 16 Day Weather Forecast API documentation describes the “pop” field as “Probability Of Precipitation in [%]”. The “precip” field is “Accumulated liquid equivalent precipitation (default in [mm])”. My unit shows probability so I used “pop” field.
Link to 16 Day Weather Forecast API documentation:
https://www.weatherbit.io/api/weather-forecast-16-day
Hardcoded “$uvi” and “$sun” city code – it is rest of original “getweather.php” script and it does not matter. Both the device and the application displays data correctly. BTW there was hardcoded sunrise/sunset information too :-)
And finally about the alleged redundant data getting. The first $url contains “forecast/daily” parameter to obtain 10 day forecast. Unfortunately there is no information of sunrise/sunset time. This is the reason I used second data get with parameter “current” which returns that. Yes, for “today” only and each day in output has the same sunrise/sunset information. But they are shown in application only in today section. After every forecast update they’ll change.
January 5, 2018 at 02:35
John McMullen
Hey Man,
I sent a previous one but it never posted.
Hey man, very sorry if I sounded uncool. Not intended at all! You are the Man here…I’m just tinkering. I learn quick but trip all over the place getting there! You’re right on the “pop”. I didnt see your “current” in the second GET, very nice! Understand now!.
My remote unit displays “Rain Inches”, too so I’m gonna fill in a * ‘0’ with a number hoping to find that data slot.
Thanks for doing the heavy lifting!
John
January 5, 2018 at 03:24
Jack
That’s cool, thanks. I would like to ask you for a favor: Could you look at assigning codes and icons? I’m not so good in english and I assigned codes -> icones “as I felt”. My key is here:
http://www.cvilinek.cz/forecast/wb_icon_codes.html
I’m going to sleep, it’s almost half past 4 AM.
January 5, 2018 at 05:11
John McMullen
Hey Mike,
Ya hit the hay, 4AM is way too late. The terrible habit of coding! Time is forgotten while the glow of the screen replaces all sunlight!
I’ll compare the forecast “description” against Foreca’s symbols and what the unit can display. Not sure at this level if we share same screen symbols.
Toying with rise & set. Something’s a miss. Putting the canned 6am 6pm works fine. Computed is the same alignment but wont display. Well Weatherbit blocked me for at least an hour….78 accesses in an hour….Really!?
Jack-2: $data
@@sun:@5364940#2018-01-05*07:00*16:56#2018-01-06*07:00*16:56#2018-01-07*07:00*16:56#2018-01-08*07:00*16:56#2018-01-09*07:00*16:56#2018-01-10*07:00*16:56#2018-01-11*07:00*16:56#2018-01-12*07:00*16:56#2018-01-13*07:00*16:56#2018-01-14*07:00*16:56@ nextupdate:000
canned: $data
@@sun:@ 5364940#2018-01-05*06:00*18:00#2018-01-06*06:00*18:00#2018-01-07*06:00*18:00#2018-01-08*06:00*18:00#2018-01-09*06:00*18:00#2018-01-10*06:00*18:00#2018-01-11*06:00*18:00#2018-01-12*06:00*18:00#2018-01-13*06:00*18:00#2018-01-14*06:00*18:00@ nextupdate:000
code changed
//$data .= ‘*’. $sunrise;
//$data .= ‘*’. $sunset;
$data.= ‘*06:00’; // sunset
$data.= ‘*18:00’; // sunrise
January 5, 2018 at 03:32
Jack
Correction:
Half past 3 AM. My superb Sauvignon bottle is done and I expect sweet dreams :-D
January 5, 2018 at 00:14
Jack
Information on sunrise and sunset is interesting at all. It refers to UTC and needs to be modified according to the time zone.
January 5, 2018 at 02:14
Jack
I sent you modified “getwearher.php” script. Hard coded $uvi and $sun variables are correct now :-)
January 5, 2018 at 05:13
John McMullen
Got it, see long comments above. We’re close, real close! Nice Work!
January 5, 2018 at 07:17
John McMullen
Ok here’s what I found. The date of the sun data is one day later than the current date in Los Angeles Calif. ie, 2018-01-05 when its still 2018-01-04. This causes the rise & set times not to be displayed on my 5 day unit since only current day rise & set is displayed.
I mod’d the “sun” routine to this:
for ($j = 0; $j < 10; $j++) {
$i=$j-1;
$data .= '#' . date('Y-m-d', $weather['data'][0]['ts']+24*3600*$i);
$data .= '*'. $sunrise;
$data .= '*'. $sunset;
Backing it up a day. This may or may not work on the other side of the UTZ.
January 5, 2018 at 13:48
Jack
That’s my fault. It is necessary to add $offset. The loop should look like this:
for ($i = 0; $i < 10; $i++) {
$data .= '#' . date('Y-m-d', $weather['data'][0]['ts']+$offset+24*3600*$i);
$data .= '*'. $sunrise;
$data .= '*'. $sunset;
}
$offset was set before the loop and is -8 hours in your case (-28800). This will work for all time zones.
January 5, 2018 at 14:11
Jack
But the original seems to be the safest :-)
…
$data .= ‘#’ . date(‘Y-m-d’, strtotime(“+”.$i.” day”));
…
January 5, 2018 at 07:28
John McMullen
Sent ya my getweather.php from tonight in an email as a rar..
January 9, 2018 at 19:37
John McMullen
Michal, Please advise on where to send our final getweather.php
January 9, 2018 at 20:16
Michal
sorry i have been away for few days … send it over by wikisend or similar service ill upload it to github
January 9, 2018 at 21:28
John McMullen
How do I identify you as the recipient. What ID do I use?
January 10, 2018 at 08:47
John McMullen
Its barely 3k. Send me your email & I send it. Wikisend isnt allowing uploads
John KG6INX
January 10, 2018 at 17:36
Michal
i have posted the changes to my github account. :-)
January 11, 2018 at 05:43
John McMullen
Please put Honza Hermanek in place of me as he did all the heavy lifting. Great guy!
Thanks
Jack McMullen
June 6, 2019 at 18:10
tom mac donald
sorry I just bought one of these boat anchors….did anyone get it working and if so may I have a copy or the program
December 21, 2020 at 18:46
Jack
Take the time to read the posts and readme files
December 21, 2020 at 18:47
Michal
His setup is different, not 4/5 days forecast… its the transmitter connected to ethernet type, configured by 7days application.
December 21, 2020 at 18:48
Jack
Yes, my bad. You are correct! Great catch!
December 8, 2020 at 15:21
T.DT
Today I got confirmation from NSH Nordic (Ventus) that they switched off their servers *.netinfostation.com” for ever.
I guess new interest will come soon for the solution you hacked long time ago
December 19, 2020 at 22:13
John Richard McMullen
Hi Michal
Jack here KG6INX
Put together a zip of what I changed from a vanilla wamp 2.49 install to get it working. Now that they pulled the plug forever, your hack should become popular! Cant upload to GITHUB or attach here. Let me know best way to send it to you for posting
Hope this gets to you
December 19, 2020 at 22:16
Michal
i sent you email to your aol account.
December 19, 2020 at 15:37
Mitch Greenberg
Could Jack please send the getweather.php script to me at mitchgrberg@gmail.com ? Thanks
December 19, 2020 at 18:26
Michal
all files are publicly available on github
December 19, 2020 at 22:09
Jack Mcmullen
Hi MichalJack here KG6INX Put together a zip (attached)of what I changed from a vanilla wamp 2.49 install to get it working. Now that they pulled the plug forever, your hack should become popular! Hope this gets to you
December 19, 2020 at 23:57
Scott Cassin
I’ve been following along on the Github site and made an attempt earlier today to get it working and was unsuccessful. Does anyone know if the getweather.php script on the site is a verified working version? I’d love to have the WampServer settings as well (I saw there was a zip floating around). Thanks for any help!
December 20, 2020 at 17:15
Michal
i have updated the article, also github repo, and readme there. have fun :-)
December 20, 2020 at 19:16
Scott Cassin
Awesome… thank you so much… everything works fine now, much appreciated!
December 20, 2020 at 20:53
T.DT
Set it all up in under 15 min, working perfect already.
Many thanks from Belgium !
December 20, 2020 at 20:58
Jack
Great!! I was hoping everyone would find the update quick & easy. You verified it for me! Everyone Enjoy!!
Pass it around!
December 20, 2020 at 21:17
T.DT
I’m not using the Windows solution though. The 4-day forecast application is running on Windows 7 (virtualized) host and I wanted to leave that as is.
So configured resolving for ‘server1.netinfostation.com’ to a linux machine already running Apache2. Added config for extra virtualhost :
…
DocumentRoot /var/www/weather
ServerName server1.netinfostation.com
…
Put all the php files in the folder, pasted my free Weatherbit API Key in getweather.php, reloaded Apache and then the magic happened :-)
Great work guys !
December 20, 2020 at 21:20
Michal
well, i didnt include linux manual, because most linux users know how to edit hosts file, and install apache/php and few php scripts :-)
December 20, 2020 at 21:27
Jack
Great! Another variation is perfect. The more options the more folks can get their units back up and running again!
Jack
December 20, 2020 at 14:59
Dominik
Hello. I have a Ventus W233 with a transmitter connected to the router, not to USB.
Did not work.
December 20, 2020 at 17:15
Michal
Does Ventus W233 use 4day forecast application ? Quick googling shows “multiday forecast” application. Can you share the PC application ? (wikisend, or similar)
December 20, 2020 at 15:20
Dominik
Hello.
Can you get a new getweather.php?
December 20, 2020 at 17:13
Michal
All files are on github. Read the article again.
December 20, 2020 at 18:26
Dominik
The application for Ventus W233 is 7-days forecast.exe.
https://megawrzuta.pl/download/3a9f5a940582400e923c9781995c1b0d.html
December 20, 2020 at 22:07
Dominik
Can something be done for the 7-days forecast.exe application?
December 20, 2020 at 23:03
Jack
I dont have the 7 day unit, just SI EC-WS115 5 day unit. I have no idea on how to help you on your unit. Hopefully as the demand grows for a forecast server the units will get supported by developers who have the units in hand to work with.
One issue maybe the difference in weather forecast service and the format of the data. What we fixed here did the 4 & 5 day units. I would guess the 7 day from SI would still use the same server & data stream
December 21, 2020 at 12:41
Michal
I think, this one works a bit differently. PC app only configures the transmitter which cities to download from internet. Transmitter downloads the data directly from internet.
What you will have to do is: setup static DNS record on your router, to redirect the “server1.netinfostation.com” to your PC’s ip address. On your pc you need to run WAMP with enabled access to network. (Allow from all in httpd.conf for the www directory) Then the transmitter will connect to your pc for weather info.
December 21, 2020 at 01:11
Kyle
Just got the workaround setup with my 5-day weather forecast system and it works great!
I will note, if you’re using a PHP server newer than version 5.0 (I’m using Laragon Mint (very light weight) as my server, which defaults to PHP v7), it will throw a fatal exception in getweather.php, line #94, complaining that the system timezone was not specified. I did a cheap & quick workaround by adding a line of code immediately before manually setting the timezone to my local timezone, which works like a charm: date_default_timezone_set(‘America/New_York’);
December 21, 2020 at 02:23
Jack
Excellent!!!! Another variation successfully implemented!!
December 21, 2020 at 18:19
Dominik
Czy oprócz klucza, trzeba jeszcze ustawiać w którymś z plików PHP? i czy wamp server musi być w trybie on-line?
December 21, 2020 at 18:40
Jack
You need to either use the HTTP.conf or permit access from 127.0.0.1, and add the lines in the hosts. The wamp should be setup to start when windows starts or what ever OS you use.
For windows everything is provided except your unique API key which is free
December 21, 2020 at 18:42
Dominik
ok. Thanks
December 21, 2020 at 18:45
Michal
your setup is going to be DIFFERENT. You need to change “Allow from 127.0.0.1” to “Allow from all”. This is because your transmitter needs to connect to your computer. And yes, wamp needs internet access it downloads weather from internet. And you need to change configuration on your internet router that “server1.netinfostation.com” dns records is your computers IP.
December 21, 2020 at 19:01
Dominik
I have a wamp server ver. 2.5. In the Apatche tab, I have httpd.conf. There is no “allow from ….”
Allow from all, I set it in the httpd.conf file in the www \ win_and_wamp directory. Do I have the wamp version and the httpd setting fine?
December 21, 2020 at 19:05
Michal
use the one from win_and_wamp and replace 127.0.0.1 with “all”
December 21, 2020 at 19:06
Michal
test that you can connect to your computer from other computer (or mobile phone) by typing your PCs ipaddress into browser
December 21, 2020 at 19:03
Dominik
Should I replace index.php with the repo file?
December 21, 2020 at 19:05
Michal
YES EXACTLY
December 21, 2020 at 19:26
Dominik
Do I need to set the city and country in the getweather.php file?
December 21, 2020 at 19:27
Michal
no
December 21, 2020 at 19:27
Jack
The city/country should be filled in bt the SI unit when it does its forecast request
December 21, 2020 at 19:38
Dominik
Index.php is the same as getweather.php. Should I enter the key in index.php?
December 21, 2020 at 19:39
Michal
yes
December 21, 2020 at 19:51
Jack
Wamp looks for the index.php at forecast query and executes it. THe getweather.php is the main worker. Copying getweather to index insures the script executes when a query is received.
December 21, 2020 at 19:53
Dominik
I understand
December 21, 2020 at 19:56
Dominik
I tried to enter the ip address of my computer from a smartphone. I got a response from an apatche that I don’t have permission. It’s rather good?
December 21, 2020 at 20:25
Michal
no its not :) you dont have apache configured correctly
December 21, 2020 at 20:33
Dominik
Hmmm what can i do?
December 21, 2020 at 20:40
Michal
put content of httpd.conf on pastebin, put link here, we will check
December 21, 2020 at 20:48
Dominik
I changed the wamp version to 3.0.6
December 21, 2020 at 21:18
Dominik
I’ve listed a link here, but you can’t see it.
December 21, 2020 at 21:21
Michal
send it by email
December 21, 2020 at 21:24
Dominik
Ok. but to what address?
December 21, 2020 at 21:24
Dominik
ok. but to what address?
December 21, 2020 at 21:26
Michal
i sent you email to inspec….@….pl
December 28, 2020 at 16:28
Juan
I have an Optex SM-002 station. I like it because I see the weather forecast to put the heating on. Works with USB transmitter and 4-Day Forecast powered by Foreca. As you say, the server works no longer anymore. I have done the steps exactly as you described and now it works perfectly. The latest version of the WAMP server gives me errors and does not work for me, but version 2.0 works well. Now I can see the weather forecast in my station again. Thank you very much from Spain for this great job!
February 23, 2021 at 23:57
Dominik
Hello. I have the old VENTUS W233 weather station. As you know, the ctinets.com, server1netinfostation.com servers are down. My station doesn’t show the weather. I can make a server for myself that will send weather data to the station’s transmitter. I need files for the server:
getweather2.php
gettime.php
getDST.php
From the ExtraWeather catalog:
getcurrent.php
getsession.php
Please help.
February 24, 2021 at 02:59
JackMcMullen
Did you ndownload the files I posted on GitHub? Those are designed for the SharperImage 4 & 5 Day Weather units. Now how close those files are to your data stream I have no idea. I’d try downloading and installing on a PC, get wamp running and give it a try against your box. You might get lucky or have to fiddle with your data stream format.
Jack
August 19, 2022 at 00:37
Kevin
Hi. Me too. I have a DNT WF D-Net 4 and exactly the same issue. I need these files:
getweather2.php
gettime2.php
getDST.php
I have copied the file gettime2.php from your repo, that was working. But getDST.php and getweather2.php are missing. What can i do now?
October 19, 2022 at 18:15
JUAN
Hello from Spain. Since October 2022 the script no longer works for me. When WAMP-server wants to download the data obtained from weatherbit.io. in the 4-day Forecast app and after connecting the transmitter and after 10 seconds the app is thinking forever. I have been able to see that WAMP serve makes more than 50 Get-Requests to weatherbit.io and then weatherbit.io disconnects the server for 8 hours (the free API.KEY is for max 50 requests per day). Aalthough I see that the data is in JSON format in the Weather file.Can you help me? I have the LOG if necessary.My station has always worked very well with your Script, but now it doesn’t. Model is: OPTEX SM-002 (990002).I think something has changed in the server weatherbit.io
May 10, 2023 at 21:58
Joe B.
Does anyone know a source for the original install program? I have the CD, but it wants to contact the Sharper Image servers to download nis01-install-2389.exe which, of course, fails. I have the modification working with winamp but need to reinstall the actual forecaster software onto a new PC.