cloudy cloudy

Author Topic: customclientraw.txt / unexpected CR  (Read 498 times)

0 Members and 1 Guest are viewing this topic.

Offline UW

  • Posts: 64
  • OS/Browser:
  • iOS 12.1
  • Safari 0.8.2
customclientraw.txt / unexpected CR
« on: January 11, 2019, 08:27:30 AM »
I am feeding consolewd via universal file input weather station type (datain38.ini). The resulting customclientraw.txt is then updated regularly on my website. Unfortunately I do get a JSON.parse error because I suspect that in the customclientraw.txt file there is an unnecessary CR at position 1267 (right after the value for presstrendval:

Code: [Select]
"presstrendval":"-58.0
","Tbeaufort":"0"

Is there any way to correct this?

Offline Weather Display

  • Posts: 86,222
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: customclientraw.txt / unexpected CR
« Reply #1 on: January 12, 2019, 12:35:27 AM »
what version?

Offline UW

  • Posts: 64
  • OS/Browser:
  • iOS 12.1
  • Safari 0.8.2
Re: customclientraw.txt / unexpected CR
« Reply #2 on: January 13, 2019, 01:59:31 PM »
In the customclientraw.txt it says: WD_console_17.5

Offline Weather Display

  • Posts: 86,222
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: customclientraw.txt / unexpected CR
« Reply #3 on: January 13, 2019, 06:40:06 PM »
its not clear if this is the linux version, raspberry pi version, etc
the more information you can provide the better

Offline UW

  • Posts: 64
  • OS/Browser:
  • iOS 12.1
  • Safari 0.8.2
Re: customclientraw.txt / unexpected CR
« Reply #4 on: January 14, 2019, 08:23:18 AM »
It is the Weather Display for Linux console 64 bit Linux desktop version from 7 September 2018.

Thank you for your support

Urs

Offline Weather Display

  • Posts: 86,222
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: customclientraw.txt / unexpected CR
« Reply #5 on: January 14, 2019, 10:14:54 AM »
I do see there is a space that should not be there in the customclientrawlocal.txt file

try removing that
"presstrendval":"%pressurechangein3hour% ",
                                                                ^