a lot of issues

Post Reply
alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

a lot of issues

Post by alexvanuxem » Wed Jun 08, 2022 7:58 pm

an update were I am at.

1: airkink indoor not mapped inside MB, but temp and hum getting across to MT strange?
2: soil moisture 5 and 6 is getting confusded with leaf 1 and 2, same readings
3: got today a new gw1100 with lightning detector, configured it through MB only temp and hum goes to MT, no lightning
but extra temp and hum into MT

4: tried to to configure the ecowitt plugin to incorporate the lightning, much problems,

thank you all for testing, and helping,

many thx to all contributors,

KInd regards

Alex
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: a lot of issues

Post by davidefa » Wed Jun 08, 2022 9:24 pm

The gw1X00 custom upload can't upload to an https server ( as in your case )
Possible solutions:
- disable the 'https rewrite rule' for the directory template/plugins/ecowitt/report ( or for the whole site )
- on this post on wxforum is explained how to do it on servers ( apache ) using file .htaccess and on IIS server ( microsoft )
- on this post user meteoesine explains how he did
Image

alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: a lot of issues

Post by alexvanuxem » Thu Jun 09, 2022 11:58 am

thx, did the .htaccess

got data coming in every minute in csv and json format.

but api is not updated

see screenshots did I miss something?
Schermafbeelding 2022-06-09 130115.png
Schermafbeelding 2022-06-09 130115.png (42.19 KiB) Viewed 2033 times
Schermafbeelding 2022-06-09 130045.png
Schermafbeelding 2022-06-09 130045.png (133.98 KiB) Viewed 2033 times
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: a lot of issues

Post by davidefa » Thu Jun 09, 2022 12:51 pm

Disable authentication

ecowitt_plugin3.jpg
ecowitt_plugin3.jpg (342.13 KiB) Viewed 2031 times
Image

alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: a lot of issues

Post by alexvanuxem » Thu Jun 09, 2022 1:51 pm

hi thx did the adjustment, but no succes.

i found a ecowittlog.txt file in the cache folder
ecowittLog.zip
(526 Bytes) Downloaded 30 times
it saus : Api error -> Failed to connect to www.sint-katelijne-waver-meteo.be port 443: Connection timed out

can you have a look what it means?

many thanks
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: a lot of issues

Post by davidefa » Thu Jun 09, 2022 3:36 pm

You can try the following scripts ( they simulate the calling of the api.php script, only added a browser-like header):
- extract in your template directory
- call them with your browser:
www.sint-katelijne-waver-meteo.be/template/http_api.php
www.sint-katelijne-waver-meteo.be/templ ... ps_api.php

Hopefully should ( one or both ) return something like this:

Code: Select all

No password provided
Api url -> https://www.sint-katelijne-waver-meteo.be/template/api.php?U=1654783339&P=1020&TIN=21.89&HIN=56&L=0&LD=<=&LBAT=3&Station=GW1100A&FW=V2.0.2
Api result -> 1
with no 'time out'
Attachments
http_api.zip
(1.18 KiB) Downloaded 25 times
Image

alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: a lot of issues

Post by alexvanuxem » Thu Jun 09, 2022 5:34 pm

hi,

thx.

both gave a 504 gateway time out error.

tried it with removing the .htaccess and with the firewall off, same result.

the api calling doesn't need my update password?

thx

grtz
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: a lot of issues

Post by davidefa » Thu Jun 09, 2022 7:06 pm

alexvanuxem wrote: Thu Jun 09, 2022 5:34 pm hi,

thx.

both gave a 504 gateway time out error.

tried it with removing the .htaccess and with the firewall off, same result.

the api calling doesn't need my update password?

thx

grtz
Without the 'update password' the api.php script breaks with error 'No password provided' ( if the scripts is executed ), but your call times out
I have tested the same scripts on my server:
http://realrunning.netsons.org/template/http_api.php
http://realrunning.netsons.org/template/https_api.php
And they works as expected.
It seems some filter/firewall blocking the call but can't understand what's going on

P.S.
Are you hosting your domain on a local server or are you using an 'external' hosting provider?
Image

alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: a lot of issues

Post by alexvanuxem » Thu Jun 09, 2022 8:37 pm

hi thx for your time

if a pass http://www.sint-katelijne-waver-meteo.b ... &FW=V2.0.2

in the url
i get also no password provided. In both http and https.
uing php 7.4.29

