Gawk - combine virtual sol sensor with heart beat

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
Andreas RD
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: Wed Feb 05, 2014 11:28 am

Gawk - combine virtual sol sensor with heart beat

Post by Andreas RD »

Can anybody help me with gawg?

For displaying sunshine hours in a graph I created a virtual sensor "data9" using the gawk command - awk '{ if ($3 < 120) printf ''0''; else printf ''8460000'' }' - with the sol sensor of my Vantage. But my Vantage provides sol data every 51 sec. For that reason the graph sunshine-hours/day shows values which are too high.

So I want to force meteohub to save the data of the virtual sunshine sensor exactly once a minute.

I created a 2nd virtual sensor "data10" for system data 'heart beat'.

Question:

When I create a 3rd virtual sensor which uses the sunshine-data of virt. sensor "data9", which gawk command do I need to force it to save data once a minute using the heart beat sensor?
Vantage Pro2 + Meteohub
Post Reply