Author Topic: Weather34 template(non meteobridge versions)  (Read 117899 times)

0 Members and 2 Guests are viewing this topic.

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #375 on: September 25, 2017, 09:11:29 AM »
Hi Chuck,

allow_url_fopen will need to be set to "on" for the PHP part of your website to function correctly.

Yes, that must be the problem. My server cannot grab the data from WU. When they upgraded PHP the newer version had this disabled by default - for security.

Thanks for the info.
Good morning I just checked everything seems ok now so I guess you got to the bottom of it..brian
Brian,
Yes. All is well. The updated PHP had fopen turned off by default. The hosting provider had not passed on that info. Enabled it and everything went back to normal.

Thanks!

Chuck

im glad, however keep a lookout during october , i will release a version solely for meteobridge-api to use mysql(i) ,just need some time to get up on the roof and install some new hardware and test them out . so wu will only provide forecast data . hopefully it should be a relatively easy setup for the template as Im using mysql with the ws1001 template version .. ps OS wmr300 looks awfully the same as a Davis VP2 especially the rain bucket section ive yet to peep inside the temp/humidity section but think i will tomorrow.unfortunately i dont have space to run them side by side for a comparison but shockingly similar on first inspection..brian

Offline prestwickwx

  • Senior Contributor
  • ****
  • Posts: 164
    • Myrtle Beach - Rain or Shine
Re: HOMEWEATHERSTATION Dashboard template
« Reply #376 on: September 25, 2017, 09:19:49 AM »
Hi Chuck,

allow_url_fopen will need to be set to "on" for the PHP part of your website to function correctly.

Yes, that must be the problem. My server cannot grab the data from WU. When they upgraded PHP the newer version had this disabled by default - for security.

Thanks for the info.
Good morning I just checked everything seems ok now so I guess you got to the bottom of it..brian
Brian,
Yes. All is well. The updated PHP had fopen turned off by default. The hosting provider had not passed on that info. Enabled it and everything went back to normal.

Thanks!

Chuck

im glad, however keep a lookout during october , i will release a version solely for meteobridge-api to use mysql(i) ,just need some time to get up on the roof and install some new hardware and test them out . so wu will only provide forecast data . hopefully it should be a relatively easy setup for the template as Im using mysql with the ws1001 template version .. ps OS wmr300 looks awfully the same as a Davis VP2 especially the rain bucket section ive yet to peep inside the temp/humidity section but think i will tomorrow.unfortunately i dont have space to run them side by side for a comparison but shockingly similar on first inspection..brian

I saw your earlier post about a mysql version. That sounds great. I have used the ws1001 with the meteostick in the past. I switched over to the Davis VP2 several months ago. I think you will like the Davis VP2/Meteostick combination - it is "rock solid".

Chuck

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #377 on: September 25, 2017, 09:30:00 AM »
ha good, as for the ws1001 well its served me well for the last 2.5 years and ive always treated it as a relative indicator not a scientific tool and I did a few modifications to reduce the direct sunlight spikes that worked really well and did a few modifications to eliminate the adverse spikes during heavy rain and dense fog etc as the water/condensation would build up or find its way into the sensor circuitry. i think ill always keep it as a fallback unit if something goes wrong with the newer hardware. however I have a dilemma  of which one to keep wmr300 or vp2 as I am donating one to a local school here in istanbul so i wont draw any conclusions and certainly not assume one is better than the other until i had few weeks using them..probably end up tossing a coin :-) ..

have fun take care...brian

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #378 on: September 28, 2017, 03:43:23 AM »
good morning

the moon information pop up module has now been reworked , the moonphase output I sat down and re-wrote,compiled from the ground up has the original had a lot of code that was not needed so this a very slimmed down version and the actual script for the moonphase output visually is basically less than 1kb !! . see screenshot.

