cloudy cloudy

Author Topic: file convert from oww to somthing wd can read  (Read 6077 times)

0 Members and 1 Guest are viewing this topic.

Offline ph0w

  • Posts: 88
  • Hilversum, The Nethelands
    • Weerstation Hilversum, The netherlands
file convert from oww to somthing wd can read
« on: December 19, 2007, 03:35:43 PM »
Hi,

To get oww working in the new wd, I was thinking of the following solution.
A saw that a few of the allready working weatherstations using some kind of file to read weather info.
If the layout is known, I think I can easy make a convertion tool to get the oww file transformed to the other format.
This tool can run via crond, and ready you are.
Even you can in oww-server recognise the format of the file so it's can be used to read by (like)an other weatherstation.
I like to use the new wd version (its a lot quicker)
Regards

Hans
All 1-wire weather, WD-qt running on Debian Lenny, the weatherWebSite is hosted on the same debian server. This all is running on Via epia PD6000e hardware.
www.weerstationhilversum.nl
Now running WDconsole with RRD graphs.

Offline Weather Display

  • Posts: 85,438
  • Davis VP2
  • New Zealand
    • Weather Display
Re: file convert from oww to somthing wd can read
« Reply #1 on: December 19, 2007, 05:58:34 PM »
let me see if I can get the oww functions working in the new linux version today
I just need to fire up my old linux box

also, what is the setting you set up to use the oww data in the old linux version?
ah, i think its the oww custom file in the stationless type setup in the weather station type setup
OK, i have the code from the old linux version, added this station type now to the new linux version....
« Last Edit: December 19, 2007, 06:38:15 PM by windy »

Offline Weather Display

  • Posts: 85,438
  • Davis VP2
  • New Zealand
    • Weather Display
Re: file convert from oww to somthing wd can read
« Reply #2 on: December 19, 2007, 08:20:45 PM »
latest .zip update of the new compiler version now works with the oww custom file
(set and then select the file to use in the weather station type setup, stationless type setup)

Offline ph0w

  • Posts: 88
  • Hilversum, The Nethelands
    • Weerstation Hilversum, The netherlands
Re: file convert from oww to somthing wd can read
« Reply #3 on: December 19, 2007, 10:11:17 PM »
Hi Brian, at the moment the new version of wd is running, and the weatherdata is popping up on the dials.  :D  :D  :D I'm happy now.! This is realey quicker than I thougt.
Nice job !! Now you have an other Linux version where you can run wd on.
It's debian etch.... :)
Is there a way to import the settings from the old linux version, or even the windows version, like records and history?


« Last Edit: December 19, 2007, 10:32:31 PM by ph0w »
All 1-wire weather, WD-qt running on Debian Lenny, the weatherWebSite is hosted on the same debian server. This all is running on Via epia PD6000e hardware.
www.weerstationhilversum.nl
Now running WDconsole with RRD graphs.

Offline Weather Display

  • Posts: 85,438
  • Davis VP2
  • New Zealand
    • Weather Display
Re: file convert from oww to somthing wd can read
« Reply #4 on: December 19, 2007, 10:23:46 PM »
yes
you can use the windows version wdisplay.ini file
(name as WDISPLAY.INI on your linux system)

(and then reset/reselect that OWW custom file)
 :wink:

Offline stumpey

  • Posts: 769
  • Sunbury on Thames UK
    • Sunbury Weather
Re: file convert from oww to somthing wd can read
« Reply #5 on: December 20, 2007, 07:15:46 AM »
Thanks Brian

So your old Linux machine fired up and we are ready to go with the OWW txt file as before ?.

I will try this tonight when I get home and run it on the new server so will be able to run old WD and new WD side by side.

EDIT: Up and running so now no more excuses to build some new web pages. :D

Steve
« Last Edit: December 21, 2007, 08:04:21 AM by stumpey »

