Author Topic: Homeweatherstation Temperature format problem  (Read 782 times)

0 Members and 1 Guest are viewing this topic.

Offline ceppo1045

  • Member
  • *
  • Posts: 4
Homeweatherstation Temperature format problem
« on: December 20, 2018, 04:58:05 AM »
Hi everybody, i'm new in this topic and kind of problem.

Two days a go in my website www.boramatta.it the format of the temperature values are completly wrong, i really don't know what it happen. I tried to reinstall also the new template but the error is still present.

I use the meteobridge pro tu upload the data.

Some suggestion?  #-o

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: Homeweatherstation Temperature format problem
« Reply #1 on: December 20, 2018, 05:34:15 AM »
 [ You are not allowed to view attachments ]

hi can you backup your configuration data and send it to me via PM .. your showing your using meteostick im curious of what is in the API output  structure. i have a meteostick here as a backup in the event of Nano or hub meteobridge fails but never used it so Im unfamiliar with its output .

your output has some odd characters are you on php 5.6 or higher ??

0/12/2018 11:24:05 7.8 88.0 5.9 0.7 0.9 41.0 1.0 3.6 1021.8 41.0 1 m/s C hPa mm 0.7 1022.0 3.6 463.4 0.0 36.0 18.0 7.8 8.2 8.2 20181220014613 7.3 20181220064551 1.2 20181220040552 1.9 20181220040131 1022.1 20181220103104 1020.0 20181220044056 3.8 12584 1.4 CARAMBOLA2 Meteostick Vantage -- 3.6 -- 57.0 0.6 6.3 20181220101356 -1.8 20181219051633 1.5 20181219235531 25.8 20180729183834 -6.4 20181129083448 -- 89.0 20181220090444 64.0 20181220000007 6.3 20181220101356 1.5 20181220000007 7.9 87.8 6.0 36.0 18 0.7 0.6 -- -- -- -- -- -- -- 57464 9.4 20181219132945 4.0 20181219053916 10.1 20181218151258 4.0 20181219053916 36.5 20180804150421 2.7 20181130044235 6.2 20181219001137 8.1 20181218112502 31.8 20180829162441 0.0 3.6 20181220032929 463.4 20180612225159 -- -- -- -- -- -- -- —- -- -- -- -- -- -- — -1.8 20181219051633 0 8.0 20181220112302 _

brian

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: Homeweatherstation Temperature format problem
« Reply #2 on: December 20, 2018, 05:56:26 AM »
ok i got it , can you reboot to get latest firmware ?


comparing api

here is your current

