To change Wim's scripts and change the version to |09| prevents PWS_updates.php [color=red]from downloading new and improved editions released[/color] by Wim.
Mogens
The updates script only set a message "check" and you have to decide what to you want to do.
The update will always contain all new versions of the |01| release.
So if you saw that “check” in the updates page (or run the PWS_updates.php again after the download) you can decide which scripts NOT to update.
SOLUTION ??:
I will write a script you can call from anywhere which returns all weather-values current and history in 1 file.
Hi,
Ok, now my Weather sticker is indipendent of PWS Dashboard scripts.
About the pressure trend it shows the icon only if there is data available.
I tested the $hist and $weather and with Ecowitt custom upload the $weather[barometer_trend] is not valued.
I’ve managed my own PWS_livedata.php to create the barometer trend by chartsmydata/today.txt file
In my previous post I’ve managed the PWS_cron_stationcron.php to save humidity data in chartsmydata/today.txt and months file.
As they are not official PWS files i don’t publish them anymore.
As Wim prefers that my Wheather sticker stays outside the pwsWD folder, I’ve changed its position v. 2.0.
Regards
Antonio
Hi, as it written in bold characters at the top of thiS topic “Pay attention that the script takes the live data from PWS_livedata.php script. So you must have PWS_livedata.php script running.”
If it is running you probaly have put a wrong name at
$pwswd = "pwsWD"; // The name of the folder where is your PWS Dashboard
Or you’ve put the stickerPWS folder in a wrong place.
Please, read carefully the instruction on top of this topic
The barometer trend icon is missing because you don’t have the barometer trend data. If and when you’ll have that data the icon will appear.
Regards
Antonio
Thanks Antonio…for sure the station knows the barometer trend, https://tempestwx.com/station/34184/grid , but apparently the api doesn’t contain the data, at least not in a fashion that would suffice. Not a big deal, the sticker is still very nice.
which file is that code in as i cannot find it in the stickers.php i downloaded tonight file dates 8th Feb. after unzipping should the v2 version not be the 10th Feb.
tried ammending stickers.php and added error reporting (0), which my server requires to run it as attached, but i am not seeing data
i am clearly not understanding this
Thanks Wim. Not sure what the text values “could” be, but modified the code to see if I can make this work. If anybody else with a Weatherflow/Tempest station wants to give it a try here is the code I changed…
if($stickerColor=="black" AND $weather[barometer_trend_text]!="n/a"){
if($weather[barometer_trend_text]=="rising"){
$imageP = "trendUpBlack.png";
}
if($weather[barometer_trend_text]=="steady" AND $weather[barometer_trend_text]!="n/a"){
$imageP = "trendNeutralBlack.png";
}
if($weather[barometer_trend_text]=="falling" AND $weather[barometer_trend_text]!="n/a"){
$imageP = "trendDownBlack.png";
}
}
else{
if($weather[barometer_trend_text]=="rising" AND $weather[barometer_trend_text]!=="n/a"){
$imageP = "trendUp.png";
}
if($weather[barometer_trend_text]=="steady" AND $weather[barometer_trend_text]!=="n/a"){
$imageP = "trendNeutral.png";
}
if($weather[barometer_trend_text]=="falling" AND $weather[barometer_trend_text]!=="n/a"){
$imageP = "trendDown.png";
}
As I can see from your screenshot you don’t have the latest version.
The latest version is the one you can see from my screenshot
Please, try to download again.
Regards
Antonio
Thanks to you all now v.2.1 version is available.
I’ve added the pressure trend from $weather[‘barometer_trend_text’], add the version number at the right bottom of the sticker and rewritten the readme.txt file
Best regards
i eventually got the latest version 2.1 but when http://www.hc-iom.co.uk/stickersPWS/sticker.php is run i get a timezone error but i notice in the stickersPWS folder that a cached-sticker.png is created see attached if i refresh the page i get image warning but i never see the image and as can be seen from the attached its not getting the data either.