Weewx data upload to Meteotemplate

Post Reply
User avatar
Ron
Observer
Observer
Posts: 16
Joined: Thu Nov 23, 2017 7:23 pm
Location: Central Alabama
Station model: WH1080
Software: Weewx
Contact:

Weewx data upload to Meteotemplate

Post by Ron » Sun Nov 26, 2017 10:23 pm

I'm still setting my Meteotemplate up. I have it working using WU updating, but I would love to have it use the API method.
I got a tip from Bluebear about the Github uploader. I have tried that. I'm doing something wrong.

Weewx 3.71 on a RaspberryPi3
WH1080 Station
Meteotemplate 16.0 Physalis

Here are my steps.
  • I followed the directions on the Github.
    I used the weewx_extension utility
sudo wee_extension --install weewx-meteotemplate.zip
[sudo] password for ron:
Request to install 'weewx-meteotemplate.zip'
Extracting from zip archive weewx-meteotemplate.zip
Saving installer file to /usr/share/weewx/user/installer/meteotemplate
Saved configuration dictionary. Backup copy at /etc/weewx/weewx.conf.20171126124036
Finished installing extension 'weewx-meteotemplate.zip'
  • I then checked the weewx.conf on the Raspberry and made the appropriate changes for sever url and password.
    I saved the weewx,conf file.
    I stopped and restarted weewx
This is the section it added and I added my information.
weewx.conf (Passwords and other information removed)
[[Meteotemplate]]
password = XXXXXXXXXE
server_url = https://xxxxxxx.com/template/api.php

The syslog reports the following.
Nov 26 13:50:06 raspberrypi weewx[7340]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Nov 26 13:50:06 raspberrypi weewx[7340]: engine: Archive will use data binding wx_binding
Nov 26 13:50:06 raspberrypi weewx[7340]: engine: Record generation will be attempted in 'software'
Nov 26 13:50:06 raspberrypi systemd[1]: Started LSB: weewx weather system.
Nov 26 13:50:06 raspberrypi weewx[7326]: Starting weewx weather system: weewx.
Nov 26 13:50:07 raspberrypi weewx[7340]: engine: Using archive interval of 300 seconds (specified by hardware)
Nov 26 13:50:07 raspberrypi weewx[7340]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Nov 26 13:50:07 raspberrypi weewx[7340]: manager: Starting backfill of daily summaries
Nov 26 13:50:07 raspberrypi weewx[7340]: restx: StationRegistry: Registration not requested.
Nov 26 13:50:07 raspberrypi weewx[7340]: restx: Wunderground-PWS: Data for station KALDEATS9 will be posted
Nov 26 13:50:07 raspberrypi weewx[7340]: restx: PWSweather: Posting not enabled.
Nov 26 13:50:07 raspberrypi weewx[7340]: restx: CWOP: Posting not enabled.
Nov 26 13:50:07 raspberrypi weewx[7340]: restx: WOW: Posting not enabled.
Nov 26 13:50:07 raspberrypi weewx[7340]: restx: AWEKAS: Posting not enabled.
Nov 26 13:50:07 raspberrypi weewx[7340]: engine: Caught unrecoverable exception in engine:
Nov 26 13:50:07 raspberrypi weewx[7340]: **** No module named meteotemplate
Nov 26 13:50:07 raspberrypi weewx[7340]: **** Traceback (most recent call last):
Nov 26 13:50:07 raspberrypi weewx[7340]: **** File "/home/weewx/bin/weewx/engine.py", line 865, in main
Nov 26 13:50:07 raspberrypi weewx[7340]: **** engine = engine_class(config_dict)
Nov 26 13:50:07 raspberrypi weewx[7340]: **** File "/home/weewx/bin/weewx/engine.py", line 77, in __init__
Nov 26 13:50:07 raspberrypi weewx[7340]: **** self.loadServices(config_dict)
Nov 26 13:50:07 raspberrypi weewx[7340]: **** File "/home/weewx/bin/weewx/engine.py", line 141, in loadServices
Nov 26 13:50:07 raspberrypi weewx[7340]: **** self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
Nov 26 13:50:07 raspberrypi weewx[7340]: **** File "/home/weewx/bin/weeutil/weeutil.py", line 1132, in _get_object
Nov 26 13:50:07 raspberrypi weewx[7340]: **** mod = __import__(module)
Nov 26 13:50:07 raspberrypi weewx[7340]: **** ImportError: No module named meteotemplate
Nov 26 13:50:07 raspberrypi weewx[7340]: **** Exiting.


