cloudy

Author Topic: Graphic sun position  (Read 42612 times)

0 Members and 2 Guests are viewing this topic.

Offline jmcmurry

  • Jim McMurry
  • Posts: 2,336
  • Mauston, WI, USA
    • Juneau County Weather
Re: Graphic sun position
« Reply #30 on: April 13, 2009, 10:19:28 PM »
Mark,

For the arc, try removing the "-" from your longitude.  For the time, you'll need to go back a few posts and grab Pinto's code to add at the beginning of your script and set your time zone.  Also, where you put the -7, that really an "O" (the letter).

- Jim

 Home of NSLog NexStorm Lightning Data Manager

Online ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Graphic sun position
« Reply #31 on: April 13, 2009, 10:30:14 PM »
Thanks Jim. My Longitude starts with  a "-" but the script doesnt like that, Took that out and everything works fine now. Thanks again.
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline jmcmurry

  • Jim McMurry
  • Posts: 2,336
  • Mauston, WI, USA
    • Juneau County Weather
Re: Graphic sun position
« Reply #32 on: April 13, 2009, 10:47:29 PM »
Mark,

It's actually astronomic formulas/calculations that require that versus the geographic side of things. 

- Jim

 Home of NSLog NexStorm Lightning Data Manager

Bashy

  • Guest
Re: Graphic sun position
« Reply #33 on: April 14, 2009, 06:25:33 AM »
Well now its morning i have the same issue, removing GMT removes the sun lol
But having see about "-" in the Longitude i to have removed it and it appears to be ok now...

Thanks guys :)
« Last Edit: April 14, 2009, 06:28:54 AM by Bashy »

Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Graphic sun position
« Reply #34 on: April 14, 2009, 07:48:30 AM »
script updated
Thank you all  :D

Offline Peter Palm

  • Peter
  • Posts: 461
  • It aint much, if it aint Dutch haha ;-)
  • Grave, the Netherlands
    • Weatherstation Grave - Holland
Re: Graphic sun position
« Reply #35 on: April 14, 2009, 10:09:10 AM »
No, thank YOU Pinto for your magic work  :D


Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Graphic sun position
« Reply #36 on: April 14, 2009, 11:41:41 AM »
update hi and low curve
If you use this, update the whole script, had to change some functions


« Last Edit: April 14, 2009, 03:44:01 PM by pinto »

Offline Peter Palm

  • Peter
  • Posts: 461
  • It aint much, if it aint Dutch haha ;-)
  • Grave, the Netherlands
    • Weatherstation Grave - Holland
Re: Graphic sun position
« Reply #37 on: April 14, 2009, 11:44:54 AM »
Great, it looks like this (have to change to Dutch):


Offline Jose1701

  • Posts: 463
  • Germany
    • Wetter in Mülheim
Re: Graphic sun position
« Reply #38 on: April 14, 2009, 11:58:11 AM »
Mine looks similar:

WX Station Type OS WMR200 + UV + modified Solarunit

http://www.wetternet.org


Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Graphic sun position
« Reply #39 on: April 14, 2009, 12:02:29 PM »
Hi Peter
in the //hi position part, try to increase the number to 18 or even more, so your green line comes to the end at the right side

for ($i=0;$i<=18;$i++){

Offline Jose1701

  • Posts: 463
  • Germany
    • Wetter in Mülheim
Re: Graphic sun position
« Reply #40 on: April 14, 2009, 12:05:58 PM »
I tried that, too. But nothing changes.
WX Station Type OS WMR200 + UV + modified Solarunit

http://www.wetternet.org


Offline pinto

  • Posts: 766
  • Belgium
    • weather station Kampenhout
Re: Graphic sun position
« Reply #41 on: April 14, 2009, 12:12:37 PM »
I tried that, too. But nothing changes.
Sorry Jose, but I was looking for a reason why your graph was missing the LEFT part

  $a = ($sun_info[transit]-36000);

you can change that in //hi position part( allways increase with 3600)

it is like a balancing act, left increase and right increase until it is ok
don't overdo it, it only gives your server more to to

Offline Peter Palm

  • Peter
  • Posts: 461
  • It aint much, if it aint Dutch haha ;-)
  • Grave, the Netherlands
    • Weatherstation Grave - Holland
Re: Graphic sun position
« Reply #42 on: April 14, 2009, 12:13:06 PM »
Thanks Pinto, I used 19 instead of 18 and that worked OK  :thumbup:

Offline Jose1701

  • Posts: 463
  • Germany
    • Wetter in Mülheim
Re: Graphic sun position
« Reply #43 on: April 14, 2009, 12:20:10 PM »
Sorry Jose, but I was looking for a reason why your graph was missing the LEFT part

  $a = ($sun_info[transit]-36000);

you can change that in //hi position part( allways increase with 3600)

it is like a balancing act, left increase and right increase until it is ok
don't overdo it, it only gives your server more to to

Thanks a lot. After changing to -36000 and the other value to 19 it works.

By the way, is it possible to include data from testtags.php? I like to have the globalradiation which is in %VPsolar% to display in the graph.

Regards

Jose
WX Station Type OS WMR200 + UV + modified Solarunit

http://www.wetternet.org


Offline MichaelPT

  • Posts: 843
  • Staffordshire Nr Leek
    • Weather-Above
Re: Graphic sun position
« Reply #44 on: April 14, 2009, 12:24:33 PM »
hi everybody

 thank you for this script,  amazing work

  could you explain what the high and low lines  represent in relation
 to the  summer icon  in the graph

I've updated my webpage  I would like to add some text to explain what the different lines mean

mick
  
http://www.weather-above.com/uv1.html

 

cumulus