please note all information pop up modules like moon,earthquake,aqi,aurora,meteor all reside in a folder called info . so to use these you could simply just replace the index.php and the info folder from the download but *note if you using the mysql version by tony (HRVISTA) you will need to modify the index.php to point to the files int the info folder example for moon info it would be info/moondata.php , earthquake info/eqlist.php and so on..

*note i will either publish the scripts or provide info to encourage others to create there own for there own projects , i see alot of people now creating there websites so hopefully it will be of use to many, if not its always there for reference..

as always https://weather34.com/homeweatherstation/

..Brian

« Last Edit: September 28, 2017, 03:48:32 AM by weatherist34 »

Offline prestwickwx

  • Senior Contributor
  • ****
  • Posts: 164
    • Myrtle Beach - Rain or Shine
Re: HOMEWEATHERSTATION Dashboard template
« Reply #379 on: September 28, 2017, 10:07:24 AM »
good morning

the moon information pop up module has now been reworked , the moonphase output I sat down and re-wrote,compiled from the ground up has the original had a lot of code that was not needed so this a very slimmed down version and the actual script for the moonphase output visually is basically less than 1kb !! . see screenshot.

please note all information pop up modules like moon,earthquake,aqi,aurora,meteor all reside in a folder called info . so to use these you could simply just replace the index.php and the info folder from the download but *note if you using the mysql version by tony (HRVISTA) you will need to modify the index.php to point to the files int the info folder example for moon info it would be info/moondata.php , earthquake info/eqlist.php and so on..

*note i will either publish the scripts or provide info to encourage others to create there own for there own projects , i see alot of people now creating there websites so hopefully it will be of use to many, if not its always there for reference..

as always https://weather34.com/homeweatherstation/

..Brian



Brian,

Just updated to the latest template. Looks great!  One question:

I have noticed that all of my template elements rarely load, since my hosting company updated PHP on the server. Sometimes I have to refresh the browser several times. This did not happen before the PHP update to 5.6.31. Do you have any suggestions about PHP parameters that I may need to adjust?

Thanks,

Chuck

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #380 on: September 29, 2017, 12:48:14 AM »
good morning

i have spent 20 minutes or so monitoring things .. how often is the http://myrtlebeachweather.org/pws/MBrealtimeupload.txt  updated because that doesnt seen to get updated to often on your server

looking at below i first accessed it at 07:38(00:38 your time) my time

here was the output you can see the time is 00.33:56
29/09/2017 00:33:56 25.1 95.0 24.2 0.0 0.0 127.0 0.0 0.0 1012.7 127.0 0 m/s C hPa mm -- 1012.9 112.8 958.5 0.0 23.5 30.0 25.1 25.4 25.3 20170929000011 25.1 20170929002232 0.0 20170929000000 0.5 20170929000420 1012.9 20170929000655 1012.7 20170929000055 3.4 11444 0.0 -- -- 0.0 -- 0.0 127.0 0.0 -- N -- 127.0 -- m -- 11:54 -- -- 0.0 95.0 20170929000011 95.0 20170929000011 24.4 20170929000011 24.2 20170929002232

its now 0740(0040) and still it outputs

29/09/2017 00:33:56 25.1 95.0 24.2 0.0 0.0 127.0 0.0 0.0 1012.7 127.0 0 m/s C hPa mm -- 1012.9 112.8 958.5 0.0 23.5 30.0 25.1 25.4 25.3 20170929000011 25.1 20170929002232 0.0 20170929000000 0.5 20170929000420 1012.9 20170929000655 1012.7 20170929000055 3.4 11444 0.0 -- -- 0.0 -- 0.0 127.0 0.0 -- N -- 127.0 -- m -- 11:54 -- -- 0.0 95.0 20170929000011 95.0 20170929000011 24.4 20170929000011 24.2 20170929002232

at 0743(0043) it updated so is there a 10 minutes cache setting set somewhere ??

