Hmmm.

A browser request to the wxgraphics directory should get a response.

Mine can be called using the following URL in a browser. (working example)

http://203.213.243.61/weewx/wxgraphic/

which is a short hand way of calling

http://203.213.243.61/weewx/wxgraphic/index.php

either one should work if everything is configured / working correctly.

My web server is already set up for php so I'm not sure if I'm missing
something else. I'd expect the server to work for index.php if the
PHP_verify.php page works, and I'd imagine that Steeple Ians
configuration would be fully php enabled - weather34 if I'm correct?
so...

Just downloaded from the repo and I can confirm that it still works
(for me). I didn't bugger anything up there.

We'll look at everything on your webserver.

Should be 20 files and 3 directories under /html/weewx/wxgraphic

In there are 2 files that we are most concerned with.
config.txt,  because we change its values.

then under /html/weewx/wxgraphic/DATA there should be 2 files with the
other important one being wxgraphic_weewx.txt

For example, my wxgraphic_weewx.txt contains...

07:39:00,30/09/22,11.4,8.3,8.3,70.3,6.1,1027.2,Rising
Slowly,11.0,SSE,0.0,13.9,,06:01:57,18:27:40

That's 16 columns, one of which is blank - ,,

If you send me your config.txt and wxgraphic_weewx.txt I should be
able to plug them into my setup and see if they work here. I assume
there have been no edits to skin.conf so I'll ignore that for the
moment.

The html error.log (perhaps /var/log/apache2/error.log ) should have
no additional entries with a default installation, and with
curr_cond_icon = 'no' reset in skin.conf

You can send them to the list or direct to my gmail email address that
should be in the email header.

I'll upload a working wxgraphic_weewx.txt to the repo too. If you have
doubts on yours then fetch that and try it (in the brief window before
it gets overwritten by yours.)

On 30/09/2022, 'Steeple Ian' via weewx-user <weewx-user@googlegroups.com> wrote:
> Yes, having the same issue here. PHP 8.1.9 enabled with GD, index.php
> generated but 0bytes, just a blank rectangle. No obvious clue in the error
> log.
> Ian
>
> On Thursday, September 29, 2022 at 2:01:40 PM UTC+2 scott.d...@gmail.com
> wrote:
>
>> First, THANK YOU!!!!! This is awesome.  I cannot tell you how much I
>> appreciate this.
>> I am having some trouble generating the graphics though.
>>
>> Installed the weewx extension.  Files exist in /etc/weewx/skins and are
>> generating in /html/weewx/wxgraphic  however I cannot get any weather
>> stickers/banners
>> PHP_verify.php is all okay with GD enabled.
>> *What might I do to get the graphics generated?*
>> Scott
>>
>> On Wednesday, September 28, 2022 at 8:59:49 PM UTC-4 Glenn McKechnie
>> wrote:
>>
>>> A couple of wet days have resulted in a working, WeeWX installable,
>>> version of that wxgraphics package (Weather Graphic) I mentioned
>>> previously.
>>>
>>> https://github.com/glennmckechnie/weewx-WXgraphic
>>>
>>> The original wxgraphic_6.3 is available as a release, but it isn't fully
>>>
>>> integrated with wee_extension.
>>> The better and latest version (v0.6.4) is available for download as
>>> main.
>>>
>>> (added to the weewx/wiki as under Services :  WXgraphic - Weather
>>> Graphic: A php driven generator to create a weather graphic image via
>>> your
>>> web server)
>>>
>>>
>>>
>>>
>>>
>>> On Monday, 26 September 2022 at 4:30:38 pm UTC+10 Glenn McKechnie wrote:
>>>
>>>> On 24/09/2022, Scott Danville <> wrote:
>>>> > Can WeeWx generate a constantly updated .png graphic to be used on a
>>>> > weather site such as the one shown hear?
>>>> > If it does not, can this feature be added?
>>>>
>>>> That looks similar to the ouput of wxgraphic. A php script that
>>>> generates a png file from clientraw.txt. It returns a png file upon a
>>>> server request to wxgraphic.php. You obviously still need a web facing
>>>> server that can hadle php files, and that's not located in the Czech
>>>> Republic.!
>>>>
>>>> https://saratoga-weather.org/wxtemplates/plugins.php
>>>> https://saratoga-weather.org/legacy-scripts/wxgraphic_6.3.zip
>>>>
>>>> The files origins are available via the web archive.
>>>>
>>>> https://web.archive.org/web/20130105094954/http://scripts.anolecomputer.com/wxgraphic/
>>>>
>>>>
>>>>
>>>> Back in 2018 I was playing around with it and got it working with a
>>>> WL_stickertags file which provides suitable data via a cheetah
>>>> template, for an australian site.
>>>>
>>>> https://www.australiawx.net/instructions.php
>>>>
>>>> I co-opted that templates output but somethings changed in the
>>>> intervening years ... ie:- it needs tweaking to work again.
>>>>
>>>> Interested? If so I'll spend some time on it, it's currently raining
>>>> so...
>>>>
>>>> --
>>>>
>>>>
>>>> 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/e593fe74-f3bc-4d46-8f39-7f67fd81b91fn%40googlegroups.com.
>


-- 


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/CAAraAzi7eTOjcy%2B%3DwE4RwAkG6fVjsvRiGA6H1b4qUua8AnwCgg%40mail.gmail.com.

Reply via email to