Okay.

Pushed a fix for that issue - and hopefully that was the issue!

It retains the ability to display the current condition icons, if they
are available, while ignoring the null field that is currently being
sent.

If that all works without issue, or all remains quiet, I'll roll that
up as release v0.6.4

v0.6.5 is patiently waiting in the queue. It offers the ability to
pick up the units (barom, temp, wind, rain) directly from weewx rather
than entering them by hand into skin.conf.
ie;- the WeeWX way :-)


On 30/09/2022, Glenn McKechnie <glenn.mckech...@gmail.com> wrote:
> That does help. Most definitely!
>
> I get a similar error message but it still generates the image,
> regardless of curr_cond_icon setting
>
> What is different is that mine is a Warning, yours is Fatal so it
> likely comes down to how strict php is set - in it's ini file
>
> PHP Notice:  Undefined index:  in
> /tmp/var/www/html/weewx/wxgraphic/index.php on line 480
> PHP Warning:  imagecreatefrompng(): Filename cannot be empty in
> /tmp/var/www/html/weewx/wxgraphic/index.php
> on line 480
>
> I've had a look at that problem spot before,  line 480 - looks like
> I'm running with a few extra lines?? - but i couldn't see anything
> obvious, and as it was running okay so I left it for later. Mea culpa.
>
> Looks like 'later' has now arrived!
>
> Your wxgraphic_weewx.txt output appears similar. I don't have AM in my
> timestamp as I'm running 24hr time. Looks like the script compensates
> for it.
>
> So Yes. It could well come down to my /etc/php/7.0/apache2/php.ini
> settings masking it.
>
> error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
> display_startup_errors = Off
> log_errors = On
>
> But that aside, now has become later. I need to investigate and fix it.
>
> In the meantime I'll edit the repo and turn that off, with a note.
>
> Thanks for the heads up.
>
>
>
>
>
> On 30/09/2022, an oldman <riderrada...@gmail.com> wrote:
>> see if this helps
>> PHP Version: 8.1.10
>> weewx 4.8.0 using weewx-sdr driver
>>
>> wxgraphic_weewx.txt has 08:55:00
>> AM,09/29/2022,48.8,45.0,45.0,73.8,40.8,30.1,Steady,3.1,ESE,0.0,4.0,,07:40:44,19:27:56
>> skin.conf curr_cond_icon = 'yes'
>> php log
>> [30-Sep-2022 07:11:21 UTC] PHP Warning:  Undefined array key "" in
>> /var/www/html/weewx/wxgraphic/index.php on line 473
>> [30-Sep-2022 07:11:21 UTC] PHP Fatal error:  Uncaught ValueError: Path
>> cannot be empty in /var/www/html/weewx/wxgraphic/index.php:473
>> Stack trace:
>> #0 /var/www/html/weewx/wxgraphic/index.php(473): imagecreatefrompng()
>> #1 {main}
>>   thrown in /var/www/html/weewx/wxgraphic/index.php on line 473
>>
>> now if i change skin.conf curr_cond_icon = 'no' all works
>>
>> hope this helps
>> On Friday, September 30, 2022 at 1:40:22 AM UTC-5 Glenn McKechnie wrote:
>>
>>> A road trip! Bonus points.
>>>
>>> I've added a troubleshooting section to the README at
>>> https://github.com/glennmckechnie/weewx-WXgraphic
>>>
>>> Basically what was outlined in my last message but I've uploaded my
>>> working wxgraphic_weewx.txt and config.txt to the
>>> skins/WXgraphic/examples directory.
>>>
>>> I suspect wxgraphic_weewx.txt more than config.txt, but we shall see.
>>>
>>> My email address is in the header of skin.conf If you need to send
>>> any files send them there.
>>>
>>> --
>>>
>>>
>>> Cheers
>>> Glenn
>>>
>>> rorpi - read only raspberry pi & various weewx addons
>>> https://github.com/glennmckechnie
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/5d928a27-d9a1-4604-a934-aed14e368956n%40googlegroups.com.
>>
>
>
> --
>
>
> Cheers
>  Glenn
>
> rorpi - read only raspberry pi & various weewx addons
> https://github.com/glennmckechnie
>


-- 


Cheers
 Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAAraAziGTo3V7rjCcja%2Bg2MurNc-0iY1TtqZUVgKc%2B49HK5zkQ%40mail.gmail.com.

Reply via email to