29/09/2017 00:43:56 24.9 95.0 24.0 0.0 0.0 127.0 0.0 0.0 1012.8 127.0 0 m/s C hPa mm -- 1012.9 112.8 958.5 0.0 23.5 30.0 24.9 25.3 25.3 20170929000011 24.9 20170929003917 0.0 20170929000000 0.5 20170929000420 1012.9 20170929000655 1012.7 20170929000055 3.4 11444 0.0 -- -- 0.0 -- 0.0 127.0 0.0 -- N -- 127.0 -- m -- 11:54 -- -- 0.0 95.0 20170929000011 94.0 20170929003511 24.4 20170929000011 23.9 20170929004252


so have the hosts included an timed cache in .htaccess file ?

is there some cache enabled at server level ?

these would cause the txt file to be static for whatever the cacheing period is .

if you can send me a copy of your .htaccess file via a PM .

hope it helps ..brian

Offline Mogens

  • Member
  • *
  • Posts: 34
Re: HOMEWEATHERSTATION Dashboard template
« Reply #381 on: September 29, 2017, 04:42:05 AM »
I have a problem similar to one mentioned in this thread

My Internet Service Provider was sold to another company, and the other day, all files were moved to another server.
Since then, I have not been able to display my weather page correctly.
No current data is displayed.
The historical data - day, month, year - is still displayed correctly.

See the top link below.

The station uploads to WU
See the bottom link below.

As a test, I've got a new API key at WU, and I have cleared browser data, but without results.

updateweatherstation.php apparently only runs when I do it manually and apparently does not generate any data. Everything in ws1001.txt. shows "null"

I have run "phpinfo ()" on the new server.
allow_url_fopen is ON.

Can anyone have an idea of what I can do?
WS-2902 clone.
Home weather station:
https://inaogmogens.dk/weather


Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #382 on: September 29, 2017, 04:58:03 AM »
I have a problem similar to one mentioned in this thread

My Internet Service Provider was sold to another company, and the other day, all files were moved to another server.
Since then, I have not been able to display my weather page correctly.
No current data is displayed.
The historical data - day, month, year - is still displayed correctly.

See the top link below.

The station uploads to WU
See the bottom link below.

As a test, I've got a new API key at WU, and I have cleared browser data, but without results.

updateweatherstation.php apparently only runs when I do it manually and apparently does not generate any data. Everything in ws1001.txt. shows "null"

I have run "phpinfo ()" on the new server.
allow_url_fopen is ON.

Can anyone have an idea of what I can do?

hello

you need to check if the ws1001 console is connecting to the updateweatherstation.php 

you may have to edit the server.ini file on the firmware

[Menu]
default=www.wunderground.com
web=1
web1=www.wunderground.com
web2=www.kvisselsvenner.dk

[www.wunderground.com]
Server=kvisselsvenner.dk/pws/
ServerType=php
ServerPort=80
UploadType=Customize
ReadOnly=true

[www.kvisselsvenner.dk]
Server=www.kvisselsvenner.dk/pws/
ServerType=php
ServerPort=80
UploadType=Customize
ReadOnly=true

try above and reboot the console

likelihood the ws1001 is not seeing that file hence the nulls when you ping it manually .

brian




Offline Mogens

  • Member
  • *
  • Posts: 34
Re: HOMEWEATHERSTATION Dashboard template
« Reply #383 on: September 29, 2017, 07:23:39 AM »
I have a problem similar to one mentioned in this thread

My Internet Service Provider was sold to another company, and the other day, all files were moved to another server.
Since then, I have not been able to display my weather page correctly.
No current data is displayed.
The historical data - day, month, year - is still displayed correctly.

See the top link below.

The station uploads to WU
See the bottom link below.

As a test, I've got a new API key at WU, and I have cleared browser data, but without results.

updateweatherstation.php apparently only runs when I do it manually and apparently does not generate any data. Everything in ws1001.txt. shows "null"

I have run "phpinfo ()" on the new server.
allow_url_fopen is ON.

Can anyone have an idea of what I can do?

hello

you need to check if the ws1001 console is connecting to the updateweatherstation.php 

you may have to edit the server.ini file on the firmware

