Apesbrain wrote: 
> If you come up with a solution for this, will you let me know?  The
> screen posted above by Pommes appears to show this, but I looked at his
> code and it specifies ["period":"d1"] which I'm pretty sure is tomorrow.

In my view this is a limitation of the data available from the weather
site.  Depending on the time of day the data only contains the forecast
high or forecast low.  High during the day and low during the night. 
These are available in the -1 through 3 periods using the %z or %Z macro
variables.  %!z and %!Z provide the same values without the "High / Low"
prefix and degree symbol suffix.

The periods change as shown below depending on time of day.  

I'm open to ideas on how to improve this.


Code:
--------------------
    
  #   Period defintions
  #   Period  Day                 Night
  #   ------  -----------------   --------------
  #   -1      Current             Current         
  #    0      Today               Tonight         
  #    1      Tonight             Tomorrow        
  #    2      Tomorrow            Tomorrow Night  
  #    3      Tomorrow Night      N/A
  
  
  
  
  s/%z/$wetData{$location}{'forecastType'} 
$wetData{$location}{'forecastTempF'}°/;
  s/%Z/$wetData{$location}{'forecastType'} 
$wetData{$location}{'forecastTempC'}°/;
  s/%!z/$wetData{$location}{'forecastTempF'}/;
  s/%!Z/$wetData{$location}{'forecastTempC'}/;
  
  
--------------------


------------------------------------------------------------------------
BoomX2's Profile: http://forums.slimdevices.com/member.php?userid=33529
View this thread: http://forums.slimdevices.com/showthread.php?t=14327

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to