Page 6 of 10

Re: Weather on the wall, or my wBox :)

Posted: Tue 28 Jan 2020 4:20 pm
by bthoven
Hi,
Me again. I have just install let's encrypt certificate to make my weather website secured. There are a number of tweaks I need to make in the config and css to make it works as usual. Only one thing that I still can't solve is the forecast row won't show up. It has following message:

Refused to display 'https://bthofen.com/wBox/yr/aYRico.php' in a frame because it set 'X-Frame-Options' to 'deny'

I really don't know how to solve it.

Update 29 Jan 2020: I found it. As the problem happens only after I implement ssl, I have to amend the content of /etc/apache2/conf-enabled/ssl-params.conf:

Code: Select all

# Header always set X-Frame-Options DENY
Header always set X-Frame-Options sameorigin
wbox_iframe.jpg

Re: Weather on the wall, or my wBox :)

Posted: Fri 31 Jan 2020 3:31 pm
by Smarmen
Hello :)
This is probably a browser settings message, because x-frame is a potential threat.
For me, the frame https://bthofen.com/wBox/yr/aYRico.php opens without a problem.

Re: Weather on the wall, or my wBox :)

Posted: Mon 01 Jun 2020 10:14 pm
by Big Daddy
Hello,
I am just looking at wBox and have a few issues. I am trying on my local pi which has Apache installed and runs my test website for use with Cumulus. I like the idea of using wbox for a little display for my office desk.

So, I have it installed and running. Realtime.txt and realmore.txt are being generated and sent by Cumulus to my webserver every 20 seconds same as wbox is set to refresh. All good so far.

I am just using wbox (original) wBoxV.html page to start, just to get everything working and then I will start to play.

But I have a few problems that I need help with and cant understand why they dont work.

1) Windrose. Compass is showing, wind direction red and blue arrows showing and updating ok. I have mesh in middle of compass but no data populating windrose data.
rose.jpg
2 Pressure. Always show steady and "steps" showing trend are always in a line.
Press.jpg
wbox has been running all day but no windrose or pressure changes although it has been windy and pressure has changed from 1025.2 to 1022.4

I also attached my realmore and realtime files

Any help much appreciated.

Andy

Re: Weather on the wall, or my wBox :)

Posted: Tue 02 Jun 2020 11:38 am
by Big Daddy
Quick Update. Pressure "steps" now seem to be working.

Struggling with Windrose.

Re: Weather on the wall, or my wBox :)

Posted: Wed 03 Jun 2020 4:34 pm
by Smarmen
Hello,
The Windrose display is done using the library zino.chart.min.js and zino.svg.min.js in the LIB folder - check if these files are there.
Write the full link to the wBoxV.html file.
See also the new version of wBox http://andreovia.pl/weather/wBoxV.html, - has more options, are you interested?

Re: Weather on the wall, or my wBox :)

Posted: Wed 03 Jun 2020 9:51 pm
by Big Daddy
Hi,
Thanks for replying. All looks ok.

I have put online so you can see. http://midlifedad.me.uk/wBox/wBox.html

At the minute I am just "playing". I have a small 7" android tablet and having fun trying to arrange things so they fit nicely.

This is a very nice piece of work and gives an excellent display.

Any help will be welcome.

Regards
Andy

**EDIT** I have same issue using either wBox or wBox2

Re: Weather on the wall, or my wBox :)

Posted: Wed 03 Jun 2020 10:19 pm
by Big Daddy
I am using Raspberry Pi and running Apache2 and php and also found problems with the forecast last night when running wBox2.

I worked out that my installation of Apache2 / PHP didnt have xml and curl for php so I needed to install them to get the forecast to work.
Just in case others have similar issues here is what I did to fix the problem.

My system
Raspbian Version 10 (Buster)
PHP 7.3.14
Apache 2.4.38

To install xml and curl

Update Raspberry Pi
sudo apt-get update
Install XML for PHP
sudo apt-get install php-xml
Restart Apache
sudo service apache2 restart
Install curl
sudo apt-get install curl
Restart Apache
sudo service apache2 restart
Install curl for PHP
sudo apt-get install php-curl
will prompt to install… type y or yes!
Restart Apache
sudo service apache2 restart

Dont know if this was just my particular installation and I didnt inckude everything when I installed Apache2 / PHP or if it does not include them as default.

It may help someone else

Andy

Re: Weather on the wall, or my wBox :)

Posted: Thu 04 Jun 2020 2:53 am
by Smarmen
Hi Andy :)
Maybe I solved your problem :D
Check file realmoreT.txt Variables are separated by one space character, not two or more!!!

realmoreT.txt extended for wBox version 2 (wBoxV.html):

Code: Select all

<#pressYL> <#TpressYL> <#pressYH> <#TpressYH> <#pressTL> <#TpressTL> <#pressTH> <#TpressTH> <#WindRoseData> <#realtimeinterval> <#avgtempY> <#windYM> <#domwindbearingY>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now these are the possibilities of showing the weather by wBox version 2
http://andreovia.pl/weather/wBox/wBoxV_EN.png
Image

For vertical layout - wBoxH.html
http://andreovia.pl/weather/wBox/wBoxH_EN.png