[Menu]
default=www.wunderground.com
web=1
web1=www.wunderground.com
web2=www.kvisselsvenner.dk

[www.wunderground.com]
Server=kvisselsvenner.dk/pws/
ServerType=php
ServerPort=80
UploadType=Customize
ReadOnly=true

[www.kvisselsvenner.dk]
Server=www.kvisselsvenner.dk/pws/
ServerType=php
ServerPort=80
UploadType=Customize
ReadOnly=true

try above and reboot the console

likelihood the ws1001 is not seeing that file hence the nulls when you ping it manually .

brian

Thanks for reply

Oh, I see that there is also a folder "weatherstation" inside the "pws" folder.

I have always used to have "updateweatherstation.php" in a folder "weatherstation" which is in the root of the "public_html" folder and has been untouched for a very long time.

In "easyweathersetup.php" path to data file is
http://kvisselsvenner.dk/weatherstation/ws1001.txt

Is there an idea to change Server.ini on the console, when "weatherstation" is in the root?

I'm starting to think that the new server is very restrictive as to who can write in the files. I have looked at some log files that show that writing in ws1001.txt has been prevented. The supporter of the ISP can obviously not help.

Wondering if a completely new installation of the template is a good idea?
WS-2902 clone.
Home weather station:
https://inaogmogens.dk/weather


Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #384 on: September 29, 2017, 07:37:20 AM »
hello

you have to determine where your console is looking for the file updateweatherstation.php

if its in the root the just your domain in the server.ini would be kvisselsvenner.dk/

if its in the pws folder pws/weatherstation ?? then the server.ini would be looking kvisselsvenner.dk/pws/

i can kick your updateweatherstation.php manually and it writes nulls so nothing to do with host or isp otherwise it would prevent me .


in the easyweathersetup its either going to be www.kvisselsvenner.dk/pws/weatherstation.ws1001.txt or if its in your root then
its going to be www.kvisselsvenner.dk/weatherstation/ws1001.txt

so you need to work out exactly what the console is looking for .

remember the template only reads a file in this case its looking for ws1001.txt it doesn't control how the your console sends the data.

im still using the ws1001 for another couple of weeks i could possibly configure mine to send data to your server to test and see if it accepts the data but i cant do that till next week unfortunately busy weekend with football and relatives..brian








Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #385 on: September 29, 2017, 08:33:02 AM »
if you goto your website now thats my console connecting to your updateweatherstation.php :-)

{"timestamp":"1506688215","updated":"14:30:15","outsideTemp":"63.0","outsideHumidity":"71","dewpoint":"53.4","windchill":"63.0","heatindex":null,"realfeel":62.3,"windDir":"353","windSpeed":"18.6","windGust":"24.8","windspeedavg":"18.6","winddiravg":"353","rainrate":"0.00","raintoday":"0.00","rainweek":"0.27","rainmonth":"0.45","rainyear":"11.85","radiation":"106.54","UV":"1","indoorTemp":"70.0","indoorfeel":69.2,"indoorHumidity":"54","barometer":"30.11","absbarometer":"29.94","trendbarometer":"30.11","softwaretype":"weather34.com V2.3.3","month":"September","year":"2017","day":"Friday","realtime":"1","rtfreq":"5","status":"updateraw","timeutc":"2017-9-29 12:30:12","power":true}

http://www.kvisselsvenner.dk/weatherstation/ws1001.txt

http://www.kvisselsvenner.dk/pws/index.php

so you need to look at the console ..brian

Offline Mogens

  • Member
  • *
  • Posts: 34
Re: HOMEWEATHERSTATION Dashboard template
« Reply #386 on: September 29, 2017, 09:12:41 AM »
Hi Brian
Yes, yes  :grin:
I see that you have put data in my "ws1001.txt" at 14:41:57
Here the template can find them well.
You do not have much warmer than it is in Denmark  :grin:

I also have something to do with family etc in this weeend, but I will look at Server.ini when I get time.

