• Welcome to TodayPlus Boards v2.
 

Moon Phases

Started by Broesel, December 26, 2003, 05:41:28 AM

Previous topic - Next topic

Timmy

Quote from: Broesel
Sorry, but I don't know, where your problem is. I putted the code into
the original slider.txt and tried a little to fit it like you wanted. This is, what I get:
(attached also the changed slider.txt)

Broesel, thank you for your help. Your screendump tells me that you have what I want.

But: please, will you send the good 'slider.txt' to this forum, because the one I downloaded is not the slider of the showed picture (and has no 'moon' and 'sun' in it). Thanks!!!
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Timmy

A little bit changed sunrise.png and sunset.png are attached.
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Quote from: Timmy

Broesel, thank you for your help. Your screendump tells me that you have what I want.

But: please, will you send the good 'slider.txt' to this forum, because the one I downloaded is not the slider of the showed picture (and has no 'moon' and 'sun' in it). Thanks!!!

Sorry Timmy, you are right, got the wrong slider.txt copied.
(I deleted the one I posted before)

Here is the one you wanted:  (edited: deletet attachement, because i could not upload any more files)

Greetings Broesel

sdmaino

Hey guys,

thanks for all.

I could do some job for our italian friends and not only, I hope...  8)

http://www.dark-mojo.com/todayplus/viewtopic.php?p=5706#5706

Best Wishes
Dave

Timmy

Quote from: Broesel
Quote from: Timmy
Broesel, thank you for your help. Your screendump tells me that you have what I want.
But: please, will you send the good 'slider.txt' to this forum, because the one I downloaded is not the slider of the showed picture (and has no 'moon' and 'sun' in it). Thanks!!

Sorry Timmy, you are right, got the wrong slider.txt copied.
(I deleted the one I posted before)

Here is the one you wanted:

Greetings Broesel

Everything works perfect now! Thank you for your good help!!!

I've imported your 'moon'-section in my own slider, and from the beginning everything was all-right. Thanks!
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Yogiman

This is the code in my skin to get the alternating moon en sun.

region,7,0,-1
   image,190,1,sunrise.png,
   suntime,1,sunrise,official,214,2,HH:mm,,,l
   image,190,15,sunset.png,
   suntime,1,sunset,official,214,14,HH:mm,,,l
endregion,7,0


region,7,100,-1

   calcvar,var9,moonphase
   
   if,var,var9,,=,0
   image,200,15,Moon0.bmp,t
   else
   if,var,var9,,=,1
   image,200,2,Moon1.bmp,t
   else
   if,var,var9,,=,2
   image,200,2,Moon2.bmp,t
   else
   if,var,var9,,=,3
   image,200,2,Moon3.bmp,t
   else
   if,var,var9,,=,4
   image,200,2,Moon4.bmp,t
   else
   if,var,var9,,=,5
   image,200,2,Moon5.bmp,t
   else
   if,var,var9,,=,6
   image,200,2,Moon6.bmp,t
   else
   if,var,var9,,=,7
   image,200,2,Moon7.bmp,t
   endif
   endif
   endif
   endif
   endif
   endif
   endif
endregion,7,100

suntime,1,elevation,,133,15,%05.2f,Ele: ,°,l

initvar,var13,0
      
      if,var,var13,,=,0
         jumpregion,7,0
         storevar,var13=1
      else
         jumpregion,7,100
         storevar,var13=0
      endif
Eat well, Stay fit, Die anyway...

Yogiman

Quote from: LawofA
Quote from: YogimanI got it working with my skin too, it looks great thanks you guys.

I have it alternating with the sun up/down.

Hi Yogiman:
Can you post your skin?

LawofA

Hi,

you can find it here: http://www.dark-mojo.com/todayplus/viewtopic.php?t=1121

Yogi
Eat well, Stay fit, Die anyway...

fishboy

Here is a sample code using the imagemeter command to display the moon phases.

calcvar,var30,moonphase,1
calcvar,var30,*,%var30%,25
imagemeter,0,0,%var30%,moon phases.png,tr,0,200

var30 is multiplied by 25 because this is the size of each moon image within the png file (which is 200x25 pixels in size).

For the imagemeter command, the format is:

imagemeter,<x>,<y>,<current value>,<image name>,<image options>,<min value>,<max value>

Below is the image file to use (Broesel's png file with some corrections).

EDIT:  Here is the correct implementation of the imagemeter command (thanks srs).


calcvar,var30,moonphase,1
imagemeter,0,0,%var30%,moon phases.png,tr,0,7
Axim X5 Advanced, Windows Mobile 2003

Lordtwisted

Here is a pick of LTwisted Version 0.11.0 with sun/moon data.

Here are some of the new stuff.

Full png icons for the weather and new moon and sun icons with full png support looks so much better then .bmp's. Icons i have made.
Sun icons only display when the sun is out, 10 diffrent sun icons to go with the sun elevation.

Brightness added to battery+

these are just some of the new things. I will be posting it latter tonight with the new icons and such.

oh by the way you shuldnt use var9 for you'r moon data becouse var9 is used in the weather region.

Thanks Lordtwisted

Broesel

Yes Lordtwisted, that looks really nice ....

can't await to try your new skin ....


Greetings Broesel

MadTxn

I've got weather and etc. for two cities:

Burtonsville, MD, 20866, 39.0787,-76.93307
New York, NY, 10012, 40.72553,-73.99828

For those in other countries, these two cities are <300 miles apart on the east coast of the US.  Today, T+ is showing that they have the same moon visibility, but showing different moon phases.



Any ideas? Cuz I'm pretty sure this isn't correct. But I could be wrong.  Oh yeah, here's the relavant code:


load,city,%var6%
calcvar,var18,moonphase,%var6%
imagemeter,0,0,%var18%,moon_phases.png,r,0,7
moontime,%var6%,rise,official,26,2,HH:mm,,,l
moontime,%var6%,set,official,26,16,HH:mm,,,l
moontime,%var6%,visible,,0,30,,, % visible,l

Timmy

Quote from: LordtwistedHere is a pick of LTwisted Version 0.11.0 with sun/moon data. Here are some of the new stuff.  

I will be posting it latter tonight with the new icons and such.

Little question: I suppose, your latest skin with the moonphases isn't posted yet?
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

dp1don

Hmmm... same stuff here, MT

Although I'm using Broesel's moon code (not using the image variable).

As you can see, Everett WA and Key West FL, are far apart...but not THAT FAR!

Hmmm... might it have something to do with Lat?

No, because Moon 3 (Flagstaff) shows the same as Everett, not Key West...

dp1don

Lordtwisted

Timmy, no i didn't relese it yet, becouse i am adding some new ideas. I was going to post it and thought of something else i should have it up by tomorrow.


Lordtwisted :D