Author Topic: Old SmartHub and Meteobridge?  (Read 2315 times)

0 Members and 1 Guest are viewing this topic.

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Old SmartHub and Meteobridge?
« on: February 14, 2018, 03:23:26 PM »
Since Acurite is screwing over its customer base, does anyone know what will happen after EOL on Aug 31st?  Will Meteobridge continue to read the hub and send to WU etc.?  I know MyAcurite will be finished.
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 3337
Re: Old SmartHub and Meteobridge?
« Reply #1 on: February 14, 2018, 03:35:51 PM »
Since Acurite is screwing over its customer base, does anyone know what will happen after EOL on Aug 31st?  Will Meteobridge continue to read the hub and send to WU etc.?  I know MyAcurite will be finished.

If the meteobridge is doing enough to keep the SmartHUB happy even though the servers are gone, I'd think it should still continue to send data to wunderground.

Offline joegr

  • Senior Member
  • **
  • Posts: 57
Re: Old SmartHub and Meteobridge?
« Reply #2 on: February 14, 2018, 03:46:43 PM »
I don't think that it will.  When the internet goes down, Meteobridge stops getting data.  I can locally go to my Meteobridge and it is still running, but the hub is not sending data any more since the Accurite servers are not acking it.  I talked to the Meteobridge guy about it, and he didn't think there was anyway around it (for Meteobridge).  The Accurite servers have to ack the data for the hub to keep sending it.  This is a major problem for me.  I'll need some other brand of weather station to be able to keep using the data locally with my home automation.

My understanding is that the Meteobridge just listens to the data going back and forth between the hub and Accurite, and does not actually interact with the hub at all.
« Last Edit: February 14, 2018, 03:48:51 PM by joegr »

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 3337
Re: Old SmartHub and Meteobridge?
« Reply #3 on: February 14, 2018, 03:55:33 PM »
I don't think that it will.  When the internet goes down, Meteobridge stops getting data.  I can locally go to my Meteobridge and it is still running, but the hub is not sending data any more since the Accurite servers are not acking it.  I talked to the Meteobridge guy about it, and he didn't think there was anyway around it (for Meteobridge).  The Accurite servers have to ack the data for the hub to keep sending it.  This is a major problem for me.  I'll need some other brand of weather station to be able to keep using the data locally with my home automation.

My understanding is that the Meteobridge just listens to the data going back and forth between the hub and Accurite, and does not actually interact with the hub at all.

It's not too hard to fix.  I used a reverse squid proxy server for my setup and the SmartHUB never knows if the myAcurite servers are gone.

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: Old SmartHub and Meteobridge?
« Reply #4 on: February 14, 2018, 05:06:43 PM »
So that means a 24/7 PC running a proxy server?  geez....  Easier to just trash the stupid thing.
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 3337
Re: Old SmartHub and Meteobridge?
« Reply #5 on: February 14, 2018, 05:10:16 PM »
So that means a 24/7 PC running a proxy server?  geez....  Easier to just trash the stupid thing.

Of course not.  I just added it to my Pi.

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: Old SmartHub and Meteobridge?
« Reply #6 on: February 14, 2018, 05:22:43 PM »
Well, that is better.  Care to share instructions?
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 3337
Re: Old SmartHub and Meteobridge?
« Reply #7 on: February 14, 2018, 05:27:42 PM »
Well, that is better.  Care to share instructions?

It's been about 5 years since I set it up, but there are plenty of tutorials out there via google.

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: Old SmartHub and Meteobridge?
« Reply #8 on: February 14, 2018, 05:31:40 PM »
OK  - maybe I'll do up a tutorial.  Patreon it to pay for my new DumbHUB (tm)   :)
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline vreihen

  • El Niņo chaser
  • Forecaster
  • *****
  • Posts: 1216
  • K2BIG
Re: Old SmartHub and Meteobridge?
« Reply #9 on: February 14, 2018, 05:44:11 PM »
Well, that is better.  Care to share instructions?

1) Buy a Raspberry Pi 3 kit with SD card.

2) Buy a USB SDR dongle, to nab the station packets off of the air.

3) Install Raspbian Linux and weewx, following any of the online tutorials.

4) Install rtl_433 and the SDR driver for weewx.

5) Plug the SDR dongle into any USB port on the Pi.

6) Kick yourself for not doing all of this sooner.....


WU Gold Stars for everyone! :lol:

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 3337
Re: Old SmartHub and Meteobridge?
« Reply #10 on: February 14, 2018, 05:49:06 PM »
Well, that is better.  Care to share instructions?

1) Buy a Raspberry Pi 3 kit with SD card.

