Python/PyWeather collaboration??


36 posts   Page 2 of 2   1, 2
by jshuker » Wed Jun 20, 2012 9:21 pm
It's working again, but after trying everything else I could find on wview forums etc... I've had to reset the data sudo wviewcleardata. Not a great solution when trying to capture long term weather data ;:
I'm assuming therefore that one of the sqllite databases have been corrupted. My best guess after some research on why this might have happened is a memory issue. Like me, the RPi has very little erm, what's it called.. oh yeah memory :) With MySQL, Apache etc running there is precious little left for wview which seems memory intensive to say the least.

Output from free -m with everything running:
Code: Select all
pi@raspberrypi:/var/lib/wview$ free -m
             total       used       free     shared    buffers     cached
Mem:           183        173         10          0         19        105
-/+ buffers/cache:         48        135
Swap:            0          0          0
Posts: 4
Joined: Wed Feb 15, 2012 3:11 pm
by jshuker » Wed Jun 20, 2012 9:58 pm
brimstone wrote:Well done, I'm envious as despite various approaches I'm still getting wview log records... WH1080: data block at index 56864 has bad sensor value, ignoring the record

What steps did you follow to get the success? Are you connected via powered hub? I'm not but voltage measured at the test points is 4.91 volts and doesn't vary when W1080 is connected so I don't think the receiver is taking too much power from the Pi. Have you installed any updates to the debian image?


Hi Brimstone, I'm not connected via a powered hub but the weather station (Oregon Scientific WRM88 Pro + UV & second temp sensor in fish pond) is now the only device connected - WMRUSB option in wview. I was having issues with the mouse, keyboard and USB hub combinations but this kit is fairly old and due for replacement with nice shiny new low power versions :)

I did all the recommended Debian / Pi firmware upgrades I could find instructions for on here and the e-linux site: http://elinux.org/R-Pi_Troubleshooting# ... g_firmware.

Have you searched the wview forums?
.
Posts: 4
Joined: Wed Feb 15, 2012 3:11 pm
by jamesdigby » Fri Jun 22, 2012 9:20 am
I have been watching this topic for ages!!

I currently have a Dell SFF running cumulus connected to a Maplin Weather station. Cumulus uploads the web pages to a QNAP TS-112 home web server. I have bought a Raspberry Pi so i don't have to keep the windows pc on all the time burning 200w of electricity.

You can view my weather site at http://glemsfordweather.info subject to the stability of good old winXP.

i have made my pi boot card which works great, and have seen all the snippits of code on this post but don't have a clue what to do with them. I am totally new to linux.

I bought a nslu2 a while ago and experimented with debian on that, to try and make a weather site, but didn't work out so well - due to lack of linux knowledge.

I love the webpages cumulus creates - nice and readable, as opposed to some of the linux generated ones, but i guess that is just down to being bothered with the the HTML which I can manage and would be happy to share, but the linux side is making my head hurt.
Posts: 3
Joined: Fri Jun 22, 2012 9:04 am
by kenmc » Fri Jun 22, 2012 4:37 pm
jamesdigby wrote:I have been watching this topic for ages!!

I currently have a Dell SFF running cumulus connected to a Maplin Weather station. Cumulus uploads the web pages to a QNAP TS-112 home web server. I have bought a Raspberry Pi so i don't have to keep the windows pc on all the time burning 200w of electricity.

You can view my weather site at http://glemsfordweather.info subject to the stability of good old winXP.

i have made my pi boot card which works great, and have seen all the snippits of code on this post but don't have a clue what to do with them. I am totally new to linux.

I bought a nslu2 a while ago and experimented with debian on that, to try and make a weather site, but didn't work out so well - due to lack of linux knowledge.

I love the webpages cumulus creates - nice and readable, as opposed to some of the linux generated ones, but i guess that is just down to being bothered with the the HTML which I can manage and would be happy to share, but the linux side is making my head hurt.


James it sounds like we have a similar setup and similar requirements. However I'm reasonably comfortable navigating my way around linux. I was initially hoping that I would manage to get pywws working and feed that into something which would generate cumulus-like pages - I too find the wview very cluttered.

Reading around the web, it seems that the Maplin/Fine Offset units are a bit problematic, but somehow my cumulus manages to read it fine for weeks or months at a time, so it must be do-able
K
http://goatstownweather.hostoi.com
Posts: 51
Joined: Fri May 04, 2012 8:02 am
Location: Dublin, Ireland
by kenmc » Fri Jun 22, 2012 4:43 pm
Found this
https://groups.google.com/forum/?fromgr ... s5CHm5_PUJ
someone managed to get RPi working with pywws

