espaper-server-php icon indicating copy to clipboard operation
espaper-server-php copied to clipboard

Browser Error

Open anthonyjclarke opened this issue 8 years ago • 5 comments

** Newbie Alert ** :) Looked easy so followed instructions exactly (I thought) When I open a browser and point to : http://localhost:8080/index.php?battery=123&output=svg

I get attached screen.

squix

I'm on a Mac OSX latest.

anthonyjclarke avatar Nov 04 '17 20:11 anthonyjclarke

Hi Anthony

I apreciate a lot that you are trying this out. When you replace "svg" with "json" in the URL you will see more output, probably a php error message... could you have a look what that is?

Dani

squix78 avatar Nov 05 '17 09:11 squix78

Here is the output :


Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90
{ "meta": { "height": 296, "width": 128 }, "commands": [ { "command": "registerFont", "params": { "url": "/fonts/MeteoconsPlain42", "fontFamily": "Meteocons", "fontStyle": "Plain", "fontSize": "42", "fontName": "MeteoconsPlain42" } },

{ "command": "registerFont", "params": { "url": "/fonts/MeteoconsPlain21", "fontFamily": "Meteocons", "fontStyle": "Plain", "fontSize": "21", "fontName": "MeteoconsPlain21" } },

{ "command": "registerFont", "params": { "url": "/fonts/MoonphasesPlain36", "fontFamily": "Moonphases", "fontStyle": "Plain", "fontSize": "36", "fontName": "MoonphasesPlain36" } },

{ "command": "registerFont", "params": { "url": "/fonts/ArialPlain10", "fontFamily": "Arial", "fontStyle": "Plain", "fontSize": "10", "fontName": "ArialPlain10" } },

{ "command": "registerFont", "params": { "url": "/fonts/ArialPlain16", "fontFamily": "Arial", "fontStyle": "Plain", "fontSize": "16", "fontName": "ArialPlain16" } },

{ "command": "registerFont", "params": { "url": "/fonts/ArialPlain24", "fontFamily": "Arial", "fontStyle": "Plain", "fontSize": "24", "fontName": "ArialPlain24" } },

{ "command": "fillBuffer", "params": { "color": "1" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "LEFT" } },

{ "command": "drawString", "params": { "x1": "2", "y1": "-2", "text": "Updated: 2017-11-05 09:16:55" } },

{ "command": "drawLine", "params": { "x1": "0", "y1": "11", "x2": "296", "y2": "11" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "RIGHT" } },

{ "command": "drawString", "params": { "x1": "274", "y1": "-1", "text": "0.88V 0%" } },

{ "command": "drawRect", "params": { "x1": "274", "y1": "0", "x2": "18", "y2": "10" } },

{ "command": "drawRect", "params": { "x1": "293", "y1": "2", "x2": "1", "y2": "6" } },

{ "command": "fillRect", "params": { "x1": "276", "y1": "2", "x2": "0", "y2": "6" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "LEFT" } },

{ "command": "setFont", "params": { "fontName": "MeteoconsPlain42" } },

{ "command": "drawString", "params": { "x1": "5", "y1": "20", "text": "R" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "15", "text": "Zurich" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "50", "text": "Rain" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain24" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "25", "text": "10.9°C" } },

{ "command": "drawLine", "params": { "x1": "0", "y1": "65", "x2": "296", "y2": "65" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "CENTER" } },

{ "command": "drawString", "params": { "x1": "153", "y1": "13", "text": "11:00" } },

{ "command": "drawString", "params": { "x1": "153", "y1": "27", "text": "9° 82%" } },

{ "command": "setFont", "params": { "fontName": "MeteoconsPlain21" } },

{ "command": "drawString", "params": { "x1": "153", "y1": "39", "text": "R" } },

{ "command": "drawLine", "params": { "x1": "130", "y1": "12", "x2": "130", "y2": "65" } },

{ "command": "drawLine", "params": { "x1": "130", "y1": "25", "x2": "171", "y2": "25" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "CENTER" } },

{ "command": "drawString", "params": { "x1": "195", "y1": "13", "text": "14:00" } },

{ "command": "drawString", "params": { "x1": "195", "y1": "27", "text": "7° 84%" } },

{ "command": "setFont", "params": { "fontName": "MeteoconsPlain21" } },

{ "command": "drawString", "params": { "x1": "195", "y1": "39", "text": "R" } },

{ "command": "drawLine", "params": { "x1": "172", "y1": "12", "x2": "172", "y2": "65" } },

{ "command": "drawLine", "params": { "x1": "172", "y1": "25", "x2": "213", "y2": "25" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "CENTER" } },

{ "command": "drawString", "params": { "x1": "237", "y1": "13", "text": "17:00" } },

{ "command": "drawString", "params": { "x1": "237", "y1": "27", "text": "7° 52%" } },

{ "command": "setFont", "params": { "fontName": "MeteoconsPlain21" } },

{ "command": "drawString", "params": { "x1": "237", "y1": "39", "text": "Q" } },

{ "command": "drawLine", "params": { "x1": "214", "y1": "12", "x2": "214", "y2": "65" } },

{ "command": "drawLine", "params": { "x1": "214", "y1": "25", "x2": "255", "y2": "25" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "CENTER" } },

{ "command": "drawString", "params": { "x1": "279", "y1": "13", "text": "20:00" } },

{ "command": "drawString", "params": { "x1": "279", "y1": "27", "text": "5° 66%" } },

{ "command": "setFont", "params": { "fontName": "MeteoconsPlain21" } },

{ "command": "drawString", "params": { "x1": "279", "y1": "39", "text": "Q" } },

{ "command": "drawLine", "params": { "x1": "256", "y1": "12", "x2": "256", "y2": "65" } },

{ "command": "drawLine", "params": { "x1": "256", "y1": "25", "x2": "297", "y2": "25" } },

{ "command": "fillRect", "params": { "x1": "200", "y1": "97", "x2": "2", "y2": "20" } },

{ "command": "fillRect", "params": { "x1": "203", "y1": "99", "x2": "2", "y2": "17" } },

{ "command": "fillRect", "params": { "x1": "206", "y1": "101", "x2": "2", "y2": "15" } },

{ "command": "fillRect", "params": { "x1": "209", "y1": "101", "x2": "2", "y2": "15" } },

{ "command": "fillRect", "params": { "x1": "212", "y1": "101", "x2": "2", "y2": "15" } },

{ "command": "fillRect", "params": { "x1": "215", "y1": "101", "x2": "2", "y2": "15" } },

{ "command": "fillRect", "params": { "x1": "218", "y1": "101", "x2": "2", "y2": "15" } },

{ "command": "fillRect", "params": { "x1": "221", "y1": "103", "x2": "2", "y2": "13" } },

{ "command": "fillRect", "params": { "x1": "224", "y1": "103", "x2": "2", "y2": "13" } },

{ "command": "fillRect", "params": { "x1": "227", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "230", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "233", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "236", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "239", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "242", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "245", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "248", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "251", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "254", "y1": "110", "x2": "2", "y2": "7" } },

{ "command": "fillRect", "params": { "x1": "257", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "260", "y1": "110", "x2": "2", "y2": "7" } },

{ "command": "fillRect", "params": { "x1": "263", "y1": "110", "x2": "2", "y2": "7" } },

{ "command": "fillRect", "params": { "x1": "266", "y1": "110", "x2": "2", "y2": "7" } },

{ "command": "fillRect", "params": { "x1": "269", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "272", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "275", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "278", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "281", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "284", "y1": "103", "x2": "2", "y2": "13" } },

{ "command": "fillRect", "params": { "x1": "287", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "290", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "293", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "LEFT" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "drawString", "params": { "x1": "200", "y1": "65", "text": "Min:3°C Max:9°C" } },

{ "command": "drawLine", "params": { "x1": "196", "y1": "65", "x2": "196", "y2": "284" } },

{ "command": "setFont", "params": { "fontName": "MoonphasesPlain36" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "LEFT" } },

{ "command": "drawString", "params": { "x1": "5", "y1": "72", "text": "N" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "72", "text": "Sun:" } },

{ "command": "drawString", "params": { "x1": "95", "y1": "72", "text": "7:15 - 17:02" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "84", "text": "Moon:" } },

{ "command": "drawString", "params": { "x1": "95", "y1": "84", "text": "18:25 - 8:19" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "96", "text": "Phase:" } },

{ "command": "drawString", "params": { "x1": "95", "y1": "96", "text": "Full" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "CENTER" } },

{ "command": "drawString", "params": { "x1": "48", "y1": "116", "text": "CONFIG+RST" } },

{ "command": "drawString", "params": { "x1": "245", "y1": "116", "text": "UPDATE" } },

{ "command": "drawLine", "params": { "x1": "0", "y1": "116", "x2": "296", "y2": "116" } },

{ "command": "drawLine", "params": { "x1": "98", "y1": "116", "x2": "98", "y2": "128" } },

{ "command": "drawLine", "params": { "x1": "196", "y1": "116", "x2": "196", "y2": "128" } },

{ "command": "commit", "params": { } }]}

anthonyjclarke avatar Nov 05 '17 09:11 anthonyjclarke

Can you try to change line 90 in weatherstation.php from $sum_temp += temp; to $sum_temp += $temp; (add a dollar sign in front of temp)

You also will have to replace Zurich and CH with your city and country... Which PHP version are you using. What is the output of php -v

2017-11-05 10:18 GMT+01:00 Anthony Clarke [email protected]:

Here is the output :

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90

Warning: A non-numeric value encountered in /Volumes/Macintosh HD 2/Users/Downloads/espaper-server-php-master/weatherstation.php on line 90 { "meta": { "height": 296, "width": 128 }, "commands": [ { "command": "registerFont", "params": { "url": "/fonts/MeteoconsPlain42", "fontFamily": "Meteocons", "fontStyle": "Plain", "fontSize": "42", "fontName": "MeteoconsPlain42" } },

{ "command": "registerFont", "params": { "url": "/fonts/MeteoconsPlain21", "fontFamily": "Meteocons", "fontStyle": "Plain", "fontSize": "21", "fontName": "MeteoconsPlain21" } },

{ "command": "registerFont", "params": { "url": "/fonts/MoonphasesPlain36", "fontFamily": "Moonphases", "fontStyle": "Plain", "fontSize": "36", "fontName": "MoonphasesPlain36" } },

{ "command": "registerFont", "params": { "url": "/fonts/ArialPlain10", "fontFamily": "Arial", "fontStyle": "Plain", "fontSize": "10", "fontName": "ArialPlain10" } },

{ "command": "registerFont", "params": { "url": "/fonts/ArialPlain16", "fontFamily": "Arial", "fontStyle": "Plain", "fontSize": "16", "fontName": "ArialPlain16" } },

{ "command": "registerFont", "params": { "url": "/fonts/ArialPlain24", "fontFamily": "Arial", "fontStyle": "Plain", "fontSize": "24", "fontName": "ArialPlain24" } },

{ "command": "fillBuffer", "params": { "color": "1" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "LEFT" } },

{ "command": "drawString", "params": { "x1": "2", "y1": "-2", "text": "Updated: 2017-11-05 09:16:55" } },

{ "command": "drawLine", "params": { "x1": "0", "y1": "11", "x2": "296", "y2": "11" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "RIGHT" } },

{ "command": "drawString", "params": { "x1": "274", "y1": "-1", "text": "0.88V 0%" } },

{ "command": "drawRect", "params": { "x1": "274", "y1": "0", "x2": "18", "y2": "10" } },

{ "command": "drawRect", "params": { "x1": "293", "y1": "2", "x2": "1", "y2": "6" } },

{ "command": "fillRect", "params": { "x1": "276", "y1": "2", "x2": "0", "y2": "6" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "LEFT" } },

{ "command": "setFont", "params": { "fontName": "MeteoconsPlain42" } },

{ "command": "drawString", "params": { "x1": "5", "y1": "20", "text": "R" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "15", "text": "Zurich" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "50", "text": "Rain" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain24" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "25", "text": "10.9°C" } },

{ "command": "drawLine", "params": { "x1": "0", "y1": "65", "x2": "296", "y2": "65" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "CENTER" } },

{ "command": "drawString", "params": { "x1": "153", "y1": "13", "text": "11:00" } },

{ "command": "drawString", "params": { "x1": "153", "y1": "27", "text": "9° 82%" } },

{ "command": "setFont", "params": { "fontName": "MeteoconsPlain21" } },

{ "command": "drawString", "params": { "x1": "153", "y1": "39", "text": "R" } },

{ "command": "drawLine", "params": { "x1": "130", "y1": "12", "x2": "130", "y2": "65" } },

{ "command": "drawLine", "params": { "x1": "130", "y1": "25", "x2": "171", "y2": "25" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "CENTER" } },

{ "command": "drawString", "params": { "x1": "195", "y1": "13", "text": "14:00" } },

{ "command": "drawString", "params": { "x1": "195", "y1": "27", "text": "7° 84%" } },

{ "command": "setFont", "params": { "fontName": "MeteoconsPlain21" } },

{ "command": "drawString", "params": { "x1": "195", "y1": "39", "text": "R" } },

{ "command": "drawLine", "params": { "x1": "172", "y1": "12", "x2": "172", "y2": "65" } },

{ "command": "drawLine", "params": { "x1": "172", "y1": "25", "x2": "213", "y2": "25" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "CENTER" } },

{ "command": "drawString", "params": { "x1": "237", "y1": "13", "text": "17:00" } },

{ "command": "drawString", "params": { "x1": "237", "y1": "27", "text": "7° 52%" } },

{ "command": "setFont", "params": { "fontName": "MeteoconsPlain21" } },

{ "command": "drawString", "params": { "x1": "237", "y1": "39", "text": "Q" } },

{ "command": "drawLine", "params": { "x1": "214", "y1": "12", "x2": "214", "y2": "65" } },

{ "command": "drawLine", "params": { "x1": "214", "y1": "25", "x2": "255", "y2": "25" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "CENTER" } },

{ "command": "drawString", "params": { "x1": "279", "y1": "13", "text": "20:00" } },

{ "command": "drawString", "params": { "x1": "279", "y1": "27", "text": "5° 66%" } },

{ "command": "setFont", "params": { "fontName": "MeteoconsPlain21" } },

{ "command": "drawString", "params": { "x1": "279", "y1": "39", "text": "Q" } },

{ "command": "drawLine", "params": { "x1": "256", "y1": "12", "x2": "256", "y2": "65" } },

{ "command": "drawLine", "params": { "x1": "256", "y1": "25", "x2": "297", "y2": "25" } },

{ "command": "fillRect", "params": { "x1": "200", "y1": "97", "x2": "2", "y2": "20" } },

{ "command": "fillRect", "params": { "x1": "203", "y1": "99", "x2": "2", "y2": "17" } },

{ "command": "fillRect", "params": { "x1": "206", "y1": "101", "x2": "2", "y2": "15" } },

{ "command": "fillRect", "params": { "x1": "209", "y1": "101", "x2": "2", "y2": "15" } },

{ "command": "fillRect", "params": { "x1": "212", "y1": "101", "x2": "2", "y2": "15" } },

{ "command": "fillRect", "params": { "x1": "215", "y1": "101", "x2": "2", "y2": "15" } },

{ "command": "fillRect", "params": { "x1": "218", "y1": "101", "x2": "2", "y2": "15" } },

{ "command": "fillRect", "params": { "x1": "221", "y1": "103", "x2": "2", "y2": "13" } },

{ "command": "fillRect", "params": { "x1": "224", "y1": "103", "x2": "2", "y2": "13" } },

{ "command": "fillRect", "params": { "x1": "227", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "230", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "233", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "236", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "239", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "242", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "245", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "248", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "251", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "254", "y1": "110", "x2": "2", "y2": "7" } },

{ "command": "fillRect", "params": { "x1": "257", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "260", "y1": "110", "x2": "2", "y2": "7" } },

{ "command": "fillRect", "params": { "x1": "263", "y1": "110", "x2": "2", "y2": "7" } },

{ "command": "fillRect", "params": { "x1": "266", "y1": "110", "x2": "2", "y2": "7" } },

{ "command": "fillRect", "params": { "x1": "269", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "272", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "fillRect", "params": { "x1": "275", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "278", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "281", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "284", "y1": "103", "x2": "2", "y2": "13" } },

{ "command": "fillRect", "params": { "x1": "287", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "290", "y1": "105", "x2": "2", "y2": "11" } },

{ "command": "fillRect", "params": { "x1": "293", "y1": "107", "x2": "2", "y2": "9" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "LEFT" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "drawString", "params": { "x1": "200", "y1": "65", "text": "Min:3°C Max:9°C" } },

{ "command": "drawLine", "params": { "x1": "196", "y1": "65", "x2": "196", "y2": "284" } },

{ "command": "setFont", "params": { "fontName": "MoonphasesPlain36" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "LEFT" } },

{ "command": "drawString", "params": { "x1": "5", "y1": "72", "text": "N" } },

{ "command": "setFont", "params": { "fontName": "ArialPlain10" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "72", "text": "Sun:" } },

{ "command": "drawString", "params": { "x1": "95", "y1": "72", "text": "7:15 - 17:02" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "84", "text": "Moon:" } },

{ "command": "drawString", "params": { "x1": "95", "y1": "84", "text": "18:25 - 8:19" } },

{ "command": "drawString", "params": { "x1": "55", "y1": "96", "text": "Phase:" } },

{ "command": "drawString", "params": { "x1": "95", "y1": "96", "text": "Full" } },

{ "command": "setTextAlignment", "params": { "textAlignment": "CENTER" } },

{ "command": "drawString", "params": { "x1": "48", "y1": "116", "text": "CONFIG+RST" } },

{ "command": "drawString", "params": { "x1": "245", "y1": "116", "text": "UPDATE" } },

{ "command": "drawLine", "params": { "x1": "0", "y1": "116", "x2": "296", "y2": "116" } },

{ "command": "drawLine", "params": { "x1": "98", "y1": "116", "x2": "98", "y2": "128" } },

{ "command": "drawLine", "params": { "x1": "196", "y1": "116", "x2": "196", "y2": "128" } },

{ "command": "commit", "params": { } }]}

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/squix78/espaper-server-php/issues/1#issuecomment-341959489, or mute the thread https://github.com/notifications/unsubscribe-auth/AArwFlAkXPbYgb_IziOike4tJCpDRJrcks5szX10gaJpZM4QSJ96 .

squix78 avatar Nov 05 '17 12:11 squix78

here is version,

PHP 7.1.7 (cli) (built: Jul 15 2017 18:08:09) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

anthonyjclarke avatar Nov 05 '17 20:11 anthonyjclarke

Made Changes, Line 90 as requested and Line 69 to AU / Sydney. I have also made sure my Thingspeak Key and timezone in Line 3 / 4 are updated. and.. Fixed it :) image

anthonyjclarke avatar Nov 05 '17 20:11 anthonyjclarke