Author Topic: Home Weather Station Dashboard Version 4.33  (Read 41977 times)

Offline JennyLeez

  • Administrator
  • Hero Member
  • *****
  • Posts: 10092
  • Country: nz
  • Karma: 656
  • Gender: Female
  • Wairoa
    • Wairoa, Hawkes Bay Weather
  • Station: WS3085
Re: Home Weather Station Dashboard Version 4.33
« Reply #20 on: July 14, 2016, 12:33:13 AM »
That is all in settings:

Code: [Select]
$metric = true; // true for metric units, false for imperial/non metric units
$unitsLnk= 'metric'; // metric or english for non metric
$windmu = 'km/h'; // 'm/s' or 'km/h or mph' for units selection
$windunits = 'KM/H'; // set template output for wind units displayed use capitals MPH,KMH,M/S,KTS
$indoorunit ='Celsius'; // template temperatures units Celsius or Fahrenheit
$templateunit = '&degC'; // set template output for temp units displayed use capitals F or C
$rainunit = 'mm'; // set template output for rain units displayed  in or mm
$pressureunit= "hPa";// set template output pressure units displayed  in or mb

Yes one of the cron jobs updates the weather forecast leeched from weather underground :)

Cheers
Living in Wairoa, Northern Hawkes Bay
Website: wairoa.net/weather

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3702
  • Country: nz
  • Karma: 410
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Home Weather Station Dashboard Version 4.33
« Reply #21 on: July 14, 2016, 09:08:16 AM »

Thought that might be the case. [Edit] Ah! if I'd read the previous posts properly, someone says just that!
I did check all the settings were in metric and celsius.
Can't make up my mind whether I prefer white or black!


« Last Edit: July 14, 2016, 12:49:38 PM by TonyC »
Davis VP Pro2 wireless with Solar sensor using Weather Display (ver10.37S(Build93) running on a Micro PC Windows 10
Port Robinson, North Canterbury weather station: Port Robinson, NewZealand

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3702
  • Country: nz
  • Karma: 410
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Home Weather Station Dashboard Version 4.33
« Reply #22 on: July 14, 2016, 04:41:58 PM »
I can't seem to get them the Cron scripts to execute even using Pauls remote solution @ cron-job.org
[sigh]
« Last Edit: July 14, 2016, 05:12:45 PM by TonyC »

Offline gabba

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 2153
  • Country: 00
  • Karma: 213
  • Gender: Male
    • Hutt Weather
  • Station: Vantage Vue, Weather Display, Webcam.
Re: Home Weather Station Dashboard Version 4.33
« Reply #23 on: July 14, 2016, 07:34:42 PM »
Here's mine - a WIP as it still needs a bit of centering, updated header etc.

Current Conditions

@TonyC can you post up your Cron commands? and website?

« Last Edit: July 14, 2016, 10:21:01 PM by gabba »
Cheers, Andrew

Vantage Vue, Weather Display, Webcam.
www.huttweather.co.nz

Maungaraki, Lower Hutt, New Zealand

Offline Wolfie33

  • Administrator
  • Hero Member
  • *****
  • Posts: 4080
  • Country: nz
  • Karma: 168
  • Gender: Male
    • Opotiki Town Weather
Re: Home Weather Station Dashboard Version 4.33
« Reply #24 on: July 14, 2016, 08:17:06 PM »
And here's mine
Opotiki Weather HOME WEATHER STATION
I still prefer the white version but the colours are a bit . . er . . naff?
A bit of tweaking would improve the visual impression I reckon.

Not impressed with WU current conditions . . .
Last week it showed rain for 4/5 days when it was plainly dry.
Switched the forecast station to Whakatane for a while, matched for about a day, then incorrect again.
I think WU seems to switch between WHK & Gisborne for my location, pretty poor in my eyes.

My monitor at home displays  the footer in poor resolution, much better at work.
Aercus WS2083, Cumulus 1.9.4 on Windoze XP
Sensors on a broomstick in back yard, for now!!
Web:  Opotiki weather

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3702
  • Country: nz
  • Karma: 410
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Home Weather Station Dashboard Version 4.33
« Reply #25 on: July 14, 2016, 09:01:16 PM »
@TonyC[/url] can you post up your Cron commands? and website?
The server is a Synology NAS running PHP5.6. running on Apache2.2
Using cron-job.org you supposedly only have to put in the url for it to run the php script.
You can include an admin login and password to overcome http security. The URL is
Port Robinson, NewZealand

The gurus have got cronjobs going on Synology Diskstations, but I'm not that keen to go poking into the innards. The consensus is that Cron won't work on Synology Diskstations.

Trying to run the PHP script from a web browser give the following response:-

Warning: file_put_contents(../jsondata/forecast10day.json): failed to open stream: Permission denied in /volume1/web/pws/cronfiles/forecastcron.php on line 19 Warning: file_put_contents(../jsondata/hourly.json): failed to open stream: Permission denied in /volume1/web/pws/cronfiles/forecastcron.php on line 27

So perhaps security is the problem.

TC

« Last Edit: July 14, 2016, 09:43:48 PM by TonyC »

Offline gabba

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 2153
  • Country: 00
  • Karma: 213
  • Gender: Male
    • Hutt Weather
  • Station: Vantage Vue, Weather Display, Webcam.
Re: Home Weather Station Dashboard Version 4.33
« Reply #26 on: July 14, 2016, 10:18:32 PM »
Yes. Looks like a security issue.  I had alot of issues with mine mostly due to bumble fingers around paths etc. But it looks like yours are finding the files just not able to execute them

Offline JennyLeez

  • Administrator
  • Hero Member
  • *****
  • Posts: 10092
  • Country: nz
  • Karma: 656
  • Gender: Female
  • Wairoa
    • Wairoa, Hawkes Bay Weather
  • Station: WS3085
Re: Home Weather Station Dashboard Version 4.33
« Reply #27 on: July 14, 2016, 10:22:19 PM »
I'll whistle up Paul and see if he has any suggestions Tony.

Command 19 and 27 are attempting to write to your server, so yes security could be the issue.
Stabbing in the dark here but could changing permissions help for the json files.
../jsondata/forecast10day.json
../jsondata/hourly.json

Meanwhile like Gabba I have been playing with embedding the dashboard into my shell.
Cept I dont like the line across the bottom and I dont need the menu up top.
Anyways here is what I have so far.

Wairoa Weather Dashboard
« Last Edit: November 08, 2016, 10:51:19 AM by JennyLeez »

Offline JennyLeez

  • Administrator
  • Hero Member
  • *****
  • Posts: 10092
  • Country: nz
  • Karma: 656
  • Gender: Female
  • Wairoa
    • Wairoa, Hawkes Bay Weather
  • Station: WS3085
Re: Home Weather Station Dashboard Version 4.33
« Reply #28 on: July 14, 2016, 10:25:29 PM »
Something I just remembered I have read is some servers can not handle the jumping backwards and forwards into folders and back out again.

For some reason some servers screw php scripts.

I know this does not help but keep in the back of your mind before beating your head against a brick wall :)


Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3702
  • Country: nz
  • Karma: 410
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Home Weather Station Dashboard Version 4.33
« Reply #29 on: July 14, 2016, 10:32:40 PM »
I did look at the file permissions on the jason files and they are read/write.