Might get to play with it a bit myself over the weekend but loads of side projects on the go too....
http://goatstownweather.hostoi.com
Posts: 51
Joined: Fri May 04, 2012 8:02 am
Location: Dublin, Ireland
by kenmc » Fri Jun 22, 2012 10:50 pm
Doing what it says in the link I just posted, I've gotten the pywws to work with my WH1080 for the first time.
Finally!
Will keep playing with this now for a bit and see if it's reliable enough to leave up and be automagic
http://goatstownweather.hostoi.com
Posts: 51
Joined: Fri May 04, 2012 8:02 am
Location: Dublin, Ireland
by jamesdigby » Sat Jun 23, 2012 6:06 am
wview

i have managed to learn enough debian with the help of google, well not actually enough, but enough to want to learn more.

i have managed to add the wview sources to install.

i have managed to get wview working briefly..

it took me a while to figure out the sudo rm /var/lib/wview/*.pid to allow it to start.

I am having issues with USB changing, i understand that even if i never re-plus devices it will still change, so i need to lock them down, looking into this i have found

http://groups.google.com/group/wview/br ... 52f9a386dd
http://groups.google.com/group/wview/br ... 37b6?fwc=2

these are ment for ubuntu and the vantage weather stations but i will try and learn enough from them to work with debian/usb fine offset

also i have sussed out putty and ssh into my pi from my desktop machine using http://www.simonthepiman.com/how_to_set ... access.php so now i dont have to type lines and lines, i can now copy and paste, and there are no longer wheel marks in the carpet going back and forth from one desk to the other!!

i do have a 7"? touch screen monitor hanging around from my experiments with a carputer, am wondering if i can put that, weather station and rPi on a nice bit of shiny wood and hang in the hall?

Do i really need a monitor though? wview isnt like cumulus, there is no desktop app. I could just use one USB for weather station and the other for a webcam

I wonder how many time i will format my sd card before i have a nice stable working weather station system - about to go for format no. 4
Posts: 3
Joined: Fri Jun 22, 2012 9:04 am
by kenmc » Sat Jun 23, 2012 11:35 am
James, ubuntu is based on debian, so what works for one almost always works for the other

my pywws (should that be Piwws haha?) has been running overnight and is still talking to my weather station. I've a lot of config still to do yet but signs of life, finally
http://goatstownweather.hostoi.com
Posts: 51
Joined: Fri May 04, 2012 8:02 am
Location: Dublin, Ireland
by kenmc » Wed Jun 27, 2012 9:27 am
I had a hang last night where the station would not respond to anything from the PI. Had to resort to pulling the batteries and then it was all good again. Would like to not have to do this again, but not sure how to prevent it.
http://goatstownweather.hostoi.com
Posts: 51
Joined: Fri May 04, 2012 8:02 am
Location: Dublin, Ireland
by kenmc » Fri Jun 29, 2012 9:08 am
Another interesting one yesterday. I was getting sporadic uploads from the pi to the website, it was missing vast quantities of data. It wasn't dying and restarting, I don't have that done yet, but it would go for hours without getting temp/wind/rain data, and then recover.

When I got home and into the PI, there was nothing bad in the logs, besides a "pause 287.13" which is the 5 minute wait between readings. But that log stamp was a half hour past. It hadn't done it's 5 minute check in 30 mins. Looking at "top" showed that "swirls" was taking up 76% of the cpu usage, so I killed that and restarted the live logger and it's been fine since.

Must disable the screensaver by default so.
http://goatstownweather.hostoi.com
Posts: 51
Joined: Fri May 04, 2012 8:02 am
Location: Dublin, Ireland
by yv1hx » Thu Aug 30, 2012 3:32 pm
prodata wrote:Anyone with a reasonable working of Python (and ideally not too far from the GMT timezone) willing to provide some collaboration in the sense of help/assistance in getting an established Python program working? This is a weather-related program called PyWeather which I can't yet get running on the Pi, mainly because I'm not familiar enough with Linux/Python and probably just need some pointers on getting the package correctly installed and configured.

Initial task is just to get the program running but there is scope for further development.


I would recommend you having a look to kd7lxl (Tom Hayward) github site: https://github.com/kd7lxl which features a python parser for the Vaisala WXT520 Weather transmitter.

Good luck :D
Marco-Luis
http://www.meteoven.org
http://yv1hx.no-ip.org
http://twitter.com/meteoven
Posts: 164
Joined: Sat Jul 21, 2012 10:09 pm
Location: Venezuela