I'm missing something. It sounds like a module? it's asking for?
Any help appreciated.

Also I noticed watching the videos, that my update options don't show a Weather Display option, is that normal?
Image

Thanks,
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Weewx data upload to Meteotemplate

Post by Jachym » Sun Nov 26, 2017 10:52 pm

Cant help you with the WeeWx problem, I dont use it, but WD is not there intentionally, because WD, WeeWx, WeatherCat and Meteobridge have MT built-in and use the "API" option.

User avatar
Ron
Observer
Observer
Posts: 16
Joined: Thu Nov 23, 2017 7:23 pm
Location: Central Alabama
Station model: WH1080
Software: Weewx
Contact:

Re: Weewx data upload to Meteotemplate

Post by Ron » Mon Nov 27, 2017 12:11 am

Thanks, I'm still plugging away at it.
Image

User avatar
Luc
Developer
Developer
Posts: 168
Joined: Mon Aug 21, 2017 6:40 am
Location: Paramaribo, Suriname
Station model: Davis Pro 2 (2x)
Software: WeeWX
Contact:

Re: Weewx data upload to Meteotemplate

Post by Luc » Mon Nov 27, 2017 4:53 am

Ron,
It seems to me that two different weewx installation methods are used.
/home/weewx is used by installation via setup.py
/etc/weewx is used by the debian installation.
So probably file meteotemplate.py is not copied to the right directory.
I think your installation expects it at /home/weewx/bin/user
Cheers, Luc
Image

mmir
Observer
Observer
Posts: 18
Joined: Sat Sep 09, 2017 6:20 pm
Location: Bavaria
Station model: FineOffset WH1080
Software: WeeWX

Re: Weewx data upload to Meteotemplate

Post by mmir » Mon Nov 27, 2017 9:15 am

@ Ron

I'm using the same PWS with a RPi like you. My question is: do you really run the Meteotemplate on another server?

I run it also on the RPi and then the path is for example in weewx.cfg

server_url = http://192.168.1xxx.xxx/weewx/template/api.php

I'm running a python installation of weewx.

Perhaps it helps.

Joachim
Regards from Bavaria

User avatar
Ron
Observer
Observer
Posts: 16
Joined: Thu Nov 23, 2017 7:23 pm
Location: Central Alabama
Station model: WH1080
Software: Weewx
Contact:

Re: Weewx data upload to Meteotemplate

Post by Ron » Mon Nov 27, 2017 7:05 pm

@ Luc Your right and thanks for mentioning that. I had forgotten that there were two different installs. I had used the py setup, so this extension is looking in the wrong place. I don't have a lot of data to lose, so I may try installing weewx via the other method. Then the extension should install correctly. Thanks so much for the response.

@ mmir Thanks for the information, that will help. Yes, I have weewx running on the Pi3 (24/7), and I uploaded meteotemplate to one of my shared hosting accounts. My current station that I have played with is totally weewx with a template I found. https://www.castlekeepdanes.com/weather/index.html
My meteotemplate site that I am trying to get updating from weewx is http://castlekeepdanes.com/template/indexDesktop.php
It works fine using WU, but I would like to figure this one out.

Thank you both for the information, it has solved one issue which was the difference between installation methods.
Image

User avatar
Ron
Observer
Observer
Posts: 16
Joined: Thu Nov 23, 2017 7:23 pm
Location: Central Alabama
Station model: WH1080
Software: Weewx
Contact:

Re: Weewx data upload to Meteotemplate

Post by Ron » Tue Nov 28, 2017 9:27 pm

Sorry for the double post, I just wanted to thank everyone for the help. It was a combination of all mentioned here, that helped me get it going and updating from weewx. Now to sit and design it the way I want.

Again, many thanks, I will put a banner up in my signature once I have it the way I want.

Ron
Image

User avatar
Luc
Developer
Developer
Posts: 168
Joined: Mon Aug 21, 2017 6:40 am
Location: Paramaribo, Suriname
Station model: Davis Pro 2 (2x)
Software: WeeWX
Contact:

Re: Weewx data upload to Meteotemplate

Post by Luc » Tue Nov 28, 2017 10:53 pm

Ron,
That is the great thing of this meteotemplate forum.
We are here to help each other where we can.
And if we can't, there is always Jachym! :-)
Have fun with your weather data!
Cheers, Luc
Image

Post Reply