How is clientrawextra generated?

Can someone explain to me how the clientrawextra.txt is generated?

I am using the Weerstation-Leuven template and Consolewd. I am trying to track an error on my WX Graphs:

In the red marked spots you can see strange time label on the x-axis and also that the y-variables look odd.

I have tracked the error down to the clientrawextra.txt file that uploads to my webserver. The nice debug function of the template shows the contents of clientrawextra in the interesting part of the file as:

Marked in red is the cause of the x-axis time error. I think that the error is caused some positions before in the file, marked in blue, where the sunset and moonrise is printed. From that position it seems that all data is printed one position off.

So: how is the clientrawextra generated?
Can I fix this problem myself?

My site is at www.winberg.com/weather2

look in the actual file itself for an extra space somewhere …e.g in a name/word etc

This is actually strange. Right now the graphs are OK, and I didn’t change anything.

I see also that my clientrawextra.txt file right now seems to have a %-sign and a carriage return after field 560 moonphase:


12345 5 5 4 5 5 3 5 4 4 3 5 4 5 5 5 7 7 7 7 7 4.9 4.9 5.0 5.3 5.7 5.8 6.0 5.9 6.0 5.7 5.9 5.6 5.6 6.1 6.2 6.8 6.5 6.4 6.1 5.9 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 50 30 11 2013 1013.0 00 01 01 12 2013 1013.0 00 01 01 12 2013 0.0 23 50 30 11 2013 0.0 23 50 30 11 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 00 37 01 12 2013 0.0 00 37 01 12 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 23 50 30 2827 1013.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 0.0 23 23 50 30 2013 0.0 23 23 50 30 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 23 58 30 11 2013 0.0 23 58 30 11 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 0.0 23 58 30 11 2013 0.0 23 50 30 11 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 23 58 30 11 2013 0.0 23 58 30 11 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 21:54 22:54 23:54 00:54 01:55 02:55 03:55 04:55 05:55 06:55 07:55 08:55 09:55 10:55 11:55 12:55 13:55 14:55 15:55 16:55 0 0 0 32 0 0 0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 --- 0 0 0.0 10.5 150 149 211 171 180 152 185 159 147 162 138 158 145 147 129 146 153 161 160 164 06:11 17:04 08:55 19:56 8.53%
 3 8 9 7 7 5.9 5.9 5.9 6.0 0.0 0.0 0.0 0.0 1013.0 1013.0 1013.0 1013.0 17:55 18:55 19:55 20:55 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 153 161 160 164 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 N 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 0 20.8 20.6 20.4 20.3 20.2 20.2 20.1 20.1 20.1 20.2 20.2 20.2 20.2 20.2 20.3 20.3 20.3 20.2 20.2 20.1 20.1 20.1 20.1 20.1 0.0 23 50 30 11 2013 0.0 00 00 00 00 00 0.0 23 50 30 11 2013 0.0 00 00 00 00 00 0.0 23 50 30 11 2013 0.0 23 50 30 11 2013 0 0 20 56 3 s0 u0 o0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 !!EWD_console_10.5!! 


Is that how it is supposed to be?

that CR will be coming from the moonphase variable that is used
I will add in a check to remove that and the extra %

Thanks Brian, you are doing a great work!

At the moment it works OK. I didn’t change anything compared to the previous example.

Now the wx graphs look like this:



The template clientraw debug feature lists the clientrawextra like this:



And the clientrawextra.txt looks like this:


12345 8 7 7 6 5 6 7 8 8 10 10 8 6 8 7 6 7 8 7 5 5.9 6.0 6.0 6.0 5.9 6.2 6.5 6.4 6.3 6.1 6.3 6.2 6.3 6.3 6.3 6.3 6.6 6.9 7.0 6.9 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 50 30 11 2013 1013.0 00 01 01 12 2013 1013.0 00 01 01 12 2013 0.0 23 50 30 11 2013 0.0 23 50 30 11 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 00 37 01 12 2013 0.0 00 37 01 12 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 23 50 30 2827 1013.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 0.0 23 23 50 30 2013 0.0 23 23 50 30 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 23 58 30 11 2013 0.0 23 58 30 11 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 0.0 23 58 30 11 2013 0.0 23 50 30 11 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 23 58 30 11 2013 0.0 23 58 30 11 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 19:09 20:09 21:09 22:09 23:09 00:09 01:09 02:09 03:09 04:09 05:09 06:09 07:09 08:09 09:09 10:09 11:09 12:09 13:09 14:09 0 0 0 33 0 0 0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 --- 0 0 0.0 10.5 149 161 207 206 218 217 213 207 195 179 215 199 212 209 184 216 170 160 154 160 06:12 18:23 09:49 22:20 15.33%
 4 5 4 5 4 6.2 5.3 4.9 5.0 0.0 0.0 0.0 0.0 1013.0 1013.0 1013.0 1013.0 15:09 16:09 17:09 18:09 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 170 160 154 160 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 D 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 0 20.1 20.1 20.1 20.1 20.2 20.1 20.0 20.0 19.9 19.9 19.9 19.9 19.9 19.9 19.9 19.9 20.1 20.1 20.2 20.3 20.3 20.3 20.6 20.6 0.0 23 50 30 11 2013 0.0 00 00 00 00 00 0.0 23 50 30 11 2013 0.0 00 00 00 00 00 0.0 23 50 30 11 2013 0.0 23 50 30 11 2013 0 0 18 10 4 s0 u0 o0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 !!EWD_console_10.5!! 