Im using an external provider.

thx again for your help.

I was so looking forward to play with my new toy.

updating with this, hope this helps :

ecowitt calls this
https://www.sint-katelijne-waver-meteo. ... &FW=V2.0.2
and errors

if it calls this

https://www.sint-katelijne-waver-meteo. ... &FW=V2.0.2

it goes through, when I pass it manually through the url. lightning is saved in the api.php, but I cant do this manually every minute. :-). At least some tiny progress.

I hope im helping to find a solution. Can this be tried please,
please share your thoughts.

Thx again David!!
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: a lot of issues

Post by davidefa » Fri Jun 10, 2022 3:55 pm

Please try this updated plugin ( it simply replaces the call to api.php via 'curl library', that fails with a timeout on your server, with a 'require', that should work in your case )
Attachments
ecowitt_3.0a.zip
(17.32 KiB) Downloaded 29 times
Image

alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: a lot of issues

Post by alexvanuxem » Fri Jun 10, 2022 5:08 pm

THANK YOU SIR!

so great!

appreciate a lot your time and effort!

I will make a contribution to Meteotemplate very soon. As thanks.

:ugeek:

:D

Deep respect.

Alex
Image

alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: a lot of issues

Post by alexvanuxem » Mon Jul 25, 2022 5:39 pm

Hi Davidefa,

your mod concerning my ecowitt lightning data suddenly stopped working on 22 Jul 22 at 2pm.
before then it was a dream.

I don't have a clue why. Could you possibly help?

Tried a lot of stuff, am at my ends whit. Thank you so much!!
Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: a lot of issues

Post by davidefa » Mon Jul 25, 2022 10:17 pm

I see your cache/ecowittLog.txt shows the last data posted by gw1100 is dated 2022-07-22 12:12:15
Check if the gateway is functioning correctly ( verify you can connect to the web interface ), maybe the gateway needs only a reboot or check if the custom upload is still enabled

Code: Select all

ecowitt format
post PASSKEY: 5908887D876EC5DD37B2B313B79E0D4B
post stationtype: GW1100A_V2.0.2
post dateutc: 2022-07-22 12:12:15
post tempinf: 80.4
post humidityin: 45
post baromrelin: 30.183
post baromabsin: 30.183
post lightning_time: 1658310356
post lightning_num: 0
post lightning: 20
post wh57batt: 4
post freq: 868M
post model: GW1100A
rename sensor 
remap meteotemplate 
remap wu 
remap awekas 
remapping ecowitt <-=
Calling api.php date/time: 2022-07-22 14:18:02
Api call -> {"P":1022.11,"TIN":26.89,"HIN":"45","L":"0","LD":"20","LT":"1658310356","LBAT":"4","Station":"GW1100A","FW":"V2.0.2","U":1658491935}
Exiting api.php date/time: 2022-07-22 14:18:02
Generating log file cache/ecowittLog.txt

ERRORS:
Image

alexvanuxem
Forecaster
Forecaster
Posts: 182
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: a lot of issues

Post by alexvanuxem » Tue Jul 26, 2022 6:22 pm

hi got it back.

after a reboot, version upgrade of the gateway, and filling in the settings back again, thx
alex
Image

User avatar
meteoesine
Forecaster
Forecaster
Posts: 166
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: a lot of issues

Post by meteoesine » Fri Aug 19, 2022 3:19 pm

Ciao,
why in the all reports I find the year 1970 without data?
I checked in phpmyadmin and i don't see any record before 01.01.2014

is there a possibility to remove it?
tnx
Attachments
ScreenShot01122.jpg
ScreenShot01122.jpg (69.92 KiB) Viewed 1447 times
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

Re: a lot of issues

Post by davidefa » Fri Aug 19, 2022 9:09 pm

Try executing the following query in phpmyadmin:

Code: Select all

SELECT max(Tmax), min(Tmin), max(R), max(G), avg(W), min(P), max(P), min(H), max(H), min(D), max(D), min(A), max(A), max(S), max(RR), YEAR(DateTime), MONTH(DateTime)
FROM alldata 
GROUP BY YEAR(DateTime), MONTH(DateTime)
ORDER BY DateTime
and post the result
Image

User avatar
meteoesine
Forecaster
Forecaster
Posts: 166
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: a lot of issues

Post by meteoesine » Sat Aug 20, 2022 6:06 am

found the damn ;-) removed
thnx a lot
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

Post Reply