Author Topic: Support of "Leuven" Air Quality scripts  (Read 1736 times)

0 Members and 1 Guest are viewing this topic.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1540
    • My PWS at Leuven Belgium Europe
Re: Support of "Leuven" Air Quality scripts
« Reply #25 on: February 23, 2020, 06:00:54 AM »
Thanks for yet a great script from Leuven [tup] =D>

I've got everything working, except the "Luftdaten map" inside the "my_AqhiLuft2Page.php". I've found other Leuven templates, where it's actually working, so I suspect I didn't do everything correct #-o Anyways there are only 4 Luftdaten users visible on the map in Denmark.

Could it be a path related problem? I've copied the files to weather28/_my_scripts dir, and kept the data dir in weather28/luftdaten/data. The graphs didn't work before changing the path to:
# ----------  we load our own sensor to our site
$useOwnDir      = './luftdaten/data/'; 

As I understand from the readme file, I shouldn't be necessary, to change path if I use weather28/ for the template?

https://www.vejrstationen.dk/weather28/index.php?p=mnu_aqhi_luft&wp=MB&lang=en
chrome right click => inspect => console => errors  => A "mixed content" problem.
Quote
Mixed Content: The page at 'https://www.vejrstationen.dk/weather28/index.php?p=mnu_aqhi_luft&wp=MB&lang=en' was loaded over HTTPS, but requested an insecure frame 'http://deutschland.maps.luftdaten.info/#6/55.899269/8.516578'. This request has been blocked; the content must be served over HTTPS.
Adapt the link from http://deutschland.maps.luftdaten.info to https://
Wim
Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  https://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline plex

  • Senior Member
  • **
  • Posts: 99
Re: Support of "Leuven" Air Quality scripts
« Reply #26 on: February 23, 2020, 06:11:42 AM »
Thanks for yet a great script from Leuven [tup] =D>

I've got everything working, except the "Luftdaten map" inside the "my_AqhiLuft2Page.php". I've found other Leuven templates, where it's actually working, so I suspect I didn't do everything correct #-o Anyways there are only 4 Luftdaten users visible on the map in Denmark.

Could it be a path related problem? I've copied the files to weather28/_my_scripts dir, and kept the data dir in weather28/luftdaten/data. The graphs didn't work before changing the path to:
# ----------  we load our own sensor to our site
$useOwnDir      = './luftdaten/data/'; 

As I understand from the readme file, I shouldn't be necessary, to change path if I use weather28/ for the template?

https://www.vejrstationen.dk/weather28/index.php?p=mnu_aqhi_luft&wp=MB&lang=en
chrome right click => inspect => console => errors  => A "mixed content" problem.
Quote
Mixed Content: The page at 'https://www.vejrstationen.dk/weather28/index.php?p=mnu_aqhi_luft&wp=MB&lang=en' was loaded over HTTPS, but requested an insecure frame 'http://deutschland.maps.luftdaten.info/#6/55.899269/8.516578'. This request has been blocked; the content must be served over HTTPS.
Adapt the link from http://deutschland.maps.luftdaten.info to https://
Wim

 #-o

Thanks for helping




Offline WraxallDave

  • Member
  • *
  • Posts: 22
    • Wraxall Weather, Uk
Re: Support of "Leuven" Air Quality scripts
« Reply #27 on: March 07, 2020, 10:50:42 AM »
Hi There,

Great script, but I am having trouble using my own data via "ws_luftdaten2.php".

I used the "_test2.php" program and got the following error:

Warning: file_get_contents(./luftdaten/data/luft_24data_esp8266-14900835.arr): failed to open stream: No such file or directory in /homepages/27/d801236146/htdocs/luftdaten/ws_luftdaten2.php on line 108

There is no data in the ./luftdaten/data/ directory on the server, and I am not sure what to put in the sensor Configuration under "Own API".

I am using a Saratoga script and my domain is https://www.wraxallweather.co.uk/wxindex.php

The wxAqLuft.php  is in the root directory and the other script files are under /luftdaten/

Any idea what I am doing wrong?

Thanks
Dave
 

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1540
    • My PWS at Leuven Belgium Europe
Re: Support of "Leuven" Air Quality scripts
« Reply #28 on: March 07, 2020, 11:18:37 AM »
Hi There,