[DD]/[MM]/[YYYY] [hh]:[mm]:[ss] [th0temp-act:--] [th0hum-act:--] [th0dew-act:--] [wind0avgwind-act:--] [wind0wind-act:--] [wind0dir-act:--] [rain0rate-act:--] [rain0total-daysum:--] [thb0seapress-act:--] [wind0dir-act:--] [wind0wind-act=bft.0:--] m/s C hPa mm -- [thb0seapress-val60:--] [rain0total-monthsum:--] [rain0total-yearsum:--] [rain0total-ydaysum:--] [thb0temp-act:--] [thb0hum-act:--] [wind0chill-act:--] [th0temp-val60:--] [th0temp-dmax:--] [th0temp-dmaxtime:--] [th0temp-dmin:--] [th0temp-dmintime:--] [wind0avgwind-dmax:--] [wind0avgwind-dmaxtime:--] [wind0wind-dmax:--] [wind0wind-dmaxtime:--] [thb0seapress-dmax:--] [thb0seapress-dmaxtime:--] [thb0seapress-dmin:--] [thb0seapress-dmintime:--] [mbsystem-swversion:--] [mbsystem-buildnum:--] [wind0wind-max10:--] -- -- [uv0index-act:--] -- [sol0rad-act:--] [wind0dir-avg10:--] [rain0total-sum60:--] -- [mbsystem-daynightflag:--] -- [wind0dir-avg10:--] -- m -- [mbsystem-daylength:--] -- -- [uv0index-dmax:--] [th0hum-dmax:--] [th0hum-dmaxtime:--] [th0hum-dmin:--] [th0hum-dmintime:--] [th0dew-dmax:--] [th0dew-dmaxtime:--] [th0dew-dmin:--] [th0dew-dmintime:--] [th0temp-val15:—] [th0hum-val15:—] [th0dew-val15:—] [thb0temp-val15:—] [thb0hum-val15.0:--] [wind0wind-avg15:—] [wind0wind-avg30:—] [lgt0energy-act:--] [lgt0dist-act:--] [lgt0dist-age:--] [lgt0total-daysum.0:--] [lgt0total-monthsum.0:--] [lgt0total-yearsum.0:--] [sol0rad-dmax:--] [mbsystem-uptime:—-] [th0temp-ydmax:--] [th0temp-ydmaxtime:--] [th0temp-ydmin:--] [th0temp-ydmintime:--] [th0temp-mmax:--] [th0temp-mmaxtime:--] [th0temp-mmin:--] [th0temp-mmintime:--] [th0temp-ymax:--] [th0temp-ymaxtime:--] [th0temp-ymin:--] [th0temp-ymintime:--] [wind0wind-ydmax:--] [wind0wind-ydmaxtime:--] [wind0wind-mmax:--] [wind0wind-mmaxtime:--] [wind0wind-ymax:--] [wind0wind-ymaxtime:--] [rain0total-ydmax:--] [rain0total-mmax:--] [rain0total-mmaxtime:--] [rain0total-ymax:--] [rain0total-ymaxtime:--] [sol0rad-dmax:--] [sol0rad-dmaxtime:--] [sol0rad-ydmax:--] [sol0rad-ydmaxtime:--] [sol0rad-mmax:--] [sol0rad-mmaxtime:--] [sol0rad-ymax:--] [sol0rad-ymaxtime:—] [uv0index-dmaxtime:--] [uv0index-ydmax:--] [uv0index-ydmaxtime:--] [uv0index-mmax:--] [uv0index-mmaxtime:--] [uv0index-ymax:--] [uv0index-ymaxtime:—] [thb0temp-dmax:--] [thb0temp-dmin:--]


what should be expected

[DD]/[MM]/[YYYY] [hh]:[mm]:[ss] [th0temp-act:--] [th0hum-act:--] [th0dew-act:--] [wind0avgwind-act:--] [wind0wind-act:--] [wind0dir-act:--] [rain0rate-act:--] [rain0total-daysum:--] [thb0seapress-act:--] [wind0dir-act:--] [wind0wind-act=bft.0:--] m/s C hPa mm [wind0wind-avg5:--] [thb0seapress-val60:--] [rain0total-monthsum:--] [rain0total-yearsum:--] [rain0total-ydaysum:--] [thb0temp-act:--] [thb0hum-act:--] [wind0chill-act:--] [th0temp-val60:--] [th0temp-dmax:--] [th0temp-dmaxtime:--] [th0temp-dmin:--] [th0temp-dmintime:--] [wind0avgwind-dmax:--] [wind0avgwind-dmaxtime:--] [wind0wind-dmax:--] [wind0wind-dmaxtime:--] [thb0seapress-dmax:--] [thb0seapress-dmaxtime:--] [thb0seapress-dmin:--] [thb0seapress-dmintime:--] [mbsystem-swversion:--] [mbsystem-buildnum:--] [wind0wind-max10:--] [mbsystem-platform:--] [mbsystem-station:--] [uv0index-act:--] [rain0total-sum24h] [sol0rad-act:--] [wind0dir-avg10:--] [rain0total-sum60:--] [th0dew-mmax:--] [th0dew-mmaxtime:--] [th0dew-mmin:--] [th0dew-mmintime:--] [th0dew-ydmax:--] [th0dew-ydmaxtime:--] [th0dew-ymax:--] [th0dew-ymaxtime:--] [th0dew-ymin:--] [th0dew-ymintime:--] [uv0index-dmax:--] [th0hum-dmax:--] [th0hum-dmaxtime:--] [th0hum-dmin:--] [th0hum-dmintime:--] [th0dew-dmax:--] [th0dew-dmaxtime:--] [th0dew-dmin:--] [th0dew-dmintime:--] [th0temp-val15:—] [th0hum-val15:—] [th0dew-val15:—] [thb0temp-val15:—] [thb0hum-val15.0:--] [wind0wind-avg15:—] [wind0wind-avg30:—] [lgt0energy-act:--] [lgt0dist-act:--] [lgt0dist-age:--] [lgt0total-daysum.0:--] [lgt0total-monthsum.0:--] [lgt0total-yearsum.0:--] [sol0rad-dmax:--] [mbsystem-uptime:—-] [th0temp-ydmax:--] [th0temp-ydmaxtime:--] [th0temp-ydmin:--] [th0temp-ydmintime:--] [th0temp-mmax:--] [th0temp-mmaxtime:--] [th0temp-mmin:--] [th0temp-mmintime:--] [th0temp-ymax:--] [th0temp-ymaxtime:--] [th0temp-ymin:--] [th0temp-ymintime:--] [wind0wind-ydmax:--] [wind0wind-ydmaxtime:--] [wind0wind-mmax:--] [wind0wind-mmaxtime:--] [wind0wind-ymax:--] [wind0wind-ymaxtime:--] [rain0total-ydmax:--] [rain0total-mmax:--] [rain0total-mmaxtime:--] [rain0total-ymax:--] [rain0total-ymaxtime:--] [sol0rad-dmax:--] [sol0rad-dmaxtime:--] [sol0rad-ydmax:--] [sol0rad-ydmaxtime:--] [sol0rad-mmax:--] [sol0rad-mmaxtime:--] [sol0rad-ymax:--] [sol0rad-ymaxtime:—] [uv0index-dmaxtime:--] [uv0index-ydmax:--] [uv0index-ydmaxtime:--] [uv0index-mmax:--] [uv0index-mmaxtime:--] [uv0index-ymax:--] [uv0index-ymaxtime:—] [th0dew-ydmin:--] [th0dew-ydmintime:--] [mbsystem-lastgooddata:--] [th0temp-avg60:--] [rain0rate-nonzerotime:--] _[forecast-text:]



