Normally all scripts have 644 with “apache”.
The folders (and the contents) to which the scrips write data have 755: ./jsondata ./ chartsmysql/ ./chartswudata/
But your server is using “nginx” and maybe that is different. I have no idea.
Maybe simple trial and error.
Remove the write group and write world form the pwsWD/ folder, it should be 755 at most.
Check the ./jsondata ./ chartsmysql/ ./chartswudata/ folders also.
Set index.php and _test.php back to 644
Then test them if they work.
The above fixed the issue. It seems to work now, but it says my php ver is “Info: Your current PHP version is : 5.4.45” under the easysetup screen. I know you said it should be 5.6 or higher, but is this a problem. It’s odd because hostgator says the ver is 5.6.30. thanks.
When I access your site, it is still not working correctly. => http://www.weather911.net/pwsWD/
The index.php is only partly loaded and 12 scripts fail because of a 500 error.
The database-user & -password fields are simple html fields without any extra checking by easyweather.
If you fill in any normal characters, like 12345444444 , and press save at the bottom,
The field should contain those characters if you start easyweather again.
I therefor assume that the file is not saved when you click the save button. Maybe also because a 500 error.
Win,
A few more questions. I’m not sure I’m using the correct host name, but the credentials are the same ones I have in WD. Why does the cpanel password stay blank? I enter in password , then save, but when I go back, it’s blank again.
Right, but I’m still getting a server 500 error. The http link is direct to my website. I was trying to make sure the php file and the link I entered was properly entered, including the dashes. Still may be a permissions issue which I’m working on. Thanks
Looks like it’s a permissions issue. I see duplicate php files in the main pwsWD folder and then again in the pwswdupdate folder. Do I update all php files in both folders for the duplicates or only one?
Edit. I updated all php files to 644 and scripts seem to be working. I went ahead and setup WD to upload from my station and got the “success” message when I tested, but still not seeing my station conditions, just the sample conditions. I think I need to provide clientraw.txt path in settings? If so, do I fill out the boxes in the WD pic below
can someone tell me why I am getting this error:
Warning: array_key_exists() expects parameter 2 to be array, null given in /home4/jzinckgr/public_html/pwsWD/w34_livedata.php on line 305
The real error is Warning: file_get_contents(…clientraw.txt):
So there is no data to be read, if you meant that clientraw.txt is in the root is should be …/clientraw.txt
But that is not correct either as http://www.weather911.net/clientraw.txt does not exists (404 error) or can not be read.
When there is no data at all, all kind of errors and warnings can occur. Also the array_key_exist which was checking if a certain field existed.
So for now please reset the location of clientraw.txt to “./demodata/clientraw.txt” then there will be no errors messing things up.
Then you can change ONE setting at a time => save after every change => test => only continue when all remains OK
Wim
That’s where I’m confused. WD generates a clientraw.txt file right? I assume this gets uploaded to my host, but I can’t find the file and thus the path to direct to
There is far far to much data that WD can generate and upload. There is a youtube movie and a wiki about what to select and how to upload. Then WD uploads only what you want/need.
Wim
Can get temp, barometer and webcam image to work, but not seeing any wind data or local forecast, current conditions. It’s still showing demo for those. When I open the wuweatherupdate.txt file, it is blank. Do I have to use darksky for conditions and forecast?
I never had an API key from WU so I think that explains why the text file is blank. Wondering if I’ll be able to get one after Feb 15. Seems like a lot up in the air.
Is there a way to use WD to provide 5 day forcst instead of using darksky or metar? I see an option in settings if I’m using clientraw, but not sure where to get the actual frcst file info from. Is it WD?