Great script, but I am having trouble using my own data via "ws_luftdaten2.php".

I used the "_test2.php" program and got the following error:

Warning: file_get_contents(./luftdaten/data/luft_24data_esp8266-14900835.arr): failed to open stream: No such file or directory in /homepages/27/d801236146/htdocs/luftdaten/ws_luftdaten2.php on line 108

There is no data in the ./luftdaten/data/ directory on the server, and I am not sure what to put in the sensor Configuration under "Own API".

I am using a Saratoga script and my domain is https://www.wraxallweather.co.uk/wxindex.php

The wxAqLuft.php  is in the root directory and the other script files are under /luftdaten/

Any idea what I am doing wrong?

Thanks
Dave

I am a little bit confused about which version this is, I could not find the readme
https://leuven-template.eu/luftdaten/_readme%20FIRST.pdf  => second page.
You have to setup your sensor to upload the data to your own webserver first

The hardware used in the luftdaten sensor does not always allow to upload to https servers.

Succes, Wim
Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  https://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline WraxallDave

  • Member
  • *
  • Posts: 22
    • Wraxall Weather, Uk
Re: Support of "Leuven" Air Quality scripts
« Reply #29 on: March 07, 2020, 11:26:11 AM »
Hi Wim,

the "ws_luftdaten2.php" file says version "4.00 2018-07-20"

What do I put in the Server Box in the Configuration?

I put my domain name minus the "http://" part.

Is this wrong?

Thanks Dave.


Offline WraxallDave

  • Member
  • *
  • Posts: 22
    • Wraxall Weather, Uk
Re: Support of "Leuven" Air Quality scripts
« Reply #30 on: March 07, 2020, 01:00:03 PM »
Hi Wim

Ok, Fixed it by changing the privileges on the /luftdaten/data and /luftdaten directories on the website.

Dave

Offline blainec

  • Member
  • *
  • Posts: 37
    • Weather YYC
Re: Support of "Leuven" Air Quality scripts
« Reply #31 on: March 18, 2020, 11:20:37 PM »
Hi There,

Great script, but I am having trouble using my own data via "ws_luftdaten2.php".

I used the "_test2.php" program and got the following error:

Warning: file_get_contents(./luftdaten/data/luft_24data_esp8266-14900835.arr): failed to open stream: No such file or directory in /homepages/27/d801236146/htdocs/luftdaten/ws_luftdaten2.php on line 108

There is no data in the ./luftdaten/data/ directory on the server, and I am not sure what to put in the sensor Configuration under "Own API".

I am using a Saratoga script and my domain is https://www.wraxallweather.co.uk/wxindex.php

The wxAqLuft.php  is in the root directory and the other script files are under /luftdaten/

Any idea what I am doing wrong?

Thanks
Dave

I'm getting the same error. Checked Permissions, and everything looks OK

https://weatheryyc.com/pwsTEST/luftdaten/_test2.php

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1540
    • My PWS at Leuven Belgium Europe
Re: Support of "Leuven" Air Quality scripts
« Reply #32 on: March 20, 2020, 02:57:14 PM »
. . .  shortened . . .
I'm getting the same error. Checked Permissions, and everything looks OK
https://weatheryyc.com/pwsTEST/luftdaten/_test2.php
Readme: https://weatheryyc.com/pwsTEST/luftdaten/_readme%20FIRST.pdf

Code: [Select]
Warning: file_get_contents(./data/luft_24data_esp8266-14321313.arr): failed to open stream:
No such file or directory in C:\Abyss Web Server\htdocs\pwsTEST\luftdaten\ws_luftdaten2.php on line 106

Maybe: When running a https website the small processor in the sensor will often not be able to upload data.
Therefor when the receiving script does not get any data, it will not create the file needed to display 24-hour data.

Or: Did you give the   pwsTEST/luftdaten/data/ folder the highest permissions?
So is a www script such as pwsTEST/luftdaten/sensorluft2.php  allowed to write data ?

Or: Maybe the script is incompatible with a windows server, but I can not test that myself.

Wim



Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  https://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline blainec

  • Member
  • *
  • Posts: 37
    • Weather YYC
Re: Support of "Leuven" Air Quality scripts
« Reply #33 on: March 21, 2020, 12:13:00 AM »
I tested on a HTTP server and it works. Now to find a way around this.