If I make it work, I'll tell you of course.

Mogens
WS-2902 clone.
Home weather station:
https://inaogmogens.dk/weather


Offline prestwickwx

  • Senior Contributor
  • ****
  • Posts: 164
    • Myrtle Beach - Rain or Shine
Re: HOMEWEATHERSTATION Dashboard template
« Reply #387 on: September 29, 2017, 09:19:04 AM »
good morning

i have spent 20 minutes or so monitoring things .. how often is the http://myrtlebeachweather.org/pws/MBrealtimeupload.txt  updated because that doesnt seen to get updated to often on your server

looking at below i first accessed it at 07:38(00:38 your time) my time

here was the output you can see the time is 00.33:56
29/09/2017 00:33:56 25.1 95.0 24.2 0.0 0.0 127.0 0.0 0.0 1012.7 127.0 0 m/s C hPa mm -- 1012.9 112.8 958.5 0.0 23.5 30.0 25.1 25.4 25.3 20170929000011 25.1 20170929002232 0.0 20170929000000 0.5 20170929000420 1012.9 20170929000655 1012.7 20170929000055 3.4 11444 0.0 -- -- 0.0 -- 0.0 127.0 0.0 -- N -- 127.0 -- m -- 11:54 -- -- 0.0 95.0 20170929000011 95.0 20170929000011 24.4 20170929000011 24.2 20170929002232

its now 0740(0040) and still it outputs

29/09/2017 00:33:56 25.1 95.0 24.2 0.0 0.0 127.0 0.0 0.0 1012.7 127.0 0 m/s C hPa mm -- 1012.9 112.8 958.5 0.0 23.5 30.0 25.1 25.4 25.3 20170929000011 25.1 20170929002232 0.0 20170929000000 0.5 20170929000420 1012.9 20170929000655 1012.7 20170929000055 3.4 11444 0.0 -- -- 0.0 -- 0.0 127.0 0.0 -- N -- 127.0 -- m -- 11:54 -- -- 0.0 95.0 20170929000011 95.0 20170929000011 24.4 20170929000011 24.2 20170929002232

at 0743(0043) it updated so is there a 10 minutes cache setting set somewhere ??

29/09/2017 00:43:56 24.9 95.0 24.0 0.0 0.0 127.0 0.0 0.0 1012.8 127.0 0 m/s C hPa mm -- 1012.9 112.8 958.5 0.0 23.5 30.0 24.9 25.3 25.3 20170929000011 24.9 20170929003917 0.0 20170929000000 0.5 20170929000420 1012.9 20170929000655 1012.7 20170929000055 3.4 11444 0.0 -- -- 0.0 -- 0.0 127.0 0.0 -- N -- 127.0 -- m -- 11:54 -- -- 0.0 95.0 20170929000011 94.0 20170929003511 24.4 20170929000011 23.9 20170929004252


so have the hosts included an timed cache in .htaccess file ?

is there some cache enabled at server level ?

these would cause the txt file to be static for whatever the cacheing period is .

if you can send me a copy of your .htaccess file via a PM .

hope it helps ..brian

Brian,

My upload interval is set at 10 minutes. Generally on first load one or two of the template panels will be blank. If I refresh using "shift" to force a new data pull it will generally load everything. This seems to be consistent across Browsers (Chrome, Firefox, IE, Edge). I never noticed this prior to the PHP update. The interesting thing is it seems to load 99% of the time on my Ipad (using any browser). I will PM the file.

Thanks,

Chuck

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #388 on: September 29, 2017, 09:25:00 AM »
check php memory limit

example ini_set('memory_limit', '2048M');

ini_set('memory_limit', '1024M');

i use an ipad air 2 /pro all the time multiple tabs open etc

your going to have to root it out as you had no issues prior to server changes..

process of elimination can be teething but good learning curve ..

Offline prestwickwx

  • Senior Contributor
  • ****
  • Posts: 164
    • Myrtle Beach - Rain or Shine
