Not quite right...

Good afternoon guys!

I’m installing a weather station for a school and the basic configuration was copied from one of my websites that is fully functional. I’m using Ken’s template with the alt Ajax6 dashboard.

Here’s the link that is working: http://gwinnettweather.com/
And the one that is having issues: http://daculaweather.com/Partee/index.php

The Partee website is hosted on my DaculaWeather.com server in a folder one level below my main site. Everything works EXCEPT the solar, cloud-base script, and I have a bad UV sensor (defective hardware)

I have tried everything I can find to fix the solar issue. I noticed that the $VPsolar is not being populated for some reason, have no clue why, yet the $highsolar is. I’ve tried all I know to try to get the solar to populate correctly with no luck.

As far as the cloud-base script, I can’t find any reason why it shouldn’t be working.

Any ideas?

The V2.1 cloud-base.php script on your site has several issues. That version used mktime() instead of time() and ereg_replace() instead of preg_replace, and those functions are deprecated (or removed) from PHP 7.0.

Try configuring the attached version for your site (it has the fixes needed).

Best regards,
Ken


cloud-base.txt (79.2 KB)

And voila! Ken to the rescue again! :slight_smile: I guess I didn’t expect that since it was working on the other site (same hosting). Go figure.
Thanks Ken!

Now I just need to figure out why the $VPsolar doesn’t populate, only $highsolar. I’m also not getting the solar % but I figured that was related to not populating $VPsolar

Fixed that issue as well. The longitude was wrong in the solar setup and my sunrise was pm and sunset was am… I think the “-” was left off or something. Anyway, fixed that and now my solar and UV are working correctly