gjr80 / weewx-bloomsky Goto Github PK
View Code? Open in Web Editor NEWA weeWX driver for the Bloomsky family of weather stations
License: GNU General Public License v3.0
A weeWX driver for the Bloomsky family of weather stations
License: GNU General Public License v3.0
In the default sensor map in the driver file, i noticed that i had to change the *.Data.pressure to a capital P for it to work, i also had to change the barometer to pressure, so that weewx would then calculate the barometer correctly.
DEFAULT_SENSOR_MAP = 'barometer': '*.Data.pressure'
Changed it to = 'pressure': '*.Data.Pressure'
Should this be correct?
I'm running WeeWx on a Pi4, but facing some issues with Bloomsky module. Everything seems to be set correctly, but I get the following error:
Sep 5 16:32:59 pi4 systemd[1]: Starting LSB: weewx weather system...
Sep 5 16:33:00 pi4 weewx[31392] INFO main: Initializing weewx version 4.5.1
Sep 5 16:33:00 pi4 weewx[31392] INFO main: Using Python 3.7.3 (default, Jan 22 2021, 20:04:44) #012[GCC 8.3.0]
Sep 5 16:33:00 pi4 weewx[31392] INFO main: Platform Linux-5.10.60-v7l+-armv7l-with-debian-10.10
Sep 5 16:33:00 pi4 weewx[31392] INFO main: Locale is 'en_US.UTF-8'
Sep 5 16:33:00 pi4 weewx[31392] INFO main: PID file is /var/run/weewx.pid
Sep 5 16:33:00 pi4 weewx[31400] INFO main: Using configuration file /etc/weewx/weewx.conf
Sep 5 16:33:00 pi4 weewx[31400] INFO main: Debug is 0
Sep 5 16:33:00 pi4 weewx[31400] INFO weewx.engine: Loading station type Bloomsky (user.bloomsky)
Sep 5 16:33:00 pi4 weewx[31400] CRITICAL main: Caught unrecoverable exception:
Sep 5 16:33:00 pi4 weewx[31400] CRITICAL main: **** name 'logging' is not defined
The Traceback shows:
**** Traceback (most recent call last):
**** File "/usr/share/weewx/weewxd", line 151, in main
**** engine = weewx.engine.StdEngine(config_dict)
**** File "/usr/share/weewx/weewx/engine.py", line 81, in init
**** self.setupStation(config_dict)
**** File "/usr/share/weewx/weewx/engine.py", line 108, in setupStation
**** import(driver)
**** File "/usr/share/weewx/user/bloomsky.py", line 185, in
**** log = logging.getLogger(name)
**** NameError: name 'logging' is not defined
Any suggestions?
Hello,
I had to add the following into the Bloomsky stanza in weewx.conf for the driver to work. Is that something you can add in to your release so that it automatically goes in for others that use your driver?
[[sensor_map]]
deviceID = DeviceID
deviceName = DeviceName
[[[Data]]]
outTemp = Temperature
pressure = Pressure
txBatteryStatus = Voltage
UV = UVIndex
outHumidity = Humidity
imageURL = ImageURL
deviceType = DeviceType
night = Night
imageTimestamp = ImageTS
[[[Point]]]
inTemp = Temperature
inHumidity = Humidity
[[[Storm]]]
rainRate = RainRate
windSpeed = SustainedWindSpeed
windDir = WindDirection
windGust = WindGust
dailyRain = RainDaily
Hi
New install on a pi3 with rasp os lite , all seemed ok except these errors ?
Thanks
Stephen
Jul 26 10:17:00 raspberrypi weewx[4928] CRITICAL main: **** File "/usr/share/weewx/weewx/engine.py", line 92, in setupStation
Jul 26 10:17:00 raspberrypi weewx[4928] CRITICAL main: **** import(driver)
Jul 26 10:17:00 raspberrypi weewx[4913]: Starting weewx weather system: weewx.
Jul 26 10:17:00 raspberrypi weewx[4928] CRITICAL main: **** File "/usr/share/weewx/user/bloomsky.py", line 1003
Jul 26 10:17:00 raspberrypi systemd[1]: Started LSB: weewx weather system.
Jul 26 10:17:00 raspberrypi weewx[4928] CRITICAL main: **** print "Using configuration file %s" % config_path
Jul 26 10:17:00 raspberrypi weewx[4928] CRITICAL main: **** ^
Jul 26 10:17:00 raspberrypi weewx[4928] CRITICAL main: **** SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Using config uration file %s" % config_path)?
Jul 26 10:17:00 raspberrypi weewx[4928] CRITICAL main: **** Exiting.
Jul 26 10:17:01 raspberrypi CRON[4953]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
It worked one time, now I'm getting this in my syslog:
Apr 12 12:18:01 raspberrypi weewx[1124]: bloomsky: bloomsky-client: Exception:
Apr 12 12:18:01 raspberrypi weewx[1124]: **** Traceback (most recent call last):
Apr 12 12:18:01 raspberrypi weewx[1124]: **** File "/usr/share/weewx/user/bloomsky.py", line 674, in run
Apr 12 12:18:01 raspberrypi weewx[1124]: **** self.client.collect_data()
Apr 12 12:18:01 raspberrypi weewx[1124]: **** File "/usr/share/weewx/user/bloomsky.py", line 483, in collect_data
Apr 12 12:18:01 raspberrypi weewx[1124]: **** raw_data = self.sd.get_data()
Apr 12 12:18:01 raspberrypi weewx[1124]: **** File "/usr/share/weewx/user/bloomsky.py", line 698, in get_data
Apr 12 12:18:01 raspberrypi weewx[1124]: **** params, headers)
Apr 12 12:18:01 raspberrypi weewx[1124]: **** File "/usr/share/weewx/user/bloomsky.py", line 742, in get_request
Apr 12 12:18:01 raspberrypi weewx[1124]: **** "Failed to get BloomSky API data")
Apr 12 12:18:01 raspberrypi weewx[1124]: **** TypeError: logerr() takes exactly 1 argument (2 given)
Apr 12 12:18:02 raspberrypi weewx[1124]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Apr 12 12:18:02 raspberrypi weewx[1124]: manager: Starting backfill of daily summaries
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.