I have thought of maybe installing PHP on a windows machine to execute the scripts and copy the files back to the server, but I'm not sure it's worth the effort.

Maybe it's one of those shrug your shoulders and move on projects! ::)

Offline weatherist34

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
  • its just my hobby
    • homeweatherstation dashboard
Re: Home Weather Station Dashboard Version 4.33
« Reply #30 on: July 15, 2016, 09:26:36 AM »

can you provide a url ?

you can also test the cron files direct in your browser http://something.com/something/cronfiles/stationcron.php  or forecastcron.php  or whatever the direct path is to those 2 files .  most of the time it is file permission related 644 or 755 work ok on most servers however paths can be related


<?php
//disable error logging
   error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
    ini_set(“display_errors”,”off”);
   // extras added march 23rd 2016 //
date_default_timezone_set($TZ);
$date = date_create();
//***get station id weather every 10 minutes for home weather station***//
$json = file_get_contents('http://api.wunderground.com/api/'.$api.'/conditions_v11/q/pws:'.$id.'.json');
$data = json_encode($json);
$file = '../jsondata/weather.json';
file_put_contents($file, $json);
?>

also double check the api key in the settings.php

thats all i can think for now

and as for light or dark personally the light version i found the dark version nigh on useless in sunlight on my iPad when out and about..

forgot to add it was upgraded to 4.34 includes more accurate moon script data and better wind direction transitions on tablet devices ..

please note if you want to use it inside a shell or current website via an iframe the width is 960px some users in the past try to reduce it to 900px and screws up the alignment of the content inside the boxes

as for accuracy of weather underground i never like using any external resource for data but for me personally WU was the most accurate for Istanbul,Turkey , yahoo was on another planet often 10 degrees plus out just like today, accuweather another forecast predicting 40c for us tomorrow ! throw that in the bin probably get up around 33c as for anything else no experience of how there scripts and data files work...