Enjoy :)

Re: Weather on the wall, or my wBox :)

Posted: Thu 04 Jun 2020 8:11 am
by Big Daddy
Doskonale i dziękuję.
Nie jestem pewien, jak miałem podwójne spacje w pliku realmoeT.txt, ale problem został rozwiązany i działa teraz idealnie.

Spojrzę na nowe ikony i zobaczę, czy mogę je dopasować do mojego ekranu. Może być konieczne znalezienie większego tabletu. :)

W wersji 2 wBox2 potrzebna jest tylko nowa wersja realmoreT.txt i nowe pliki HTML. Jeśli tak, czy możesz opublikować nowe pliki HTML, aby wygenerować taki sam obraz, jaki opublikowałeś, to mogę „odtworzyć”. Jeśli jest to zupełnie nowa paczka, możesz ją skompresować i wysłać pocztą.

Jeszcze raz wielkie dzięki. Wygląda dobrze.

(Mam nadzieję, że Tłumacz Google działa dobrze)

pozdrowienia
Andy

Roughly translated....

Excellent and Thank You.
I am not sure how I had some double spaces in my realmoeT.txt file but problem is all fixed and working perfectly now.

I will take a look at the new icons and see if I can fit them in to my screen. I may need to find a bigger tablet. :)

For wBox2 version 2 is it just the new realmoreT.txt that is needed and new html files. If so please can you post new html files to produce the same as the image you posted then I can "play". If its a whole new package can you zip and post.

Many thanks again. Looking good.

(I hope Google Translate works well)

Regards
Andy

Re: Weather on the wall, or my wBox :)

Posted: Thu 04 Jun 2020 10:37 am
by pernaczy
Big Daddy wrote: Thu 04 Jun 2020 8:11 am
For wBox2 version 2 is it just the new realmoreT.txt that is needed and new html files. If so please can you post new html files to produce the same as the image you posted then I can "play". If its a whole new package can you zip and post.
Regards
Andy
Here you are wBox2 files: http://www.andreovia.pl/weather/doc/wBox2.zip
And the new "realmore.txt" file (code) is in the post above yours. :D

Piotr

Re: Weather on the wall, or my wBox :)

Posted: Thu 04 Jun 2020 12:15 pm
by Big Daddy
Thanks Piotr,
I already have the wBox2 files from earlier in this post. I was wondering if there is a html document that shows all the features as ahown in the picture a little earlier.

wBoxV.html is mentioned but I dont find that file.

Do I undertsnd this correctly.

Andy

Re: Weather on the wall, or my wBox :)

Posted: Thu 04 Jun 2020 1:41 pm
by pernaczy
Big Daddy wrote: Thu 04 Jun 2020 12:15 pm Thanks Piotr,
I already have the wBox2 files from earlier in this post. I was wondering if there is a html document that shows all the features as ahown in the picture a little earlier.
wBoxV.html is mentioned but I dont find that file.
Do I undertsnd this correctly.
Andy
Attached you can find "html" file for an old version of wBox. Unfortunately it is in Polish. Try to translate with with "uncle Google". If you fail I will help but it must take some time. :D
Piotr

Re: Weather on the wall, or my wBox :)

Posted: Thu 04 Jun 2020 2:48 pm
by PaulMy
Hi,
My wBox is at http://www.komokaweather.com/weather/wBox/wBoxH.html
I just installed wBox2 and haven't done much checking but initial http://www.komokaweather.com/weather/wB ... 2Home.html does not yet work.

My wBox2 realmoreT.txt is:
<#pressYL> <#TpressYL> <#pressYH> <#TpressYH> <#pressTL> <#TpressTL> <#pressTH> <#TpressTH> <#WindRoseData> <#realtimeinterval> <#avgtempY> <#windYM> <#domwindbearingY>

But my processed realmore.txt has a combination space and comma separator:
1001.90 06:04 1008.06 04:44 1007.38 04:40 1008.77 08:39 114.3,128.7,0.0,0.0,0.0,0.0,0.0,0.0,0.0,72.4,790.2,1543.4,6.4,117.5,6.4,0.0 10 22.4 9.7 284

I assumed this is incorrect but checking my existing wBox it also has a combination space and comma and that works fine.

Enjoy,
Paul

Re: Weather on the wall, or my wBox :)

Posted: Thu 04 Jun 2020 4:50 pm
by Big Daddy
The output of the realmore.txt is similar to mine. I think the spaces define the different fields and the commas sepearte the vaules in those fields. This is mine which is working

1006.9 23:51 1012.9 00:03 998.9 17:49 1007.3 00:00 140.7,17.9,3.1,0.0,0.0,0.0,0.0,2.7,0.0,3.8,150.3,855.2,1520.9,1438.8,644.7,506.7 20 13.0 16.9 12

Unfortunalety I cant see all of your WBox screen when I click the links, there are bits off the bottom of the screen. Which piece is not working?

Re: Weather on the wall, or my wBox :)

Posted: Thu 04 Jun 2020 5:38 pm
by Smarmen
Daer Friends
Please wait with the installation wBox2, because the package Piotr wrote about does not apply to the latest version of wBox.
A lot has changed, so I will try to quickly prepare a new package with instructions.