Change driver but Weewx doesnt listen to me!

128 views
Skip to first unread message

José C. Morales C.

unread,
May 11, 2020, 10:04:35 PM5/11/20
to weewx-user
Hi everyone.

I installed Weewx on my RPI3, i used "simulator" to see how works!, i saw and all is OK, i changed the extension to weatherlinkjson, did all steps fine (i think so) but the weatherserver doesnt change, still appears simulator on http://my.RPI.address/weewx

Im new using RPI (linux), i dont know what i missed

wlip1.jpg

wlip2.jpg

wlip3.jpg


Tom Keffer

unread,
May 12, 2020, 7:19:56 AM5/12/20
to weewx-user
Impossible to say without seeing the log. See the article Help! Posting to weewx-user for how to get a good log. 

Please do not post screenshots. Instead, cut and paste from the log.

-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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/37ff63ac-b611-4a20-87dc-96134bcf30c2%40googlegroups.com.

José C. Morales C.

unread,
May 12, 2020, 8:56:32 AM5/12/20
to weewx-user
Hi Tom,

Thanks, sorry for the screenshot, this is what says the log

May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****    File "/usr/sh                                                                                        are/weewx/weewx/engine.py", line 188, in run
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****      for packet                                                                                         in self.console.genLoopPackets():
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****    File "/usr/sh                                                                                        are/weewx/user/WeatherLinkLiveJSON.py", line 156, in genLoopPackets
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****      time.sleep(                                                                                        self.poll_interval)
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****    File "/usr/sh                                                                                        are/weewx/weewxd", line 257, in sigTERMhandler
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****      raise Termi                                                                                        nate
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****  Terminate
May 12 08:48:40 raspberrypi weewx[7126]: Stopping weewx weather system: weewx.
May 12 08:48:40 raspberrypi systemd[1]: weewx.service: Succeeded.
May 12 08:48:40 raspberrypi systemd[1]: Stopped LSB: weewx weather system.



El martes, 12 de mayo de 2020, 7:19:56 (UTC-4), Tom Keffer escribió:
Impossible to say without seeing the log. See the article Help! Posting to weewx-user for how to get a good log. 

Please do not post screenshots. Instead, cut and paste from the log.

-tk

On Mon, May 11, 2020 at 7:04 PM José C. Morales C. <josecm...@gmail.com> wrote:
Hi everyone.

I installed Weewx on my RPI3, i used "simulator" to see how works!, i saw and all is OK, i changed the extension to weatherlinkjson, did all steps fine (i think so) but the weatherserver doesnt change, still appears simulator on http://my.RPI.address/weewx

Im new using RPI (linux), i dont know what i missed

wlip1.jpg

wlip2.jpg

wlip3.jpg


--
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...@googlegroups.com.

José C. Morales C.

unread,
May 12, 2020, 9:01:23 AM5/12/20
to weewx-user
order lines

May 12 08:56:55 raspberrypi weewx[7588] INFO weewx.restx: Wunderground: Posting not enabled.
May 12 08:56:55 raspberrypi weewx[7588] INFO weewx.restx: PWSweather: Posting not enabled.
May 12 08:56:55 raspberrypi weewx[7588] INFO weewx.restx: CWOP: Posting not enabled.
May 12 08:56:55 raspberrypi weewx[7588] INFO weewx.restx: WOW: Posting not enabled.
May 12 08:56:55 raspberrypi weewx[7588] INFO weewx.restx: AWEKAS: Posting not enabled.
May 12 08:56:55 raspberrypi weewx[7588] INFO __main__: Starting up weewx version 4.0.0
May 12 08:56:55 raspberrypi weewx[7588] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
May 12 08:56:55 raspberrypi weewx[7588] INFO weewx.manager: Starting backfill of daily summaries
May 12 08:56:55 raspberrypi weewx[7588] INFO weewx.engine: Starting main packet loop.
May 12 08:56:55 raspberrypi weewx[7588] INFO user.WeatherLinkLiveJSON: failure to get data 192.168.1.103:80/v1/current_conditions - try 1 - (No connection adapters were found for '192.168.1.103:80/v1/current_conditions')
May 12 08:57:55 raspberrypi weewx[7588] CRITICAL weewx.engine: Internal error. Packet loop has exited.
May 12 08:57:55 raspberrypi weewx[7588] INFO user.WeatherLinkLiveJSON: failure to get data 192.168.1.103:80/v1/current_conditions - try 1 - (No connection adapters were found for '192.168.1.103:80/v1/current_conditions')
May 12 08:58:55 raspberrypi weewx[7588] CRITICAL weewx.engine: Internal error. Packet loop has exited.
May 12 08:58:55 raspberrypi weewx[7588] INFO user.WeatherLinkLiveJSON: failure to get data 192.168.1.103:80/v1/current_conditions - try 1 - (No connection adapters were found for '192.168.1.103:80/v1/current_conditions')
May 12 08:59:55 raspberrypi weewx[7588] CRITICAL weewx.engine: Internal error. Packet loop has exited.
May 12 08:59:55 raspberrypi weewx[7588] INFO user.WeatherLinkLiveJSON: failure to get data 192.168.1.103:80/v1/current_conditions - try 1 - (No connection adapters were found for '192.168.1.103:80/v1/current_conditions')

Tom Keffer

unread,
May 12, 2020, 9:08:21 AM5/12/20
to weewx-user
You did, in fact, change drivers, to the WeatherLinkLiveJSON driver extension. Unfortunately, it does not seem to be able to connect. You'll have to ask the author of the extension about that problem

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2fd07ee0-02ff-4aa0-b38b-5900c36ed46b%40googlegroups.com.