Offline bristow

  • Posts: 111
  • Cornwall, United Kingdom
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
Re: file convert from oww to somthing wd can read
« Reply #6 on: March 10, 2017, 02:33:41 PM »
Sorry I know this is an old topic, but I am currently writing my own code in python to read 1-wire sensors via owfs and output to a text file. I wanted to know what format Weather Display is expecting the file to be in, comma delimited i guess and column headers?

Many thanks



Offline Weather Display

  • Posts: 85,438
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 56.0.2924.87
    • Weather Display
Re: file convert from oww to somthing wd can read
« Reply #7 on: March 12, 2017, 01:56:05 AM »
its not all the clear
do you mean you want to use the OWW format for WD to read in, or?

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,668
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 56.0.2924.87
Re: file convert from oww to somthing wd can read
« Reply #8 on: March 12, 2017, 02:32:43 AM »
As I read it he would like to have WD read a text file produced by his python program. Could maybe use the same format as the Whimick thread?
« Last Edit: March 13, 2017, 06:02:49 PM by niko »

Offline bristow

  • Posts: 111
  • Cornwall, United Kingdom
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
Re: file convert from oww to somthing wd can read
« Reply #9 on: March 13, 2017, 05:53:59 PM »
Hi Niko - you are correct :-)  I have written some python code to read the one-wire sensor values and output them to a text file so WD can read it

I will review that thread you have pointed me too and let you know!

Thanks

Offline bristow

  • Posts: 111
  • Cornwall, United Kingdom
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
Re: file convert from oww to somthing wd can read
« Reply #10 on: March 14, 2017, 04:54:06 PM »
the detail in the thread is kind of on the lines of what i am trying to achieve, but  I am directly feeding the output from the python script to WD

If I post the format of the .csv output I am producing from reading the 1-wire sensors - it would probably help?!


Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,668
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 56.0.2924.87
Re: file convert from oww to somthing wd can read
« Reply #11 on: March 14, 2017, 05:22:56 PM »
What parameters do you have?

Offline bristow

  • Posts: 111
  • Cornwall, United Kingdom
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
Re: file convert from oww to somthing wd can read
« Reply #12 on: March 15, 2017, 03:09:36 PM »
This is the format of the file produced by the python script :

:~/owweather$ more owwout.csv
    Date,Time,Temp1,Humidity,Solar,Barometer
04/03/17 22:51:39,10.3,C,72.5,%,63.0,%,1015,mB
04/03/17 22:51:47,10.3,C,72.5,%,63.0,%,1015,mB
04/03/17 22:51:55,10.3,C,72.5,%,63.0,%,1015,mB

I was thinking of taking the comma out between the value and unit but think that may cause formatting issues?

 

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,668
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 56.0.2924.87
Re: file convert from oww to somthing wd can read
« Reply #13 on: March 15, 2017, 05:54:37 PM »
Brian is very willing to support users, but since you have 100% control of the file format IMHO it would be better to use one of the existing file formats that are already coded in WD than have him re-invent yet another wheel. For a simple dataset like that there is the "universal" file functionality. The format is in the universal.txt file in the Windows version, I'm not sure if it exists in linux (yet) but it is long established in Windows.

Code: [Select]
Description of the universal file input weather station type

Create a file with the following format, called datain38.ini   (just 1 line of current data)

6.02 8.77 16.1 38 1010.2 0.0 215 15.8 21.5 58 200


i.e

6.02  Gust (current) speed (kts)
8.77  wind speed (kts)
16.1  Temperature (oC)
38    Humidity
1010.2 Barometer (hPa)
0.0    Daily rain
215    Wind direction
15.8   Soil temperature
21.5   indoor temperature (oC)
58     Indoor humidity
200    solar (WM/2)

Anyway, I'll butt out now and let Brian take this  :)

Offline bristow

  • Posts: 111
  • Cornwall, United Kingdom
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 51.0
Re: file convert from oww to somthing wd can read
« Reply #14 on: March 20, 2017, 05:54:01 PM »
many thanks Niko. I am using the Linux version, so would be good to know if the universal.txt file is supported there or not?

I have also written code to read the Vortex Anemometer and E-Vane, so will feeding the outputs of those into Weather Display too :-)