Re: HOMEWEATHERSTATION Dashboard template
« Reply #389 on: September 29, 2017, 02:04:08 PM »
check php memory limit

example ini_set('memory_limit', '2048M');

ini_set('memory_limit', '1024M');

i use an ipad air 2 /pro all the time multiple tabs open etc

your going to have to root it out as you had no issues prior to server changes..

process of elimination can be teething but good learning curve ..

Yes. I will experiment. Strange that it works fine (everything loads first time) on The Ipad Air 2 using any Browser (Chrome, Firefox, Safari). But, on the Windows 10 desktop all three Browsers drop a couple of the information panels. Refreshing a few times makes them appear.

Thanks,

Chuck

Offline Mogens

  • Member
  • *
  • Posts: 34
Re: HOMEWEATHERSTATION Dashboard template
« Reply #390 on: October 01, 2017, 12:49:48 PM »
so you need to look at the console ..brian

Hmm, my console is crazy, or I'm crazy - I'd like to accept the "honor"  :oops:

updateweatherstation has not been moved on the server.
Server.ini is unchanged since it worked.

I've tried everything I can find:
- replaced the special Server.ini with the original, - of course, connection to the WU
- again replaced the original Server.ini with that, Brian shows - again connect to wu but still no data for updateweatherstation.php
- Hard reset of the console with new password entry to router, etc.

Still no new data in ws1001.txt.

When I want to examine "Data uploading" in settings on the console, it shows a continuous hourglass.

I do not have enough technical insight to track where my console sends data.

Mogens
WS-2902 clone.
Home weather station:
https://inaogmogens.dk/weather


Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #391 on: October 01, 2017, 03:22:28 PM »
so you need to look at the console ..brian

Hmm, my console is crazy, or I'm crazy - I'd like to accept the "honor"  :oops:

updateweatherstation has not been moved on the server.
Server.ini is unchanged since it worked.

I've tried everything I can find:
- replaced the special Server.ini with the original, - of course, connection to the WU
- again replaced the original Server.ini with that, Brian shows - again connect to wu but still no data for updateweatherstation.php
- Hard reset of the console with new password entry to router, etc.

Still no new data in ws1001.txt.

When I want to examine "Data uploading" in settings on the console, it shows a continuous hourglass.

I do not have enough technical insight to track where my console sends data.

Mogens

hello

i think at some point you must have generated or connected as the ws1001.txt is showing updated with todays date

{"timestamp":"1506871768","updated":"18:29:28","outsideTemp":"58.3","outsideHumidity":"95","dewpoint":"56.8","windchill":"58.3","heatindex":null,"realfeel":58.3,"windDir":"22","windSpeed":"2.5","windGust":"4.9","windspeedavg":"2.5","winddiravg":"22","rainrate":"0.00","raintoday":"0.24","rainweek":"0.24","rainmonth":"0.24","rainyear":"12.39","radiation":"13.38","UV":"0","indoorTemp":"68.5","indoorfeel":68.3,"indoorHumidity":"69","barometer":"30.15","absbarometer":"29.98","trendbarometer":"30.15","softwaretype":"weather34.com V2.3.3","month":"October","year":"2017","day":"Sunday","realtime":"1","rtfreq":"5","status":"updateraw","timeutc":"2017-10-1 15:29:28","power":true}

http://www.kvisselsvenner.dk/weatherstation/ws1001.txt

send me a copy of your server.ini file from the console i will take a look at it this week..also send me your email ..brian

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #392 on: October 02, 2017, 04:39:36 AM »
i have emailed you a solution unfortunately after today i will no longer have the WS1001 installed to test anything in the future.

bottom line with the ws1001 personal website usage is getting that path correct and try the sub domain solution i sent along this has resolved
this type of issue many times over the last year or more..

has you know the ws1001 once you get this right it is a self sufficient website solution without any additional hardware or software to purchase or use and
you definitely don't need a computer to supply data to your personal website in any way it just connects to your home router and sends the data where ever you tell it to, i have had mine running since may 2015 without any issues at all and i will always keep it as a fall back unit to use in the event if something goes wrong with the newer hardware i have .

