Author Topic: WeeWx and Pi  (Read 1279 times)

0 Members and 1 Guest are viewing this topic.

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #25 on: August 16, 2020, 06:16:12 PM »
I got the interceptor.py working as to where when itís running in a terminal window the data it updates is current and accurate from my ws! I just have to figure out how to connect this to weewx, I canít find the interpreter section in the config document!


Sent from my iPhone using Tapatalk

Online galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 6224
Re: WeeWx and Pi
« Reply #26 on: August 16, 2020, 09:29:36 PM »
There are two lines to edit I believe.

You need:
[Station]
station_type = Interceptor

...and a bit lower down you need:
[Interceptor]
device_type = ecowitt-client

...but there is a lot more you should configure if you just read the weewx.conf file you'll notice that there are plenty of other things to fill out...especially in the [Station] section. It isn't a requirement for it to work ....but you'll want to do thing like Lat/Long, elevation...etc.
« Last Edit: August 16, 2020, 09:31:58 PM by galfert »
Ecowitt GW1000 | Meteobridge on Raspberry Pi
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #27 on: August 16, 2020, 09:59:23 PM »
It made me do latitude and longitude and location when I first set it up, but I will look right now.  Thanks!


Sent from my iPhone using Tapatalk

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #28 on: August 16, 2020, 10:01:25 PM »
Every time I try to open and edit the file it wonít allow it?


Sent from my iPhone using Tapatalk

Offline Storm017

  • Contributor
  • ***
  • Posts: 126
Re: WeeWx and Pi
« Reply #29 on: August 16, 2020, 10:10:29 PM »
sudo nano /home/weewx/weewx.conf
or
sudo nano /etc/weewx/weewx.conf

Use one or the other depending what method of installation was used. 

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #30 on: August 16, 2020, 10:25:29 PM »
Iím sorry for all this needed help but someone recommended I try thins one on the weewx forums. https://github.com/gjr80/weewx-gw1000  I got down to the part where iím supposed to copy the file gw1000.py to the $BIN_ROOT/user directory but when i run the command it says cp: cannot create regular file Ď/userí :Permission denied?


Sent from my iPhone using Tapatalk

Offline Storm017

  • Contributor
  • ***
  • Posts: 126
Re: WeeWx and Pi
« Reply #31 on: August 16, 2020, 10:28:33 PM »
You don't have permission to write to that directory. What you need to add is "sudo" in front of command.

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #32 on: August 16, 2020, 10:29:06 PM »
Ok thanks! Iím sorry, iím new to all this stuff!


Sent from my iPhone using Tapatalk

Offline Storm017

  • Contributor
  • ***
  • Posts: 126
Re: WeeWx and Pi
« Reply #33 on: August 16, 2020, 10:32:53 PM »
No problem. So it worked? Believe me, I'm still learning Linux.

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #34 on: August 16, 2020, 10:33:28 PM »
I havenít tried yet, iím taking a break from it from now!


Sent from my iPhone using Tapatalk

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #35 on: August 17, 2020, 01:05:05 AM »
ok so itís going good until i got to step five. iím supposed to input PYTHONPATH=/etc/weewx/bin python -m user.gw1000 ótest-driver. It then says no module named user.gw1000!


Sent from my iPhone using Tapatalk

Offline KD7GFL

  • Member
  • *
  • Posts: 45
Re: WeeWx and Pi
« Reply #36 on: August 17, 2020, 01:15:35 AM »
Try one of these:

PYTHONPATH=/etc/weewx/bin python3 -m user.gw1000 --test-driver

PYTHONPATH=/usr/share/weewx python3 -m user.gw1000 --test-driver


Somewhere below that I recall it said to add a 2 or 3 depending on what vers of python you are running. 
« Last Edit: August 17, 2020, 01:19:06 AM by KD7GFL »
CWOP: KD7GFL (AV640)
WU: KMOAUXVA6
Ambient Weather: KD7GFL

Equipment: GW1000, WS-68, WH40 w/WH65 funnel (for testing), WH32-EP (Davis 7714), WH-31, WH-32, WH-57, HP2551-C, and an Ambient WeatherBridge.

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #37 on: August 17, 2020, 01:17:23 AM »
now it says no module named user


Sent from my iPhone using Tapatalk

Offline KD7GFL

  • Member
  • *
  • Posts: 45
Re: WeeWx and Pi
« Reply #38 on: August 17, 2020, 01:23:48 AM »
Did you try both?  This is what worked for me:

 [ You are not allowed to view attachments ]
CWOP: KD7GFL (AV640)
WU: KMOAUXVA6
Ambient Weather: KD7GFL

Equipment: GW1000, WS-68, WH40 w/WH65 funnel (for testing), WH32-EP (Davis 7714), WH-31, WH-32, WH-57, HP2551-C, and an Ambient WeatherBridge.

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #39 on: August 17, 2020, 02:49:46 PM »
Ok so iíve finished all this now and got down to step seven where i can run weewx directly and i put in the command and now nothing is happening? What did i do wrong? My gw1000 was sending data to to my pi but now weewx isnít working?


Sent from my iPhone using Tapatalk

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #40 on: August 17, 2020, 02:49:56 PM »
Ok so iíve finished all this now and got down to step seven where i can run weewx directly and i put in the command and now nothing is happening? What did i do wrong? My gw1000 was sending data to to my pi but now weewx isnít working?


Sent from my iPhone using Tapatalk

Offline waiukuweather

  • Forecaster
  • *****
  • Posts: 919
Re: WeeWx and Pi
« Reply #41 on: August 17, 2020, 03:03:08 PM »
why not use consolewd like you were?
much easier to setup

Offline gjr80

  • Member
  • *
  • Posts: 40
Re: WeeWx and Pi
« Reply #42 on: August 17, 2020, 04:44:58 PM »
Canít comment on the ease or otherwise of setup of consolewd but when setting up WeeWX it does help if the commands are entered as per the instructions:

https://groups.google.com/g/weewx-user/c/YJ2_-rKdcXA

Gary

Offline rlmarcum22

  • Member
  • *
  • Posts: 40
    • East-Central Kentucky Weather
Re: WeeWx and Pi
« Reply #43 on: August 17, 2020, 04:45:54 PM »
I figured it out! Thanks!


Sent from my iPhone using Tapatalk

 

anything