2) Buy a USB SDR dongle, to nab the station packets off of the air.

3) Install Raspbian Linux and weewx, following any of the online tutorials.

4) Install rtl_433 and the SDR driver for weewx.

5) Plug the SDR dongle into any USB port on the Pi.

6) Kick yourself for not doing all of this sooner.....


Yep.  That's a good solution.  Do you have any recommendations for wiring in a baro sensor?

Offline vreihen

  • El Niņo chaser
  • Forecaster
  • *****
  • Posts: 1216
  • K2BIG
Re: Old SmartHub and Meteobridge?
« Reply #11 on: February 14, 2018, 07:10:20 PM »
Yep.  That's a good solution.  Do you have any recommendations for wiring in a baro sensor?

There are plenty of options for buying I2C barometers based on the Bosch BMP-280.  I picked up a pack of five on Amazon for $10.88, and had to solder the header pins on them at that price.  Tutorials for hooking sensors up to the Pi's I2C pins with a handful of Dupont cable jumpers are available in Google.  I found someone's code that reads the sensor info and throws it into a file, which is not elegant but is easy to modify the weewx example file plugin to import.  https://github.com/weewx/weewx/wiki/Raspberry%20Pi%20weather%20station%20with%20i2C%20sensors

Bringing in the data, I did it as a weewx data service.  In the services section of weewx.conf:

        data_services = user.i2c.i2cService

A weewx data service augments the default station's data, allowing you to insert external readings from another source into your observation loop packets.  Exactly what we want to do to add the barometer readings, working around weewx's limits of only having one station hardware defined.

This is the butchery that I did on the text file input sample code, placed in /usr/share/weewx/user/i2c.py :

Code: [Select]
#!/usr/bin/python
#
# Portions Copyright 2014 Matthew Wall
# Portions taken from the pond.py example on the "add sensor" page on the weewx wiki, edited by Tom Keffer
#
# weewx service that reads data from a file as key value pairs and adds it to every loop packet
#
# This driver will read data from a file.  Each line of the file is a
# name=value pair, for example:
#
# inTemp=50
# pressure=1009.4
# inHumidity=75
#
# The names must match the weewx database schema, but the schema can be extended for new fields
#
# The units must be in the weewx.US unit system:
#   degree_F, inHg, inch, inch_per_hour, mile_per_hour
#
# Add this service to weewx.conf, then restart weewx
#[Engine]
#[[Services]]
#    data_services = ..., user.i2c.i2cService
#
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.
#
# See http://www.gnu.org/licenses/

import syslog
import weewx
from weewx.wxengine import StdService

class i2cService(StdService):
    def __init__(self, engine, config_dict):
        super(i2cService, self).__init__(engine, config_dict)
        d = config_dict.get('i2cService', {})
        self.filename = d.get('filename', '/var/www/html/weewx/wxdata.txt')
        syslog.syslog(syslog.LOG_INFO, "i2c: using %s" % self.filename)
        self.bind(weewx.NEW_LOOP_PACKET, self.read_file)

    def read_file(self, event):
        data= {}
        try:
            with open(self.filename) as f:
                for line in f:
                    eq_index = line.find('=')
                    name = line[:eq_index].strip()
                    value = line[eq_index + 1:].strip()
                    data[name] = value
        except Exception, e:
            data['error'] = 1
#            logerr("read failed: %s" % e)
        for vname in data:
            event.packet[vname] = float(data[vname])

Certainly not the cleanest or most elegant solution, but someone can clean it up and maybe even skip the file output/input step.

Since there is suddenly a market for a substitute Acu-Rite bridge, the ultimate goal should probably be to develop a pre-built Raspbian SD card image with everything pre-installed to run the SDR and weewx out of the box.  I have no interest with following through, but will share my spaghetti on GitHub if someone wants to use it as a baseline and clean it up.....
WU Gold Stars for everyone! :lol:

Offline DoctorKnow

  • Forecaster
  • *****
  • Posts: 1984
Re: Old SmartHub and Meteobridge?
« Reply #12 on: February 14, 2018, 07:30:30 PM »
PC connect should work for Meteobridge no?

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 3337
Re: Old SmartHub and Meteobridge?
« Reply #13 on: February 14, 2018, 07:35:04 PM »
PC connect should work for Meteobridge no?

That should still work.

Offline DoctorKnow

  • Forecaster
  • *****
  • Posts: 1984
Re: Old SmartHub and Meteobridge?
« Reply #14 on: February 14, 2018, 07:38:57 PM »
I've never in my life seen such an uprising... You would think Cheney was cutting their customers off tomorrow.

 

anything