Offline ceppo1045

  • Member
  • *
  • Posts: 4
Re: Homeweatherstation Temperature format problem
« Reply #3 on: December 20, 2018, 06:18:40 AM »
mmm... something seems missing.. :???:

I'll try later and i tell you. If i remember well, maybe during the electrical holes due to storm, the device is in fault also after a reboot.

Fede

Offline weather34

  • Forecaster
  • *****
  • Posts: 1068
    • https://weather34.com/homeweatherstation
Re: Homeweatherstation Temperature format problem
« Reply #4 on: December 20, 2018, 06:52:29 AM »
ok no problem if possible also upgrade the php version ?, i have not had any version lower than 5.6 installed locally it is  tested upto PHP 7.3.0 as of December 2018 anything below 5.6 i cant confirm but may give you number formatting issues ..

 [ You are not allowed to view attachments ]

Offline ceppo1045

  • Member
  • *
  • Posts: 4
Re: Homeweatherstation Temperature format problem
« Reply #5 on: December 20, 2018, 07:49:08 AM »
PHP now is updated to 7+ but problem still present.
I think is something related to the Meteobridge, i have to investigate the version of the firmware.

I'll tell you ASAP news, thank for the help.

Fede

Offline ceppo1045

  • Member
  • *
  • Posts: 4
Re: Homeweatherstation Temperature format problem
« Reply #6 on: December 21, 2018, 04:41:56 PM »
Firmware version check, reboot done... problem still present.
Really i don't know what i can check again  :roll:

Attached the realtime MB upload file from Meteobridge.

Fede
« Last Edit: December 21, 2018, 05:11:41 PM by ceppo1045 »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Homeweatherstation Temperature format problem
« Reply #7 on: December 22, 2018, 03:28:13 AM »
The clue is already in weather34's first answer, i think.
Comparing your "realtime MB upload file" with the api file from weather34's post there is one field extra in your upload. The uploaded file contains 127 fields, it should be 126.  An extra space (and text) is generated in fields [40] to [43], which are specified in the template file as
Code: [Select]
[wind0wind-max10:--]
[mbsystem-platform:--]
[mbsystem-station:--]
[uv0index-act:--]
And they are uploaded as
Code: [Select]
0.9 CARAMBOLA2 Meteostick Vantage --After the  "explode  (' ', $.... )" that results in
Code: [Select]
0.9
CARAMBOLA2
Meteostick
Vantage
--
I think that this is a problem for Boris, the meteo* author.
Probably " Meteostick"  is added by the Meteobridge software to the computer name (or station name) but for usage in this API that space should be replaced by an underscore or similar.

The result of that extra space is that all data after field [43] contains incorrect information.  So all data and time fields will contain "rubbish" also.

Wim