Personal weather sticker

Hi,
is there a script to have a personal weather sticker in our PWS dashboard template, maybe based on WU data or other?
Best regards
Antonio

Ok, since there are no answers I have to assume that it does not exist.
I’ll start creating one by adapting some already existing ones for other templates.

A picture is worth a thousand words

As not all of us are aware what you want with “a personal weather sticker in our PWS dashboard template” maybe you could post a screenshot or a link to what you are referring to.
I myself maintain 2 templates and 20+ separate scripts used stand-alone or in a multiple other templates, but I am lost what you want to be included.

Wim

Hi ,
you are right: “A picture is worth a thousand words”; sorry.

I started to work on something like this:

https://www.lacasettabio.it/pwsWD/stickersPWS/stickerInteractive.php

It gets data from PWS_DailyHistory.php script

If there is already something similar I stop my work :wink:

Now I see what you meant.
That is often used as a signature on forums a.s.o. or as a advertisement on local websites.
Be aware that it can increase the load on the website considerably.
F.i. when you have multiple posts on a page each signature on that page is loaded separately.
3 or 4 answers on a page * so many visitors browsing that page can add up.

You should better cache the generated html and return that html for 5 minutes or so.
Maybe your webserver has enough resources but a good amount of dashboard users have a free account.

===

Using PWS_DailyHistory.php gives you never the latest weather-values, nor the correct units as it only supports the two WU units used.

The best way to get the correct weather-data is include-once PWS_livedata.php
The returned $weather array has all current data to use.
The returned $hist array has al high-lows
All values from those arrays are in the correct default station units also.

All settings are also loaded and can be used.

Have fun,

Wim

WessexWeather is using his meteotemplate sticker as his signature already. Perhaps he can share his secret.

Tom


That one is generated by a standard Meteotemplate script .
And even on the internet, one can not share scripts when one is not the original script-author.
Copying and some minimal adapting will not make it a “new script” either.

Why do most signatures / pws-sticker look the same?
Yes you can take a generally used image without copyright marks and write your own code to generate a similar image.
Same as all cars have 4 wheels and a lot of them look similar.
Most scripts are based on this 2005 version from the “first one to write it” Anole’s wxgraphic.php script

Wim

Jachym from Czech Republic is a person who has created the sticker and you can contact him here: http://meteotemplate.com/blog/?page_id=39

Hi, thanks to all of you.
I’m in a good point. I’m just cached the image.
Now I need to change the origin of data to PWS_livedata.php, then a little graphic improvement and it is done :lol:
Regards

I know him well. I just can’t seem to get the BBCode right in order to display the image.


So I was not doing anything wrong, but urls in signatures that do not come from secure servers are ignored.

To get them to display be sure you use ‘https:’

Tom

Hi, what do you think?
There is a good chache; I set it to 5 minutes.
It get data from our PWS_livedata.php
Ther is a little problem with humidity min and max and pressure. I use ecowitt custom upload and it has not theese data.
The sticker are able to use min and max humidity and pressure trend.
Is there min max humidity and pressure trend data with PWS_livedata.php if we use WU?

And all settings are also present.
So no need to have settings for latitude/longitude/station-name

Also, please remove the text PWSDashboard, if you need text there use more general text “Weather-station”
Success, Wim

Hi Wim,
I’d like to make available a test release.
I’m not be able to post it here because it is too big.
Is there another way to upload it?
Best regards
Antonio

No, there are limits to the file-sizes.

It could work like this: Same as I do with the dashboard and all other scripts I support.

Make an extra folder f.i. zips/ on your website.
Then zip the stickerPWS/ folder, give it a meaningful name f.i.sticker2021-02-09.zip and upload it to your website zips folder.
The link to that zip would then be similar as this example

https://www.lacasettabio.it/zips/sticker2021-02-09.zip

Post the complete link in a new topic.
Also in the first post in that topic, describe how to install.
Thats make supporting it easier.

Succes,
Wim

This topic is now locked.
All discussions should go to the new topic.