So did I (see here) but then it doesn’t look so good on my very old tablet. So I have a separate simple2.php with no top margin or background image for the tablet.
Colour transparency is different too: 0.3 with image, 0.6 without.
This is also much easier to read if you view the site on a mobile phone.
However then, to my eyes at least, the font size is if anything too large. I wonder if it will be possible eventually to adapt the size of the font to the viewport.
@ALL I forgot to count how many times I asked to add a link (URL) to your site.
As I need to find possible errors, it took me another 15 minutes to find the site. Waste of time.
And only two minutes to find the cause of this problem
=> “invalid / unknown formatted” clientraw.txt
==> causing a javascript error when processing the data.
These errors one can find by running the simple.php script => right-click and select “inspect” in Chrome or FF.
[color=red]Uncaught SyntaxError: Invalid or unexpected token at execute_data (simple.php:235) at :1:1[/color]
The added line will remove the new-line/CR which seems to be inserted in $weather[“swversion”]
Your clientraw.txt has a “new-line/CR” character where normally the clientraw-version is contained.
@ALL This optional script is available for download here.
It will not be included in the standard update.
Isn't there a link missing at "here"? Or do you mean the linked script in [post #1](http://discourse.weather-watch.com/p/555770)?
What's wrong with putting the script in the standard repository? I think that would be helpful.
What's wrong with putting the script in the standard repository? I think that would be helpful.
Oliver
I want to slim down the PWS-dashboard "repository" not extend with all possible additional scripts.
As soon as i include those scripts I have to maintain them also.
I just hope that other authors can pick the add-ons and enhance them.
Or develop other enhancements based on the current add-ons
I don’t have a dashboard image so I just defined one in _data.php, round about line 60:
ob_end_clean();
#
$body_image = '../out1.jpg'; # comment this line if no background image required
#
if (isset ($body_image) && $body_image <> '' && file_exists($body_image) )
Then I altered line 162 in simple.php to move the tiles down:
body { margin: 0 auto;
padding: 80px; /* was 0 - alter this to move template up/down ###### */
font-size: 14px;
line-height: 1.2;}