Community Support

Widget background i...
 
Notifications
Clear all

Widget background images

23 Posts
2 Users
0 Likes
7,305 Views
(@mjasinski)
Posts: 13
Active Member
Topic starter
 

Hi, and thanks for the update!

Currently it looks like, that I get the day picture the whole time. But I still have to double-check this as nights are currently very short here. I will report back at the end of this week!

I understand that you get the sunrise and sunset times from the weather station. Have you thought about using a standard PHP function like date_sun_info for that?

 
Posted : 20/05/2019 10:19 am
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

Hello!

Posted by: mjasinski

Currently it looks like, that I get the day picture the whole time. But I still have to double-check this as nights are currently very short here. I will report back at the end of this week!

Just tell me when you have more on this... 

Posted by: mjasinski

I understand that you get the sunrise and sunset times from the weather station. Have you thought about using a standard PHP function like date_sun_info for that?

Sunrise and sunset are computed with native php functions... And I don't think it's coming from that as the ephemeris widget you've set gives correct values. Do you have something in your PHP error log?

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

 
Posted : 20/05/2019 2:04 pm
(@mjasinski)
Posts: 13
Active Member
Topic starter
 

Hi, I can now confirm, that I get the day picture 24 hours a day. I checked my widgets during sunrise, sunset, night and day times. Nothing plug-in related in my PHP error log.

 
Posted : 27/05/2019 5:49 pm
(@mjasinski)
Posts: 13
Active Member
Topic starter
 

Just to keep you updated: I now have a temporary solution for my site. I use a self-written PHP script as the background image for all four time periods. This script redirects to the proper background images based on date_sun_info() results. According to my first observations, this seems to work. So I get along until there is a bugfix in the plugin. Thanks again for your efforts!  

 
Posted : 29/05/2019 1:18 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

Hello!

That's a good workaround... But that's definitely not normal to have such a behavior. My intuition is that there is something that prevents the plugin from working "normally". It may be another plugin, your theme, your php stack... I don't know.

When you said "Nothing plug-in related in my PHP error log", do you have something in it which is not plugin related?

Can you tell me if, in current textual data, dusks and dawn times are right or wrong?

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

 
Posted : 01/06/2019 2:06 pm
(@mjasinski)
Posts: 13
Active Member
Topic starter
 

Hi,

apart from a single memory exhaustion, my error log is empty.

I hope I picked the correct screen, but this doesn't look right. I would expect to see some weather data at box #3.

 

 

 
Posted : 03/06/2019 6:47 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

Hello!

To have the value, you must choose the right selector. For example, if you want to see civil dawn in local time:

  • for module, choose "ephemeris"
  • for measurement, choose "civil dawn"
  • for element, choose "measurement value"
  • then, choose the format you want to see (here, you can select "local time").

With this process, can you tell me if the dawn and dusk time (and sunset/sunrise) are right?

Thanks. 

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

 
Posted : 04/06/2019 10:09 am
(@mjasinski)
Posts: 13
Active Member
Topic starter
 

Hi, 

I get 22:34 (see attached screenshot for details).

Here is the output of date_sun_info() for my location:

sunrise: 04:41:17
sunset: 21:39:02
transit: 13:10:10
civil_twilight_begin: 03:48:29
civil_twilight_end: 22:31:50
nautical_twilight_begin: 02:13:43
nautical_twilight_end: 00:06:36
astronomical_twilight_begin: 02:00:01
astronomical_twilight_end: 02:00:01

 
Posted : 06/06/2019 7:55 pm
Page 2 / 2