Raspberry PI2 weewx+apache2 server premade image..

682 views
Skip to first unread message

Henrik Oestergaard

unread,
Apr 27, 2016, 9:01:28 AM4/27/16
to weewx-user
Hello You good people..

As part of a bigger job I have been asked to make our weather station Davis VantagePro 2 accesable on a webpage... I have tried for 2 day now to get it working. tried several guides... non of them seems to work.. ny knowlage to LINUX i moderate...

So I thought is there somebody out there that has a working image that I could get my hands on... or a newly updated guide... what build of rasberian I should use..


Best Regards

Henrik  
Message has been deleted

Uwe Heidrich

unread,
Apr 27, 2016, 2:40:26 PM4/27/16
to weewx-user
Hi Henrik,

first install the Linux-System on the Raspberry. Try a Image from raspbian jessie-lite 
or better: use the ua-unattend-netinstaller.

Download the weewx.deb-file from weewx-homepage. Run dpkg -i weewx-xyz-deb
It give a non relevant error-message with failed software-packages.
Use apt-get -f install and the system installs the additional packages.

After this run dpkg-reconfigure weewx and made you answers for your station.
change in /etc/weewx/apache.conf and /etc/weewx/weewx.conf the path to /var/www/html/weewx

wait 5 minutes after weewx-start und enjoy the webpages.

Maybe i made a Image at this weekend for raspberry PI II or III

sincelery uwe

Henrik Oestergaard

unread,
Apr 29, 2016, 8:22:54 AM4/29/16
to weewx-user
Hi Uwe

Got it up and running sort of... only problem.. if i run it in deamon start:

daemon automatically when the computer starts:

cd /home/weewx

sudo cp util/init.d/weewx.debian /etc/init.d/weewx

sudo chmod +x /etc/init.d/weewx

sudo update-rc.d weewx defaults 98

sudo /etc/init.d/weewx start


I get an error, no access to NOAA file... when I run it in normal mode:


Run the main program directly:

cd /home/weewx
sudo ./bin/weewxd weewx.conf

all files are updated...




any idea??

Henrik
Auto Generated Inline Image 1

Thomas Keffer

unread,
Apr 29, 2016, 9:42:55 AM4/29/16
to weewx-user
Please post the log, not the screen summary. The screen summary is getting cut off, so we can't see what the actual error is.

Most likely this is a permission problem, but it's hard to say without seeing the full error text.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Howard Dingman

unread,
Apr 29, 2016, 11:02:45 AM4/29/16
to weewx-user
Hi Henrik,

you may find it helpful to enable Debug mode in weewx.conf by setting "debug = 1"
then monitor activity with
sudo tail -f /var/log/syslog

you will see the activity as it happens, with detailed error messages.
Watch it for a while, and you may be able to figure out what's wrong yourself.

Uwe Heidrich

unread,
Apr 30, 2016, 7:29:38 AM4/30/16
to weewx-user
Hallo Henrik,

stop the service weewx: service weewx stop
enable debug=1 in the /etc/weewx/weewx.conf
start the service weewx
show the syslog with tail -f /var/log/syslog

dort sollte dann stehen, was falsch läuft.

sincelery uwe


Mike Whimick

unread,
May 2, 2016, 2:24:51 PM5/2/16
to weewx-user

Thankyou for replying you are very helpful,

Ive have done as you asked and placed the drivers in /usr/share/weewx/user/grovepi.py

I also put the GrovepiDrivers that come with the GrovePi in /usr/share/weewx/weewx/drivers/grovepi.py
should they still be there?

and edited /etc/weewx/weewx.conf making sure they are as below:

Weewx still seems to be running in simulation mode and not using the weewx drivers,
at least as far as I know.

Is there any way to check, note I have used the sudo tail -f /var/log/syslog
which so far I do not understand.
I can post it if it helps

I have ** my location in this message

##############################################################################

#   This section is for information about the station.

[Station]
   
    # Description of the station location
    location = "Home, UK"
   
    # Latitude and longitude in decimal degrees
    latitude = **.267
    longitude = **.323
   
    # Altitude of the station, with unit it is in. This is downloaded from
    # from the station if the hardware supports it.
    altitude = 40, meter
   
    # Set to type of station hardware. There must be a corresponding stanza
    # in this file with a 'driver' parameter indicating the driver to be used.
    station_type = GrovePi
   
    # If you have a website, you may specify an URL
    #station_url = http://www.example.com
    /var/www/weewx/index.html
    # The start of the rain year (1=January; 10=October, etc.). This is
    # downloaded from the station if the hardware supports it.
    rain_year_start = 1
   
    # Start of week (0=Monday, 6=Sunday)
    week_start = 6

##############################################################################

[GrovePi]
    poll_interval = 10
    driver = user.grovepi
##############################################################################

I copied from index /var/www/weewx/index.html

About this weather station:
Location
Latitude:    *° 16.02' N
Longitude:    *° 19.38' W
Altitude:    131 feet
This station uses a Simulator, controlled by 'weewx',
an experimental weather software system written in Python.
Weewx was designed to be simple, fast, and easy to understand by leveraging modern software


I realy want to learn how to use weewx and to see it running with my Grovepi
which is fitted to my Raspberry Pi v3
I am slowly getting to grips with python, but with some difficulty.
I have also purchased some books to help me.


Reply all
Reply to author
Forward
0 new messages