I have used gnuplot on my old sheevaplug to visualize some weather
information.
Before half a year my sheeva has broken and now I try to setup a new
DreamPlug with the same functionality.
But my GnuPlot script doesn't work any longer on DreamPlug. It stops
with an error:
plot "< awk '/Sensor 1/ {next} {print}' /var/log/temperatures" using 1:6
title 'Innentemperatur' smooth unique with lines 1, "< awk '/Sensor 0/
{next} {print}' /var/log/temperatures" using 1:6 title
'Aussentemperatur' smooth unique with lines 3
"tempdarstellung", line 18: ';' expected
And:
plot "/var/log/fhem/KS300-2011.log" using 1:4 title 'Aussentemperatur'
smooth unique with lines 1, "/var/log/fhem/KS300-2011.log" using 1:6
title 'Luftfeuchtigkeit' smooth unique with lines 3
^
"KS300_plot", line 19: ';' expected
It says that behind "lines 1" it expects a semicolon...
Do you have any idea?
Thanks,
Markus
> plot "/var/log/fhem/KS300-2011.log" using 1:4 title 'Aussentemperatur'
> smooth unique with lines 1, "/var/log/fhem/KS300-2011.log" using 1:6
> title 'Luftfeuchtigkeit' smooth unique with lines 3
>
> ^
> "KS300_plot", line 19: ';' expected
>
>
> It says that behind "lines 1" it expects a semicolon...
Actually no. It expects one between "lines" and "1", because current
gnuplot doesn't allow a "1" in that place.
That syntax (linetype specification with just a number, but no keyword)
has been deprecated for several years now. It had never been an
officially documented feature anyway, and was removed ages ago. Have a
look at "help plot style" to see how it's done.
Perhaps when Markus' script formerly worked, 'lines' was accepted
as an abbreviation of 'linestyle', and now is being taken as the
<style>-designator keyword 'lines'. Markus, do you know the version
numbers of gnuplot that you formerly used, and are using now?
Anyhow, changing lines to ls in the script may fix the problem.
--
jiw
> Perhaps when Markus' script formerly worked, 'lines' was accepted
> as an abbreviation of 'linestyle',
Quite definitely not. That "lines" is the required argument to "with".
It won't fulfill another role.
changing "with lines 1" to simply "with lines" has solved the problem.
Thanks for your help!
In the moment I am using gnuplot 4.4.0 on the dreamplug.
The previous version of gnuplot on my sheeva plug (where the same script
worked without problems) isn't reproducable any more...
But now it works.
Thanks!
Regards,
Markus