brian
« Last Edit: July 15, 2016, 09:35:12 AM by weatherist34 »

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3702
  • Country: nz
  • Karma: 410
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Home Weather Station Dashboard Version 4.33
« Reply #31 on: July 15, 2016, 05:22:22 PM »

Brian,
I did provide the URL in an earlier post, plus the output from calling the URL in a browser.
For some reason, the script won't write to the jason files
I did also check the API key was entered correctly (like 5 times). Checking the API on WU, the script obviously interogated it (shows up on the graph).
Maybe Synology diskstation hasn't provided the facility to run Cron files for a reason. After all, it started out as a media server and expanded into a many purpose appliance.  It does the simple things well, but obviously has limitations.

cheers
TC

Offline weatherist34

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
  • its just my hobby
    • homeweatherstation dashboard
Re: Home Weather Station Dashboard Version 4.33
« Reply #32 on: July 15, 2016, 07:14:09 PM »
ok Tony

drop me an email sometime i can make a version that does not require cron jobs however you are limited to 500 calls per day sounds a lot but for each script that uses WU forecast,hourly,current sky,outlook you need the api so that 4 x each time a visitor comes to your page .

just let me know which version you require drop me an email and next week monday onwards ill set one up and zip it up and send it to you.  but i do need your api key so email it please don't send it here .

for example this one setup earlier in June doesn't use cron jobs but the downside is they are a one off and I cant produce any updates for these as the scripts are different..Kvissel Braending HOME WEATHER STATION 

brian


Offline weatherist34

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
  • its just my hobby
    • homeweatherstation dashboard
Re: Home Weather Station Dashboard Version 4.33
« Reply #33 on: July 15, 2016, 11:03:48 PM »
tony its on the way

but read the email carefully very limited to api restrictions of 500 calls. not perfect but it works fine.  you will need to add your clientraw.txt path as i couldn't access yours in anyway . note no earthquake data not possible without cron job..

have a nice weekend

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3702
  • Country: nz
  • Karma: 410
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Home Weather Station Dashboard Version 4.33
« Reply #34 on: July 15, 2016, 11:33:20 PM »
HaHa!!

You must have been working on it while I was having a play. I got a wagging finger from Weather Underground about exceeding my API call over the space of a minute.

I installed the Windows version of PHP and have played around with the scripts. I think Jenny is right and the Diskstation doesn't like the directory structure references in the cron scripts. I may have a further play sometimeand may eventually get your original to work

Anyway, thanks for that and I'll put it up on line this weekend. I don't get a lot of visitors to the site as it's fairly remote, so hopefully WU won't be nagging me too much.

Thanks again

Tony C

Offline JennyLeez

  • Administrator
  • Hero Member
  • *****
  • Posts: 10092
  • Country: nz
  • Karma: 656
  • Gender: Female
  • Wairoa
    • Wairoa, Hawkes Bay Weather
  • Station: WS3085
Re: Home Weather Station Dashboard Version 4.33
« Reply #35 on: July 15, 2016, 11:38:08 PM »
After all the time spent on this Tony and Brian, I for one will look forward to seeing it up and running.

Good luck for the weekend Tony :)

Cheers
JL

Offline PaulMy

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 4241
  • Country: ca
  • Karma: 242
  • Gender: Male
  • Enjoy!
    • KomokaWeather
  • Station: Davis VP2 Plus w/24 FARS 6163
Re: Home Weather Station Dashboard Version 4.33
« Reply #36 on: July 16, 2016, 01:39:26 AM »
Yes, best of luck with it Tony.

p.s. check your PM re my email from a couple of days ago being undelivered.

Paul

Offline TonyC

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3702
  • Country: nz
  • Karma: 410
  • Gender: Male
    • Port Robinson Home Page
  • Station: Davis Vantage Pro 2
Re: Home Weather Station Dashboard Version 4.33
« Reply #37 on: July 17, 2016, 12:11:15 PM »
Thanks Paul and Brian,

I've had a good play with both the customised version and also manually reproducing the json files by running the scripts from a command line. I don't want to be a damp squid and the following comments may be due to the fact that my station is not in a populated area or near any large town.

I very much like the look of it and obviously much work has gone into the production. For me it's the Weather Underground info that is a bit disappointing.

At the time of writing (11.30am Sunday), the current conditions graphic is rain whereas it is only cloudy with no rain in sight. I'm presuming that comes from WU? It certainly doesn't agree with the Weather Display conditions.  The forecast for the next 2 days has a rain/sun graphic. The NZ Met service forecast has no rain forecast and it is their 7 day forecast I use for my main weather page. The Earthquake report is not quite as specific as GeoNet. A 4.8 quake reported as being on the west coast of NZ was according to GeoNet  a 4.6 well to the south of NZ near Snares Island.

