Page 1 of 1
cumulus files
Posted: Sun 12 Oct 2014 8:27 pm
by notfree
i'm building an arduino WS ..
but i dont know where is the specific file that need to be update ...
im using python and arduino
i tried to update realtime.txt ... it didnt work ...

Re: cumulus files
Posted: Sun 12 Oct 2014 9:39 pm
by steve
You will either have to emulate a station which works with Cumulus, or generate an easyweather.dat file -
http://wiki.sandaysoft.com/a/EasyWeather_Format
Re: cumulus files
Posted: Mon 13 Oct 2014 6:18 am
by notfree
what if i want to connect directly ?
Re: cumulus files
Posted: Mon 13 Oct 2014 7:17 am
by steve
If you want to connect Cumulus to your weather station to read data directly from it, you will have to emulate a weather station that Cumulus works with.
Re: cumulus files
Posted: Mon 13 Oct 2014 11:14 am
by notfree
#i made it in python .... just execute enjoy , and thank you for the fast response .
#simulation for cumulus by notfree
from time import gmtime, strftime
from random import randint
from time import sleep
a=0
i=0
f = open("f:/test.dat", "w+") #create new file
f.close
while (a<1):
f = open("f:/test.dat", "a+") #open file for adding
ptime=strftime("%d/%m/%y 23:%M:%S", gmtime()) #date and time
pline=str(i)+","+ptime+","+ptime+",5,"+str(randint(1,100))+",20.6, 67, 15.2, 9.1, 12.6, 1010.3, 1018.7, 3.1, 2,"+str(randint(1,100))+", 3, 0, N, 20, 19666.8, 0.0, 0.0, 0.0, 6.3, 352.2, 352.2, 0.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0054C0, 2420, 05 3C CE 00 43 98 00 77 27 1F 29 00 00 14 00 00 00 00 00 00 , "'\n'
i=i+1 #line number
f.write(pline)
f.close
print(i,pline)
sleep(5)
Re: cumulus files
Posted: Mon 13 Oct 2014 11:16 am
by uncle_bob
As Steve said, you need to emulate a protocol or write an easyweather.dat formatted file.
Werk_AG managed to do both options with the WeatherDuino. He might not mind if you look at this code, but it would be polite to ask him first
See his forum here:
http://www.meteocercal.info/forum/
Re: cumulus files
Posted: Mon 13 Oct 2014 11:24 am
by steve
It looks like you are trying to generate an easyweather.dat file. I don't propose to look at your code to see if you are doing it correctly, but assuming you are, then you can just configure Cumulus to read that file by choosing the correct station type ("Easyweather.dat") and telling Cumulus where your file is. Have you done that, and is it working?
Re: cumulus files
Posted: Mon 13 Oct 2014 12:33 pm
by notfree
it work for me ...
Werk_AG was my inspiration...
next step will be to use hes lib