vince

unread,
May 12, 2020, 10:25:11 AM5/12/20
to weewx-user
On Tuesday, May 12, 2020 at 5:56:32 AM UTC-7, José C. Morales C. wrote


May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****    File "/usr/sh                                                                                        are/weewx/weewx/engine.py", line 188, in run
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****      for packet                                                                                         in self.console.genLoopPackets():
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****    File "/usr/sh                                                                                        are/weewx/user/WeatherLinkLiveJSON.py", line 156, in genLoopPackets
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****      time.sleep(                                                                                        self.poll_interval)
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****    File "/usr/sh                                                                                        are/weewx/weewxd", line 257, in sigTERMhandler
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****      raise Termi                                                                                        nate
May 12 08:48:40 raspberrypi weewx[1318] INFO __main__:     ****  Terminate
May 12 08:48:40 raspberrypi weewx[7126]: Stopping weewx weather system: weewx.
May 12 08:48:40 raspberrypi systemd[1]: weewx.service: Succeeded.
May 12 08:48:40 raspberrypi systemd[1]: Stopped LSB: weewx weather system.


This is not an error, it's just chatty logging in v4.0.0 in the shutdown sequence part of the code.
Tom has a patch for this already complete on the development branch of github, so it will likely be in the next release.
Nothing to worry about here.

vince

unread,
May 12, 2020, 10:27:53 AM5/12/20
to weewx-user

On Tuesday, May 12, 2020 at 6:01:23 AM UTC-7, José C. Morales C. wrote:

May 12 08:56:55 raspberrypi weewx[7588] INFO user.WeatherLinkLiveJSON: failure to get data 192.168.1.103:80/v1/current_conditions - try 1 - (No connection adapters were found for '192.168.1.103:80/v1/current_conditions')
May 12 08:57:55 raspberrypi weewx[7588] CRITICAL weewx.engine: Internal error. Packet loop has exited.

This says weewx can't connect via http to the WeatherLinkLive device over the network.

What did you put for the url in the weewx.conf file ?

José C. Morales C.

unread,
May 12, 2020, 2:04:40 PM5/12/20
to weewx-user
i put 192.168.1.103 is the address of the weatherlinkIP

vince

unread,
May 12, 2020, 2:25:48 PM5/12/20
to weewx-user
On Tuesday, May 12, 2020 at 11:04:40 AM UTC-7, José C. Morales C. wrote:
i put 192.168.1.103 is the address of the weatherlinkIP


In weewx.conf the station for the driver should look like:

   [WeatherLinkLiveJSON]
      driver = user.WeatherLinkLiveJSON
      max_tries = 10
      retry_wait = 5
      poll_interval = 20
      url = http://192.168.0.103:80/v1/current_conditions


José C. Morales C.

unread,
May 12, 2020, 2:49:44 PM5/12/20
to weewx-user
Still the same, i use a meteobridge (i think this one have all data to himself)

May 12 14:39:40 raspberrypi weewx[10594] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
May 12 14:39:40 raspberrypi weewx[10594] DEBUG weewx.engine: Loading service weewx.engine.StdReport
May 12 14:39:40 raspberrypi weewx[10594] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
May 12 14:39:40 raspberrypi weewx[10594] INFO __main__: Starting up weewx version 4.0.0
May 12 14:39:40 raspberrypi weewx[10594] DEBUG weewx.engine: Station does not support reading the time
May 12 14:39:40 raspberrypi weewx[10594] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
May 12 14:39:40 raspberrypi weewx[10594] INFO weewx.manager: Starting backfill of daily summaries
May 12 14:39:40 raspberrypi weewx[10594] INFO weewx.engine: Starting main packet loop.
May 12 14:39:40 raspberrypi weewx[10594] DEBUG urllib3.connectionpool: Starting new HTTP connection (1): 192.168.1.103:80
May 12 14:41:54 raspberrypi weewx[10594] INFO user.WeatherLinkLiveJSON: failure to get data http://192.168.1.103:80/v1/current_conditions - try 1 - (('Connection aborted.', ConnectionResetError(104, 'Conexión reinicializada por la máquina remota')))
May 12 14:42:54 raspberrypi weewx[10594] CRITICAL weewx.engine: Internal error. Packet loop has exited.
May 12 14:42:54 raspberrypi weewx[10594] DEBUG urllib3.connectionpool: Starting new HTTP connection (1): 192.168.1.103:80

vince

unread,
May 12, 2020, 3:00:44 PM5/12/20
to weewx-user
All the driver does is do a http get once in a whole from the URL you have in your weewx.conf file.

See if you can open http://192.168.1.103:80/v1/current_conditions in a browser and see something looking like JSON-formatted output of weather data.

José C. Morales C.

unread,
May 12, 2020, 3:45:18 PM5/12/20
to weewx-user
did it! and the answer was 404 - file not found

vince

unread,
May 12, 2020, 5:22:41 PM5/12/20
to weewx-user
On Tuesday, May 12, 2020 at 12:45:18 PM UTC-7, José C. Morales C. wrote:
did it! and the answer was 404 - file not found



So you want to talk with Davis (or read their docs) about what URL gets you current conditions via a http get.

José C. Morales C.

unread,
May 12, 2020, 8:00:23 PM5/12/20
to weewx-user
Sent an email to Davis about it. let me see what they say
Reply all
Reply to author
Forward
0 new messages