This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display a txt-file on the dashboard with end of line breaks
#1
Hi

I want to display a txt-File with end of line break.
Data of the txt-file below. 
My import and display flow in node red imports the file but filters all the line-break. 

Has anybody a hint how to solve this?

Thanks in advance and best regards
Bernhard

Code is the import and display on the dashboard.

Code:
[{"id":"c60dc5c7.66eb38","type":"file in","z":"6709fef3.40088","name":"Read File","filename":"/home/pi/navtex/z/z.txt","format":"","chunk":false,"sendError":false,"x":400,"y":1540,"wires":[["f5f97fe1.961d3","e0164406.404958"]]},{"id":"3f7283c1.84aedc","type":"inject","z":"6709fef3.40088","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":1540,"wires":[["c60dc5c7.66eb38"]]},{"id":"f5f97fe1.961d3","type":"debug","z":"6709fef3.40088","name":"","active":true,"console":"false","complete":"true","x":510,"y":1620,"wires":[]},{"id":"e0164406.404958","type":"ui_text","z":"6709fef3.40088","group":"7234d0f5.ee3ad","order":0,"width":0,"height":0,"name":"","label":"text","format":"{{msg.payload}}","layout":"row-spread","x":640,"y":1540,"wires":[]},{"id":"7234d0f5.ee3ad","type":"ui_group","z":"","name":"Navtex ","tab":"3fdc4fa4.37002","disp":true,"width":"6","collapse":false},{"id":"3fdc4fa4.37002","type":"ui_tab","z":"6709fef3.40088","name":"Navtex","icon":"dashboard","order":4,"disabled":false,"hidden":false}]

Below the datas from the file z.txt


20/04-08:07:00 - 

>SA95
NCC-HAMBURG
011022 UTC APR 20
NAV. WARN. NO. 188
GERMAN BIGHT.
'MERKUR' OFFSHORE WIND FARM CONSTRUCTION AREA
MARKED BY LIGHTBUOYS
'MO N1' NORTH CARDINAL 54-05,9N 006-33,7E, Q.
'MO O1' EAST CARDINAL 54-02,2N 006-38,0E, Q (3).
TEMPORARILY REMOVED.


a5
<
20/04-08:07:00 - 

>SA94
NCC-HAMBURG
170951 UTC MAR 20
NAV. WARN. NO. 181
GERMAN BIGHT.
 'BARD OFFSHORE 8' WIND FARM
YELLOW LIGHTBUOY 54-20.57N 006-02.88E MISSING.


a1
<
20/04-08:07:00 - 

>SE10
172300 NAVTEX-HAMBURG (NCC)

WEATHERFORECAST FOR GERMAN BIGHT UNTIL 18.04.2020 18 UTC:
GERMAN BIGHT :
EAST TO NORTHEAST 3 TO 4, INCREASING A LITTLE, SEA 1,5 METRE.

OUTLOOK UNTIL 19.04.2020 06 UTC:
GERMAN BIGHT :
EAST TO NORTHEAST 4 TO 5.


a0
<
20/04-08:07:05 - 

>SA95
NCC-HAMBURG
011022 UTC APR 20
NAV. WARN. NO. 188
GERMAN BIGHT.
'MERKUR' OFFSHORE WIND FARM CONSTRUCTION AREA
MARKED BY LIGHTBUOYS
'MO N1' NORTH CARDINAL 54-05,9N 006-33,7E, Q.
'MO O1' EAST CARDINAL 54-02,2N 006-38,0E, Q (3).
TEMPORARILY REMOVED.


a0
<
20/04-08:07:06 - 

>SA94
NCC-HAMBURG
170951 UTC MAR 20
NAV. WARN. NO. 181
GERMAN BIGHT.
 'BARD OFFSHORE 8' WIND FARM
YELLOW LIGHTBUOY 54-20.57N 006-02.88E MISSING.


a0
<
20/04-08:07:06 - 

>SE22
192300 NAVTEX-HAMBURG (NCC)

WEATHERFORECAST FOR GERMAN BIGHT UNTIL 20.04.2020 18 UTC:
GERMAN BIGHT :
NORTHEAST TO EAST ABOUT 5, NORTHERN PART 3 TO 4, SEA INCREASING 2
METRE.

OUTLOOK UNTIL 21.04.2020 06 UTC:
GERMAN BIGHT :
NORTHEAST TO EAST ABOUT 5, NORTHERN PART 3 TO 4.


a0
<
20/04-08:07:07 - 

>SE23
200300 NAVTEX-HAMBU*G (N*C)

WEATHERFORECAST FOR GERMAN BIGHT *NTIL 20.04.2020 18 UTC:
GERM*N BIGHT :
NORTHEAST *O EAST ABOUT 5, NORTHERN PART 3 TO 4, SEA INCREASING*2
ME*RE*

O*TLOOK UNTIL 21.04.*P*P PY UTC*C
GERMAN BIG*T :
NORTHEAST TO EAST ABOUT*5, NORTHERN PART 3 TO *M


a52
<
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)