using the updateweatherstation.php is a powerful solution to many other things like automatically dump data to a database without any cron jobs as I have been using for a long time now at http://weather34.com

once you dump the data to a mysql you can generate your own charts , create max/min/avg/daily,monthly,yearly,hourly totals to be displayed within this template all sorts of possibilities depends on how creative you want to get.

brian..


Offline Mogens

  • Member
  • *
  • Posts: 34
Re: HOMEWEATHERSTATION Dashboard template
« Reply #393 on: October 02, 2017, 05:04:19 AM »
Thank you for your reply
I will follow your advice later today.
Mogens
WS-2902 clone.
Home weather station:
https://inaogmogens.dk/weather


Offline steepleian

  • Senior Member
  • **
  • Posts: 53
    • The Claydons Community Weather
Re: HOMEWEATHERSTATION Dashboard template
« Reply #394 on: October 05, 2017, 07:47:26 AM »
Server.ini

[Menu]
default=www.wunderground.com
web=1
web1=www.wunderground.com
web2=www.yourserver.com

[www.wunderground.com]
Server=yourserver.com
ServerType=php
ServerPort=80
UploadType=Customize
ReadOnly=true

[www.yourserver.com]
Server=www.yourserver.com
ServerType=php
ServerPort=80
UploadType=Customize
ReadOnly=true




Are these settings effective with SSL or should the port be changed to 443?

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #395 on: October 06, 2017, 04:00:09 AM »
good morning

unfortunately im no longer using the WS1001 so i cant confirm anything anymore in reference to this model. however i initially just added
a .htaccess mod before my host fully enabled ssl at all methods initially my domain was only SSL but was notified sometime ago that all access ssl is enabled ftp etc.. . here was my snippet i used for a few months .

RewriteEngine On
RewriteCond %{HTTP_HOST} ^weather\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.weather.com/$1 [R,L]

hope it is of help if not i guess can always try the port 443 ..brian


Offline Mogens

  • Member
  • *
  • Posts: 34
Re: HOMEWEATHERSTATION Dashboard template
« Reply #396 on: October 07, 2017, 09:59:03 AM »
i have emailed you a solution unfortunately after today i will no longer have the WS1001 installed to test anything in the future.

bottom line with the ws1001 personal website usage is getting that path correct and try the sub domain solution i sent along this has resolved
this type of issue many times over the last year or more..

brian..

Thanks for the advice.
But now I have tested and checked for some days, still unsuccessfully.

subdomain solution did not make it work.

I no longer believe my problem is related to the server even though my problems occurred when my webhotel changed owner and the files were moved to a new server.

I have got a friend to put the weatherstation folder on his server. I can run the updateweatherstation.php file on his server and get a Rapid Fire response. And there is "null" in all data in ws1001.txt.

I have changed Server.ini so it points to the friend's server.
I have changed easyweathersetup.php so the template retrieves data from friends server. Still only "null"

The WU icon appears on the console screen after a restart but disappears sometimes.

My template runs firmware 2.2.5
Is it a good idea to upgrade to the latest firmware in this regard?

Mogens
WS-2902 clone.
Home weather station:
https://inaogmogens.dk/weather


Offline steepleian

  • Senior Member
  • **
  • Posts: 53
    • The Claydons Community Weather
Re: HOMEWEATHERSTATION Dashboard template
« Reply #397 on: October 07, 2017, 05:13:08 PM »
good morning

unfortunately im no longer using the WS1001 so i cant confirm anything anymore in reference to this model. however i initially just added
a .htaccess mod before my host fully enabled ssl at all methods initially my domain was only SSL but was notified sometime ago that all access ssl is enabled ftp etc.. . here was my snippet i used for a few months .

RewriteEngine On
RewriteCond %{HTTP_HOST} ^weather\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.weather.com/$1 [R,L]

