Weather sticker for PWS Dashboard

Hello,

Very good idea to be able to consult the forecasts

Thinks

I like being able to quickly see the forecast.

-Chris

Hi to all :lol:
The new Dynamic sticker is ready and available on the v4.0
:smiley: :lol: :smiley:
Best regards
Antonio

After updating to PHP version 8, I’ve found that stickerdigit.php does not work. I get a page with “This page does not work”. The other stickers work fine.

https://inaogmogens.dk/stickersPWS/stickercompact.php - works
https://inaogmogens.dk/stickersPWS/sticker.php - works
https://inaogmogens.dk/stickersPWS/dynamic_sticker.php - works
https://inaogmogens.dk/stickersPWS/stickerdigit.php - does not work

I have downloaded the latest version and stickerdigit.php is version 2.9.
I’m a little sorry that stickerdigit does not work as it is the one I prefer on my website.
Is there anything I can do to make it work?

Mogens

Hi,
in the changelog there is:
-4 aug 2021 v3.4 PHP 8.1 ready (please, pay attention because it is changed setup.php file also)
please check better your update
best regards

To be absolutely sure of using the latest edition I have

  • deleted the old stickersPWS folder on the server
  • downloaded a new one from Wheather sticker for PWS Dashboard
  • adapted the new setup.php and changed the background image and made the Danish flag smaller
  • uploaded the new directory to the server,

but still with the same result, - stickerdigit.php does not work, the other three stickers work
Maybe some settings are wrong on the server?

Mogens

Hi,
Ok I saw the issue.
It should be fixed with the latest release.
Please, update it ad give me a feedback
Best regards

Now it works fine
Thank you so much for the help :smiley:

I saw that dynamic_sticker.php is not included in the latest download.
I found it in my “stickersPWS_OLD” folder and it works fine too :slight_smile:

Mogens

I saw that dynamic_sticker.php is not included in the latest download.
Sorry, I forgot it. I've just updated the latest zip folder adding dynamic_sticker too. Thanks a lot for your feedback Best regards Antonio

Sorry .
But in the latest zip folder " dynamic_sticker " I think it does not exist.
Where can I find it ?

Best regards
Alessandro

Sorry, please try again now
Best regards

Hello

Adesso tutto a posto !! (now everything is fine!!)

Best regards
Alessandro

Hello
Even After updating to PHP version 8, I’ve found that stickercompact.php does not work.
I get a page with “This page does not work”. The other stickers work fine.
To be absolutely sure of using the latest edition I have

  • deleted the old stickersPWS folder on the server
  • downloaded a new one from Wheather sticker for PWS Dashboard
  • adapted the new setup.php and changed the background image
  • uploaded the new directory to the server,

but still with the same result, - stickercompact.php does not work, the other two stickers work.

Best Regards
Alessandro

Well done! Sherlock Holmes
but you did not understand that I went back to php 7 to work !!

http://www.meteoarachova.com/phpinfo/test.php

@

Hello everyone!
I want to inform you that in version 5.0 of stickerPWS I have included a script to create a clientraw.txt file for all those who need it but their weather station does not create it.
I created this script to be able to use the ‘Weather Personal Widget’ widget for Android.
I would like to point out that, for the moment, the clientraw.txt file created is not very full. But it is enough to make the above widget work.
In the readme.txt of stickersPWS50.zip you will find some instructions.
I hope I have done something particularly appreciated by those who use PWS_Dashboard with Ecowitt “CustomUpload” protocol.
Best regards
Antonio

PS:You can dowload stickersPWS50.zip always at the same place (see discussion start)

3 Likes

It does not work for me. I don’t know why.
Any suggestions?

Hi, do you have something into your error_log file?

This one works


These do not work


I can’t find any “error_log” file in the stickersPWS folder.

When I run it, it just says that it can’t display the image because it contains errors.

I did a fresh install using PHP 8.2

  1. download
  2. adapted setup.php
    2.1 ‘pwswd’ for the test version
    2.2 ‘fontface’ for the correct font location.
  3. Test the 4 stickers and all 4 work OK
  4. modified setup.php to generate the same problem as you have.

IMHO, the possible cause of the problems
99% sure as only the compact version works when this setting is invalid:
→ Invalid link for 'station' => "station", // jpg icon . . .
Check:
1.1 there should not be .jpg or .png in the name
1.2 the icons should be in the stickersPWS/station-icon/ folder
1.3 there should be a “xxxx.png” and a “xxxBlack.png” icon
Better first test with the original line

    'station' => "station", // jpg icon of your station. You can chouse or upload one in station-icon folder (if you upload a new one you have upload 2 icons one black and one white)

If that fails, please post the zip of your setup.php so that one can test with your settings.


@lacasettabio
There are only “irrelevant” warnings in the log with the correct setup

PHP Warning:  imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /Users/- - -/stickersPWS/dialgauge/phpdial_gauge.php on line 61
PHP Warning:  imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /Users/- - -/stickersPWS/stickercompact.php on line 106
PHP Warning:  imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /Users/- - -/stickersPWS/dialgauge/phpdial_gauge.php on line 67
PHP Warning:  imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /Users/- - -/stickersPWS/dialgauge/phpdial_gauge.php on line 67
PHP Warning:  imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /Users/- - -/stickersPWS/sticker.php on line 163
PHP Warning:  imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile in /Users/- - -/stickersPWS/sticker.php on line 169

The fatal errors which cause the 500-error are:

PHP Warning:  imagecreatefrompng(station-icon/station.png.png): Failed to open stream: No such file or directory in /Users/willemvanderkuil/Documents/weather230/stickersPWS/sticker.php on line 186
PHP Fatal error:  Uncaught TypeError: imagealphablending(): Argument #1 ($image) must be of type GdImage, bool given in /Users/willemvanderkuil/Documents/weather230/stickersPWS/sticker.php:188
Stack trace:
#0 /stickersPWS/sticker.php(188): imagealphablending(false, true)
#1 {main}
  thrown in /stickersPWS/sticker.php on line 188

Succes,
Wim

setup.zip (1,3 KB)
It was all right… I think so.
I send you zip