Page 1 of 1

Weewx data upload to Meteotemplate

Posted: Sun Nov 26, 2017 10:23 pm
by Ron
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,

Re: Weewx data upload to Meteotemplate

Posted: Sun Nov 26, 2017 10:52 pm
by Jachym
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.

Re: Weewx data upload to Meteotemplate

Posted: Mon Nov 27, 2017 12:11 am
by Ron
Thanks, I'm still plugging away at it.

Re: Weewx data upload to Meteotemplate

Posted: Mon Nov 27, 2017 4:53 am
by Luc
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

Re: Weewx data upload to Meteotemplate

Posted: Mon Nov 27, 2017 9:15 am
by mmir
@ 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

Re: Weewx data upload to Meteotemplate

Posted: Mon Nov 27, 2017 7:05 pm
by Ron
@ 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.

Re: Weewx data upload to Meteotemplate

Posted: Tue Nov 28, 2017 9:27 pm
by Ron
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

Re: Weewx data upload to Meteotemplate

Posted: Tue Nov 28, 2017 10:53 pm
by Luc
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