hope it is of help if not i guess can always try the port 443 ..brian

Good evening Brian,

Thank you for your response. I tried your .htaccess snippet and port 443 but no go and then it struck me that the obvious solution was staring me in the face. Why send the data to an external URL when I running my own server, I just need to use the local name which just happens to be wxserver.

So Server=wxserver.local/pws/ effectively by-passed SSL.

Some tips I have also pieced together from various other discussions: - Anybody who is using a Windows based server for this method. You may have to install ‘Bonjour’. The quickest and easiest way to do this is to install the Windows version of iTunes which includes ‘Bonjour’. If your server is Unix based (macOS or Linux), you should be OK.

I tried it on a Mac Mini (macOS), Raspberry Pi2 (Raspbian) and Intel NUC (Windows 10) and all worked flawlessly. However, I found on the Pi2 I needed to open ports 6000 and 6500 which was not the case with MacOS or Windows which I found rather strange.

Anyway, a solution if anybody needs to use it.

Ian

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #398 on: October 08, 2017, 05:29:49 PM »
i have emailed you a solution unfortunately after today i will no longer have the WS1001 installed to test anything in the future.

bottom line with the ws1001 personal website usage is getting that path correct and try the sub domain solution i sent along this has resolved
this type of issue many times over the last year or more..

brian..

Thanks for the advice.
But now I have tested and checked for some days, still unsuccessfully.

subdomain solution did not make it work.

I no longer believe my problem is related to the server even though my problems occurred when my webhotel changed owner and the files were moved to a new server.

I have got a friend to put the weatherstation folder on his server. I can run the updateweatherstation.php file on his server and get a Rapid Fire response. And there is "null" in all data in ws1001.txt.

I have changed Server.ini so it points to the friend's server.
I have changed easyweathersetup.php so the template retrieves data from friends server. Still only "null"

The WU icon appears on the console screen after a restart but disappears sometimes.

My template runs firmware 2.2.5
Is it a good idea to upgrade to the latest firmware in this regard?

Mogens

hello

i dont think i can help you , you never had any issues until server upgrade or change so whatever changed has caused your problem.  unfortunately has i mentioned earlier in the week I no longer have the ws1001 installed but you may recall i edited my server.ini file and connected to your server successfully and generated an updated ws1001.txt .

sorry i cant be of much anymore in regards to WS1001..

brian.


Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: HOMEWEATHERSTATION Dashboard template
« Reply #399 on: October 08, 2017, 05:31:28 PM »
good morning

unfortunately im no longer using the WS1001 so i cant confirm anything anymore in reference to this model. however i initially just added
a .htaccess mod before my host fully enabled ssl at all methods initially my domain was only SSL but was notified sometime ago that all access ssl is enabled ftp etc.. . here was my snippet i used for a few months .

RewriteEngine On
RewriteCond %{HTTP_HOST} ^weather\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.weather.com/$1 [R,L]

hope it is of help if not i guess can always try the port 443 ..brian

Good evening Brian,

Thank you for your response. I tried your .htaccess snippet and port 443 but no go and then it struck me that the obvious solution was staring me in the face. Why send the data to an external URL when I running my own server, I just need to use the local name which just happens to be wxserver.

So Server=wxserver.local/pws/ effectively by-passed SSL.

Some tips I have also pieced together from various other discussions: - Anybody who is using a Windows based server for this method. You may have to install ‘Bonjour’. The quickest and easiest way to do this is to install the Windows version of iTunes which includes ‘Bonjour’. If your server is Unix based (macOS or Linux), you should be OK.

I tried it on a Mac Mini (macOS), Raspberry Pi2 (Raspbian) and Intel NUC (Windows 10) and all worked flawlessly. However, I found on the Pi2 I needed to open ports 6000 and 6500 which was not the case with MacOS or Windows which I found rather strange.

Anyway, a solution if anybody needs to use it.

Ian

glad you got somewhere and resolved something in regards to WS1001 .. we live and learn everyday..brian