Stickers



You can generate desired sticker by specifying some parameters in the URL:
The URL of the image will therefore look like this:

....YOUR PAGE URL ... /plugins/stickers/sticker200_120.php?parameter=T&text=Hello&color1=grey&color2=dark_red

The 800x170px sticker also shows image of your station. What you need to do to show the correct image is very simple. In the plugin folder there is another directory called "stations". Inside this directory you will find images for various station models. Choose the one you want. Take this file and paste it directly in the sticker plugin folder. You will see there is already a file station.png, this is the default. What you need to do is simply replace this file with the one you choose - i.e. delete the original station.png, paste one from the stations folder and rename it again to station.png.

Below are some examples, you can view the image URL to see the parameters used for that particular sticker.

Examples


Sticker 800 x 170



Sticker 800 x 150



Sticker 200 x 250



Stickers 200 x 120




Stickers 200 x 120




Stickers 150 x 30








Interactive Sticker

The interactive sticker offer much more possibilities for setting it up.

The only required parameter is "text" - this is what will show up in the sticker heading.

Now let's look at the optional parameters for the default version of the sticker.
In this plugin directory is a directory 'bgs'. Inside it are backgrounds numbered 1,2,3,.... which you can choose from. Likewise, there is a folder 'fonts', where you can specify the font type. If you only pass the parameter text, a default background and font will be used. However, you can customize the look and feel of the sticker much more by specifying additional paramters, let's have a look at them:

Variable

It is also possible to set a variable sticker. One option is use simply a random background, in such case, you simply specify "type=random". You do not give a background number and color. However, in such case a shadow will be used because since the background is random, it can be both dark and light, so we need to make sure the text is visible. In addition to "text" you can specify the "border" and "font".
Probably a more interesting option however, is the option "type=interactive". This is how this option works:
  1. Sun rise and sun set is calcualted for your location
  2. The script determines what time of the day it is. There are several options - day, night, sun rise and sun set. Sun rise is a one-hour interval in the middle of which is the sun rise. In other words 30 minutes before and 30 minutes after sun rise. Likewise, sun set is 30 minutes before and 30 minutes after sun set. Everything that is between those two intervals is "day" and everything before sun rise or after sun set interval, is night.
  3. Based on the time of the day, the script chooses a random background corresponding to that time period
  4. Then, it looks at current rain rate and if it determines that it is more than 0, i.e. it is just raining, it will choose a background with rain drops.
  5. Finally, if you have a solar sensor and if the solar radiation is currently above 800 W/m2, an image with a sun and sunny weather is chosen as a background.
In the interactive option, you can still specify the border and the font type, font color is chosen automatically based on background type. And of course you choose the text, which is always required.

Best thing to do is just play around with it. But just to give you some examples:
the beginning for the interactive sticker is always like this:
mysite.com/plugins/stickers/stickerInteractive.php?....


There are endless examples I could use, just play around trying different settings to find the one that suits you best. You can upload as many images as you want in the 'imgs' directory.

Design

Design selection...

Units

Language



Icons


Temperature

Humidity

Pressure

Wind speed

Wind gust

Precipitation

Solar radiation

Snow

Apparent temperature

Dew point

UV

Visibility

Cloud base

Evapotranspiration

Indoor temperature

Indoor humidity


Sunrise

Sunset

Moon rise

Moon set

Time

Menu

From

To

Fullscreen

Export as image

Settings

Homepage

Webcam

Table

Graph

Map

Steady

Rising

Falling

Warning

Latitude

Longitude

History

Solar eclipse

Lunar eclipse

GPS

Elevation

Day

Month

Year

High temperature

Low temperature

Day

Night

Spring

Summer

Autumn

Winter