Given the conflicting info I do have reservations on putting it up as an adjunct to my existing page. I'll continue to monitor the variants more out of interest than anything else. Thank you Brian for your custom copy. I think if I published your program, it would be the production copy and I'd set up a batch file with scheduler on my Weather Display computer to produce the json files on a timed basis rather than run the risk of the API being over the limit. The unknown possible usage is too much of a risk and though you suggest setting up an number of API's, I don't want to go down that track.
As I say, these observations are just perhaps unique to my particular situation, and I don't want to put off other users giving it a go!

[EDIT] 5.40pm Sunday - What I've now done is copy the cron files and the setup.php into the jsondata directory and edited the cron files taking out any paths to the json files.
My main PC has PHP for windows installed and a drive mapped to pws directory on the server. I have a .bat file in the jsondata dir which calls PHP.exe and executes both the cron files. The batch file runs every 30 minutes using Windows Scheduler.  I'll give it a good trial and see how it goes!  By the way it is up and running on my server. Port Robinson, NewZealand

All the very best

Tony C.
« Last Edit: July 17, 2016, 06:49:58 PM by TonyC »

Offline weatherist34

  • Newbie
  • *
  • Posts: 6
  • Karma: 1
  • its just my hobby
    • homeweatherstation dashboard
Re: Home Weather Station Dashboard Version 4.33
« Reply #38 on: July 17, 2016, 09:53:48 PM »
Hi

before anyone makes an assumption please read below you perhaps will understand my decision .

due to circumstance i now find myself in and if you are aware of the news on a regular basis you will hopefully understand why I no longer
can develop or continue to contribute to the weather template.

unfortunately events that have occurred here in Istanbul,Turkey in the last 6 months as increasingly caused myself much mental stress and grave concern for
my wife and my personal welfare .right now for the last two days we have not slept or gone out of the house and still feel much uncertaintiy ahead of us we pray for the opposite but these circumstances are beyond our control  .

I hope to find someone who can take over and support and continue to develop it with the same outlook to design and user experience , i have emailed a few who I think share the same outlook and have the experience to continue developing it and offer some reasonable support.it doesn't actually require much most common issue is cron jobs and where server configurations can be different.

IM SO SORRY really mean that I enjoy the weather challenge and have been a keen hobbyist on and off since i was 16 years old I'm now 54(soon) .

so there we are I'm sure in the near future hopefully someone will keep it going if not and you have copies of the template feel free to develop it and maintain it for yourself .

sometimes more important things in life drive the decision and right now that is the case for me personally.

hopefully the template will inspire others to create template designs using clean UI's web development, technology is rapidly changing and user experience is now at the forefront of those new designs . user experience is important functionality needs to be balanced with the user interface to often it is ignored and the end result is not a pleasant user experience especially in the day and age of touch screen devices .

if you are interested in developing or continuing development please drop an email we can Skype and i can provide some details to transfer the necessary files and information.

take care Brian

Offline Wolfie33

  • Administrator
  • Hero Member
  • *****
  • Posts: 4080
  • Country: nz
  • Karma: 168
  • Gender: Male
    • Opotiki Town Weather
Re: Home Weather Station Dashboard Version 4.33
« Reply #39 on: July 17, 2016, 11:19:40 PM »
Hi Brian

So sorry to hear that.
Thank you so much for your efforts, & also to those who have assisted.
I love the layout, it lays out a ton of info, both visual & data & seems pretty solid.
Ok, so the colours don't quite suit my eyes, but I'm sure that could be fixed, given a little time.

I hope things settle down where you are, and you find some sense of normality for yourself & your family soon.

Cheers & take care
Pat


Share via twitter

xx
Home Weather Station Dashboard 3.4 - forecast

Started by TonyC

6 Replies
8793 Views
Last post October 05, 2017, 07:26:28 PM
by TonyC
xx
Free to good home...complete weather station!

Started by hbweather

2 Replies
7335 Views
Last post December 16, 2013, 12:51:46 PM
by hbweather
lamp
What do we think about Weather Underground's new Dashboard?

Started by JennyLeez

44 Replies
39567 Views
Last post October 09, 2015, 11:33:17 AM
by JennyLeez
xx
Starlink, Home Webstations, Weather Display

Started by TonyC

0 Replies
5303 Views
Last post September 17, 2024, 10:26:35 PM
by TonyC
question
Looking for Members using Weather Display Version 10.37R Build 281.

Started by JennyLeez

3 Replies
5262 Views
Last post July 14, 2015, 12:10:54 AM
by JennyLeez