It seems as if the problem is sporadic.

Now, the error has come back again:





It’s the same error as before. The field data some times get shifted one row in clientrawextra. I think that something is wrong with field 557 Sunset.

Here’s the clientrawextra:


12345 4 5 4 4 5 5 5 6 8 7 7 7 8 7 7 7 4 4 5 3 5.2 4.8 4.8 3.6 3.6 4.0 4.0 4.2 4.4 4.6 5.0 5.6 6.1 6.0 5.8 5.8 5.7 6.2 6.2 6.2 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 50 30 11 2013 1013.0 00 01 01 12 2013 1013.0 00 01 01 12 2013 0.0 23 50 30 11 2013 0.0 23 50 30 11 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 00 37 01 12 2013 0.0 00 37 01 12 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 23 50 30 2827 1013.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 0.0 23 23 50 30 2013 0.0 23 23 50 30 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 23 58 30 11 2013 0.0 23 58 30 11 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 0.0 23 58 30 11 2013 0.0 23 50 30 11 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 23 58 30 11 2013 0.0 23 58 30 11 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 16:22 17:22 18:22 19:22 20:22 21:22 22:22 23:22 00:22 01:22 02:22 03:22 04:22 05:22 06:22 07:22 08:22 09:22 10:22 11:22 0 0 0 34 0 0 0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 --- 0 0 0.0 10.5 104 127 99 108 102 105 89 105 100 103 103 107 82 101 107 127 137 128 152 226 06:12 Sun i 11:23 22:33 23.45%
 5 3 3 2 3 6.3 6.0 5.8 5.7 0.0 0.0 0.0 0.0 1013.0 1013.0 1013.0 1013.0 12:22 13:22 14:22 15:22 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 137 128 152 226 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 D 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 0 20.4 20.7 20.6 20.3 20.2 20.3 20.2 20.1 19.9 19.8 19.7 19.7 19.7 19.7 19.7 19.7 19.7 19.8 19.9 20.0 20.1 20.0 20.1 20.2 0.0 23 50 30 11 2013 0.0 00 00 00 00 00 0.0 23 50 30 11 2013 0.0 00 00 00 00 00 0.0 23 50 30 11 2013 0.0 23 50 30 11 2013 0 0 15 23 5 s0 u0 o0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 !!EWD_console_10.5!! 

I have made no changes since the first error report, not even restarted consolewd.

It seems as if this is an old problem. Look here:
http://discourse.weather-watch.com/p/316076
http://discourse.weather-watch.com/p/238286
http://discourse.weather-watch.com/p/257794

I am not sure if those errors were ever solved. The cause of those problems could be the same; that the data in clientrawextra some times get shifted one field off position.

yes, it will be related to differences in the sun /moon info that is used
(and the parsing of that)
at times
(e.g if an extra space in that or similar)
for the linux GUI or console
(windows version will be not related to this particular problem)

try vers 10.7

Great, it looks better already!






12345 2 4 2 2 4 7 6 8 9 9 11 9 7 4 6 6 5 7 7 8 6.3 6.0 5.8 5.7 5.5 5.4 4.8 4.5 4.3 4.2 4.2 4.3 4.1 4.2 4.2 3.8 4.5 3.9 3.8 4.6 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 50 30 11 2013 1013.0 00 01 01 12 2013 1013.0 00 01 01 12 2013 0.0 23 50 30 11 2013 0.0 23 50 30 11 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 00 37 01 12 2013 0.0 00 37 01 12 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 23 50 30 2827 1013.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 0.0 23 23 50 30 2013 0.0 23 23 50 30 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 23 58 30 11 2013 0.0 23 58 30 11 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 -7.4 04 28 08 12 2013 100.0 00 09 27 12 2013 0.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 1013.0 23 58 30 11 2013 0.0 23 58 30 11 2013 0.0 23 50 30 11 2013 99.4 21 52 26 12 2013 0.0 00 00 00 00 00 0.0 23 58 30 11 2013 0.0 23 58 30 11 2013 -12.7 22 44 04 12 2013 22.0 00 00 00 00 00 84.0 00 00 00 00 00 -50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 50.0 23 50 30 11 2013 -50.0 23 50 30 11 2013 9.2 11 18 01 12 2013 50.0 23 50 30 11 2013 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 1013.0 - - - - - - - - - - - - - - - - - - - - 0 0 0 35 0 0 0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 --- 0 0 0.0 10.7 241 263 233 232 238 237 228 212 199 174 180 144 164 150 146 154 159 159 173 165 06:13 0 12:38 23:52 32.84%
 6 10 9 11 10 4.9 4.9 4.6 4.6 0.0 0.0 0.0 0.0 1013.0 1013.0 1013.0 1013.0 - - 12:33 13:33 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 159 159 173 165 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 N 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 20.0 20.1 0.0 23 50 30 11 2013 0.0 00 00 00 00 00 0.0 23 50 30 11 2013 0.0 00 00 00 00 00 0.0 23 50 30 11 2013 0.0 23 50 30 11 2013 0 0 13 34 6 s0 u0 o0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 !!EWD_console_10.7!! 

No more fields shifted.

Field 557 Sunset has changed, although “0” probably isn’t correct. I think sunrise here is 08:37 and sunset 15:52 today.

BTW, just sent another donation.

if the sunset/sunrise info does not get parsed out correctly (i.e a Sunset comes through instead)
then it detects that and uses a 0 instead
I can improve on that though