Re: [weewx-user] Re: weewx crashes with error: unpack requires a string of len 104
First off, my apologies to all - given the subject line I completely missed that this question was related to my HP1000 driver. Given the line number, you are using the latest version of the driver (I note that the driver that Bob provides above is based on the earlier version). Is it possible to edit the HP1000.py file and change line 524 from interp_data = struct.unpack("8s8s16s8shbb14fbbh", rxData) to try: interp_data = struct.unpack("8s8s16s8shbb14fbbh", rxData) except: loginf('Bad data: length = {0}', len(rxData)) loginf('Bad data: "{0}"', rxData) continue (Note the indenting of 4 spaces - Pythin is very sensitive to the indenting of the code.) That should dump out to the system log file the bad data so that we can look at it and see what is wrong. When I wrote the driver I only had my own weather station as a guide so if other firmware creates different sized (or formatted) records then there will be problems. It is hard to know the level of 'error protection' that is needed when yo don't know the sources of the possible errors (at least that is my excuse!). Susan -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: Ambient Weather WS-2902 reporting troubles with the interceptor extension
On Saturday, March 31, 2018 at 8:30:38 AM UTC-7, jan hallink wrote: > > > > I don't know which router you have, but I have a Asus rt-n66u > This router have a possibility of command line access (telnet or ssh) > > What I did is the following: > enable SSH in my router > connect with putty (or other ssh client) to my router > type the 2 iptable rules > > after that, interceptor driver could read the data > > I have an Actiontec C1900A and apparently I don't have the ssh enable option, only telnet. I updated the firmware and gained two additional telnet options. I appreciate all your input. Thanks -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: Current wind graphic?
Very nice! That's not exactly what I'm attempting right now, but I'll keep in mind for the future. I hope you'll add it to the weewx wiki, so it'll be easy to find in the future. I didn't find the realtime gauge data extension in the wiki, either, but found it here: https://github.com/gjr80/weewx-realtime_gauge-data On Sunday, April 1, 2018 at 10:32:53 PM UTC-4, Alec Bennett wrote: > > > On the other hand, it may be possible to do all I need with javascript, > and I'll probably try that first. > > If you want to use javascript, you might be interested in this project of > mine: > > github.com/wrybread/Weather-Underground-Style-Real-Time-Gauge > > Personally I think javascript is a good method for current wind > conditions, since it makes it easy to update a graphic continually. This > live demo should update every 2 seconds or so (every time the wind > indicator turns green is an update): > > sinkingsensation.com/wu_gauge/ > > I should really update that though, since it's very small on my screen. A > CSS issue. Or here (css optimized for mobile): > > sinkingsensation.com/wind > > Note that this requires enabling the RTC ("real time gauge") extension in > weewx. And fyi the effect is achieved by rotating the circle to the current > wind direction. > > > > > > > > > > > > > >> A crude version, without making the wind directional pointer proportional >> to wind speed, can be done with svg graphics and no outside help. I've >> posted that to the old thread that I linked in the first post. >> >> >> On Friday, March 30, 2018 at 8:27:41 PM UTC-4, RobbH wrote: >>> >>> Maybe, at long last, I'm going to have to buckle down and learn enough >>> of Python to do this! >>> >>> >>> On Friday, March 30, 2018 at 6:51:49 PM UTC-4, vince wrote: On Friday, March 30, 2018 at 1:54:30 PM UTC-7, RobbH wrote: > > Still pursuing this, and I have learned how to generate the sort of > image I want, but not within Weewx. Is it possible call an external > program > (shell script) during each report cycle? > > It is possible to do darn near anything if you write an extension to do so.assuming the account weewx runs as has privileges to do so. >>> -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: rainstorm total rainfall SQL and demonstration python script
Hello Rich, I've been studying that tag for some time, but my Python knowledge is not much. There is a web Spain that I have connected my station and has that function but I want to do it from weewx. We will study more. regards The web and my station in Alanís, Sevilla https://www.meteoclimatic.net/perfil/ESAND410041380A El domingo, 25 de febrero de 2018, 1:09:26 (UTC+1), Rich Altmaier escribió: > > I studied the weewx archive database and created this SQL, embedded into a > python script, to find the most recent rain storm and show the running > total rainfall of the storm. > You can see the script is parameterized to define a storm as delimited by > some number of hours of no rain, I selected 8. > > My objective is to hope someone will extract useful portions for the > calculation of a tag to add to a report, enabling showing storm total > rainfall! > If you do this, please do add to this post!! > The script *does not modify* your database, creating only a temporary > table to make the query reasonably quick. > > Thanks, Rich > > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: rainstorm total rainfall SQL and demonstration python script
Hi Manuel, you and I have the same question! How to create a weewx new tag! I plan to study that over the next month or so. Regarding the error below, in storm.py the intention is that you open your weewx database in line 42: sqlite3.connect("your database filename") For experimentation, assuming you are using weewx on Linux, copy your database file, which is probably at /var/lib/weewx, named weewx.sdb, to /tmp. Then put the /tmp/weewx.sdb filename into the .connect line! Then you can try out my script. Rich On Monday, April 2, 2018 at 1:46:53 PM UTC-7, Manuel wrote: > > > > El domingo, 25 de febrero de 2018, 18:25:52 (UTC+1), Rich Altmaier > escribió: >> >> I fixed the licensing statement to be GPL3, added the copyright notice, >> and I changed the storm dry period to 24 hours. >> Thanks, Rich >> >> Hi, I run the file storm.py ad i have a error: Traceback (most recent >> call last): >>File "/var/lib/weewx/storm.py", line 53, in >> "" ", {" now ": storm_now," past ": storm_in_past}) >> sqlite3.OperationalError: no such table: archive >> ? Thanks >> >> On Saturday, February 24, 2018 at 4:09:26 PM UTC-8, Rich Altmaier wrote: >>> >>> I studied the weewx archive database and created this SQL, embedded into >>> a python script, to find the most recent rain storm and show the running >>> total rainfall of the storm. >>> You can see the script is parameterized to define a storm as delimited >>> by some number of hours of no rain, I selected 8. >>> >>> My objective is to hope someone will extract useful portions for the >>> calculation of a tag to add to a report, enabling showing storm total >>> rainfall! >>> If you do this, please do add to this post!! >>> The script *does not modify* your database, creating only a temporary >>> table to make the query reasonably quick. >>> >>> Thanks, Rich >>> >>> -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: rainstorm total rainfall SQL and demonstration python script
El domingo, 25 de febrero de 2018, 18:25:52 (UTC+1), Rich Altmaier escribió: > > I fixed the licensing statement to be GPL3, added the copyright notice, > and I changed the storm dry period to 24 hours. > Thanks, Rich > > Hi, I run the file storm.py ad i have a error: Traceback (most recent call > last): >File "/var/lib/weewx/storm.py", line 53, in > "" ", {" now ": storm_now," past ": storm_in_past}) > sqlite3.OperationalError: no such table: archive > ? Thanks > > On Saturday, February 24, 2018 at 4:09:26 PM UTC-8, Rich Altmaier wrote: >> >> I studied the weewx archive database and created this SQL, embedded into >> a python script, to find the most recent rain storm and show the running >> total rainfall of the storm. >> You can see the script is parameterized to define a storm as delimited by >> some number of hours of no rain, I selected 8. >> >> My objective is to hope someone will extract useful portions for the >> calculation of a tag to add to a report, enabling showing storm total >> rainfall! >> If you do this, please do add to this post!! >> The script *does not modify* your database, creating only a temporary >> table to make the query reasonably quick. >> >> Thanks, Rich >> >> -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: weewx crashes with error: unpack requires a string of len 104
Thanks Bob I’ll be giving a try tomorrow. Graham Sent from my iPad > On 2 Apr 2018, at 19:00, rmc...@gmail.com wrote: > > > >> On Monday, April 2, 2018 at 11:21:05 AM UTC-4, Graham Seward wrote: >> Thanks Bob >> I look forward to seeing it - like you though I'm not a programmer and not >> sure I'll be able to hack the driver myself - still I'll have a go! >> As you say, hopefully Susan will see this. >> Many thanks >> Graham > > Graham, > Here is a copy of the driver I'm using. There are only 3 sections I modified > starting about line 261, 314, and 346. > I hope it works for you > > Bob > -- > 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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: weewx crashes with error: unpack requires a string of len 104
On Monday, April 2, 2018 at 11:21:05 AM UTC-4, Graham Seward wrote: > > Thanks Bob > I look forward to seeing it - like you though I'm not a programmer and not > sure I'll be able to hack the driver myself - still I'll have a go! > As you say, hopefully Susan will see this. > Many thanks > Graham > Graham, Here is a copy of the driver I'm using. There are only 3 sections I modified starting about line 261, 314, and 346. I hope it works for you Bob -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. # #Copyright (c) 2017 Susan Mackay # acknowledging that this driver code originated from and # is structured in a similar way to the Weewx 'Simulator' driver code # that carries the following line: #Copyright (c) 2009-2015 Tom Keffer# # """hp1000 driver for the weewx weather system""" import math import time import datetime import weedb import weewx.drivers import weeutil.weeutil from weewx.units import convertStd import syslog import sys import socket import struct DRIVER_NAME = 'HP1000' DRIVER_VERSION = "1.0" UDP_BROADCAST_PORT = 6000 TCP_PORT = 6500 def loader(config_dict, engine): station = HP1000Driver(**config_dict[DRIVER_NAME]) return station def logmsg(level, msg): syslog.syslog(level, 'HP1000: %s' % (msg)) def logdbg(msg): logmsg(syslog.LOG_DEBUG, msg) def loginf(msg): logmsg(syslog.LOG_ERR, msg) def logerr(msg): logmsg(syslog.LOG_ERR, msg) class HP1000Driver(weewx.drivers.AbstractDevice): """HP1000 Driver""" def __init__(self, **stn_dict): """Initialize the HP1000 driver""" self.ws_name = "HP1000" loginf('HP1000 Starting') self.internal_test_mode = False # Save the configuration parameters try: self.ip_address_mask = stn_dict['ip_address_mask'] except KeyError, e: raise Exception( "Required parameter 'ip_address_mask' has not been specified") self.retry_count = int(stn_dict.get('retry_count', 5)) self.socket_timeout = float(stn_dict.get('socket_timeout', 5)) self.loop_delay = float( stn_dict.get('loop_delay', None)) self.retry_wait = int(stn_dict.get('retry_wait', 5)) self.max_retry = int(stn_dict.get('max_retry', 5)) self.last_rain_value = None self.last_rain_time = None loginf('Address Mask = %s' % self.ip_address_mask) loginf('Retry count = %f' % self.retry_count) loginf('Socket timeout = %f' % self.socket_timeout) if self.loop_delay is None: loginf('No loop delay') else: loginf('Loop delay = %f' % self.loop_delay) loginf('Retry Wait = %f' % self.retry_wait) loginf('Max Retry = %f' % self.max_retry) # Show that we are not connected to a weather station self.ws_socket = None def string_to_null_padded(self, source, max_length, padd_char='\0'): # Create a byte array passed_string = source.ljust(max_length, '\0') return passed_string def create_cmd_string(self, cmd="READ", argument="NOWRECORD"): # Create the complete packet cmd_packet = '{0:<8s}{1:<8s}{2:<12s}'.format( self.string_to_null_padded('PC2000', 8), self.string_to_null_padded(cmd, 8), self.string_to_null_padded(argument, 12)) cmd_packet = self.string_to_null_padded(cmd_packet, 40) return cmd_packet def convert_units(self, source, target): """Suppress errors when the conversion cannot occcur such as when the source and target unit are the same - it happens a lot in this code""" try: result = convertStd(source, target) except: result = source return result def genLoopPackets(self): network_retry_count = self.max_retry # Local network failure retry counter while True: if self.ws_socket is None: # Search for a weather station on the specified if not self.internal_test_mode: # Broadcast for a weather station sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) sock.settimeout(self.socket_timeout) bcData = "PC2000\0\0SEARCH\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" retry_counter = self.retry_count sender_addr = None while True: #
[weewx-user] Re: Weirdness: graphs with dots on each hour...
On Mon 02 Apr Andrew Milner wrote: > You need to use wee_device (or the sw that came with the station) to > set the hardware interval on the station. There is no setting by > pressing the buttons/menu on the station itself. Thanks. I was wondering where it got set (and, for that matter, how I set it in the first place if its factory value is the one it now has... wee_device seems to have fixed it. Thanks. -- 73, Rick, M0LEP -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: rainstorm total rainfall SQL and demonstration python script
How can I implement this in weewx as a new tag in a custom search list extension? My knowledge of python is not very good. Thank you El domingo, 25 de febrero de 2018, 1:09:26 (UTC+1), Rich Altmaier escribió: > > I studied the weewx archive database and created this SQL, embedded into a > python script, to find the most recent rain storm and show the running > total rainfall of the storm. > You can see the script is parameterized to define a storm as delimited by > some number of hours of no rain, I selected 8. > > My objective is to hope someone will extract useful portions for the > calculation of a tag to add to a report, enabling showing storm total > rainfall! > If you do this, please do add to this post!! > The script *does not modify* your database, creating only a temporary > table to make the query reasonably quick. > > Thanks, Rich > > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Fwd: Us congress hearing of maan alsaan Money laundry قضية الكونغجرس لغسيل الأموال للمليادير معن الصانع
YouTube videos of U.S. Congress money laundering hearing of Saudi Billionaire " Maan Al sanea" with *bank of America* and The owner of Saad Hospital and Schools in the Eastern Province in *Saudi Arabia* and the Chairman of the Board of Directors of Awal Bank in *Bahrain* With Arabic Subtitles *موقع اليوتيوب الذي عرض جلسة استماع الكونجرس الأمريكي * * لمتابعة نشاطات غسل الأموال ونشاطات* *السعودي معن عبدالواحد الصانع* *مالك مستشفى وشركة سعد ومدارس سعد بالمنطقة الشرقية بالسعودية ورئيس مجلس ادارة بنك اوال البحريني* *مترجم باللغة العربية* http://www.youtube.com/watch?v=mIBNnQvhU8s -- Bu iletiyi Google Grupları'ndaki "Warezicerik" grubuna abone olduğunuz için aldınız. Bu grubun aboneliğinden çıkmak ve bu gruptan artık e-posta almamak için warezicerik+unsubscr...@googlegroups.com adresine e-posta gönderin. Bu gruba yayın göndermek için, warezice...@googlegroups.com adresine e-posta gönderin. Bu grubu https://groups.google.com/group/warezicerik adresinde ziyaret edebilirsiniz. Daha fazla seçenek için https://groups.google.com/d/optout adresini ziyaret edin. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Re: Calculate the sum of a weekly energy production for a solar panel
The "months_ago" feature was not introduced until V3.7. You are using V3.6.2. Upgrade! -tk On Mon, Apr 2, 2018 at 4:13 AM, Marco Binerwrote: > Hi Tom > I am again disturbing you. > As I said I managed it to summarize my energy production with your hint, > but it is still not satisfiying my wish. > Here my code to summarize the production of a month: > #set $month_total=0 > #for $day in $month.days > $day.dateTime.format("%A > %d.%m.%y")$day.electric_ed.last > #if $day.electric_ed.last.raw is not None > #set $month_total += $day.electric_ed.last.raw > #end if > #end for > #set $month_total = $month_total / 1000 > #set $month_total = "%.2f" % $month_total > Total des Monats $month_total > KWh > > starting the sum with: > #for $day in $month.days > starts the first day of a month, what I need is to set the starting time > one month back from today. > I tried to set the starting day with $month($months_ago=1) > #for $day in $month($months_ago=1).days > gives an error: > TypeError: month() got an unexpected keyword argument 'months_ago' > > As the graphic shows the values of the last week, rsp. the last month I > would like to present in the table also the values of the last week, resp. > the last month, not the values starting from monday or the the 1. of a > month. So how do I set the correct start day for the summarisation? > > Regards > Marco > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [weewx-user] Episode rainfall
Hello, Manuel Unfortunately, there is no support for a tag like that in weeWX. You would have to write a custom search list extension. -tk On Mon, Apr 2, 2018 at 3:45 AM, Manuelwrote: > Hello, I would like to know how it is possible to obtain the rain of an > episode of precipitation and how many days in a row it has rained. Thank > you > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Customising reports: daily max and min temps over a month
I was looking in the customising reports section of the wiki for how to draw a graph with just the highs and lows (temps) over a month. Now, of course, I can't find the specific section as the docs are so extensive!! Anyway, it wouldn't work for me so I had to do some tinkering. I think the main issue was to add the aggregate interval and also the marker_type = cross in order to see the values. Here is the relevant portion of my skin.conf: [[[monthhilow]]] marker_type ='cross' aggregate_interval = 86400 image_width = 650 image_height = 360 hi data_type = outTemp aggregate_type = max label = High low data_type = outTemp aggregate_type = min label = Low Temperature Hopefully it will be of help to some fellow newbies. PS extensive docs+active forum = top quality product!! Thanks Richard -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: weewx crashes with error: unpack requires a string of len 104
Thanks Bob I look forward to seeing it - like you though I'm not a programmer and not sure I'll be able to hack the driver myself - still I'll have a go! As you say, hopefully Susan will see this. Many thanks Graham -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: Fine Offset lockup (possible to recover data?)
As it happens I just had another lockup but weewx did pull the data since the lockup. I'm not sure whether this was luck or whatever. I did however have to restart weewx to get it going. Once I realised no data was going to weewx, I activated the log before powercycling and restarting and have attached the file. Perhaps I am not suffering from lock up it could be something else. As a newbie, I have to admit a lot of the info means nothing to me. NB I did try to use the device utility as instructed but I got the message: wee_device: error: --history option requires an argument Regards Richard On Saturday, 31 March 2018 12:31:01 UTC+1, mwall wrote: > > > > On Saturday, March 31, 2018 at 3:45:35 AM UTC-4, Richard Cain wrote: >> >> Hi >> Thanks for the reply. On my console there is an icon which shows the >> memory, this doesn't clear with a power cycle so it has retained the data. >> So again, any chance of getting this data? >> > > ah, you have a 30xx. those retain data through a power cycle. > > weewx will only pull data from the logger if the data are newer than the > latest data in the weewx database > > so after a lockup, weewx *should* pull the data since the lockup began > > use the wee_device utility to see exactly what is in the logger > > wee_device --history > > this will dump all of the data from the logger. then you can put that > into the weewx database using sqlite tools. > > m > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. richard@richard-ub1710:~$ tail -f /var/log/syslog Apr 2 15:09:56 richard-ub1710 weewx[15910]: fousb: get_observations failed: ignoring suspected bogus data from 0x0150 (delay=49 interval=15) Apr 2 15:10:26 richard-ub1710 weewx[15910]: fousb: get_observations failed: ignoring suspected bogus data from 0x0150 (delay=49 interval=15) Apr 2 15:10:56 richard-ub1710 weewx[15910]: fousb: get_observations failed: ignoring suspected bogus data from 0x0150 (delay=50 interval=15) Apr 2 15:11:09 richard-ub1710 dbus-daemon[1547]: Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' Apr 2 15:11:09 richard-ub1710 systemd[1533]: Starting GNOME Terminal Server... Apr 2 15:11:09 richard-ub1710 dbus-daemon[1547]: Successfully activated service 'org.gnome.Terminal' Apr 2 15:11:09 richard-ub1710 systemd[1533]: Started GNOME Terminal Server. Apr 2 15:11:32 richard-ub1710 weewx[15910]: fousb: get_observations failed: ignoring suspected bogus data from 0x0150 (delay=51 interval=15) Apr 2 15:11:32 richard-ub1710 weewx[15910]: engine: Caught WeeWxIOError: Max retries exceeded while fetching observations Apr 2 15:11:32 richard-ub1710 weewx[15910]: Waiting 60 seconds then retrying... Apr 2 15:12:10 richard-ub1710 kernel: [1134722.266147] usb 3-4: USB disconnect, device number 12 Apr 2 15:12:32 richard-ub1710 weewx[15910]: engine: retrying... Apr 2 15:12:32 richard-ub1710 weewx[15910]: engine: Using configuration file /home/richard/weewx/weewx.conf Apr 2 15:12:32 richard-ub1710 weewx[15910]: engine: Loading station type FineOffsetUSB (weewx.drivers.fousb) Apr 2 15:12:32 richard-ub1710 weewx[15910]: fousb: driver version is 1.9 Apr 2 15:12:32 richard-ub1710 weewx[15910]: fousb: polling mode is PERIODIC Apr 2 15:12:32 richard-ub1710 weewx[15910]: fousb: polling interval is 60 Apr 2 15:12:32 richard-ub1710 weewx[15910]: fousb: Cannot find USB device with Vendor=0x1941 ProdID=0x8021 Device=None Apr 2 15:12:32 richard-ub1710 weewx[15910]: import of driver failed: Unable to find USB device () Apr 2 15:12:32 richard-ub1710 weewx[15910]: engine: Unable to load driver: Unable to find USB device Apr 2 15:12:32 richard-ub1710 weewx[15910]: Exiting... Apr 2 15:12:34 richard-ub1710 kernel: [1134746.886831] usb 3-4: new low-speed USB device number 31 using xhci_hcd Apr 2 15:12:34 richard-ub1710 kernel: [1134747.035234] usb 3-4: New USB device found, idVendor=1941, idProduct=8021 Apr 2 15:12:34 richard-ub1710 kernel: [1134747.035240] usb 3-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0 Apr 2 15:12:34 richard-ub1710 kernel: [1134747.044131] hid-generic 0003:1941:8021.0008: hiddev0,hidraw0: USB HID v1.00 Device [HID 1941:8021] on usb-:00:14.0-4/input0 Apr 2 15:12:35 richard-ub1710 mtp-probe: checking bus 3, device 31: "/sys/devices/pci:00/:00:14.0/usb3/3-4" Apr 2 15:12:35 richard-ub1710 mtp-probe: bus: 3, device: 31 was not an MTP device Apr 2 15:13:08 richard-ub1710 dhclient[4683]: DHCPREQUEST of 192.168.1.35 on eno1 to 192.168.1.1 port 67 (xid=0x363c7fc) Apr 2 15:13:08 richard-ub1710 dhclient[4683]: DHCPACK of 192.168.1.35 from 192.168.1.254 Apr 2 15:13:08 richard-ub1710 NetworkManager[985]: [1522678388.3163] dhcp4 (eno1):
[weewx-user] Re: weewx crashes with error: unpack requires a string of len 104
On Monday, April 2, 2018 at 9:48:57 AM UTC-4, Graham Seward wrote: > > Hi > Did you ever get a solution to this issue. I have weewx running with > Susan's HP1000 driver connecting to a Maplin N23-dq (HP1000 clone). Took me > a while to get it going in first place but eventually a firmware upgrade on > the HP1000 resulted in success. However after a couple of hours of running > weewx stops. Syslog throws up the same error as yours: > > Mar 31 17:04:38 raspberrypi weewx[1148]: engine: Main loop exiting. > Shutting engine down. > Mar 31 17:04:38 raspberrypi weewx[1148]: engine: Shutting down StdReport > thread > Mar 31 17:04:38 raspberrypi weewx[1148]: engine: StdReport thread has been > terminated > Mar 31 17:04:38 raspberrypi weewx[1148]: engine: Caught unrecoverable > exception in engine: > Mar 31 17:04:38 raspberrypi weewx[1148]: unpack requires a > string argument of length 104 > Mar 31 17:04:38 raspberrypi weewx[1148]: Traceback (most recent > call last): > Mar 31 17:04:38 raspberrypi weewx[1148]: File > "/home/weewx/bin/weewx/engine.py", line 871, in main > Mar 31 17:04:38 raspberrypi weewx[1148]: engine.run() > Mar 31 17:04:38 raspberrypi weewx[1148]: File > "/home/weewx/bin/weewx/engine.py", line 187, in run > Mar 31 17:04:38 raspberrypi weewx[1148]: for packet in > self.console.genLoopPackets(): > Mar 31 17:04:38 raspberrypi weewx[1148]: File > "/home/weewx/bin/user/HP1000.py", line 524, in genLoopPackets > Mar 31 17:04:38 raspberrypi weewx[1148]: interp_data = > struct.unpack("8s8s16s8shbb14fbbh", rxData) > Mar 31 17:04:38 raspberrypi weewx[1148]: error: unpack requires > a string argument of length 104 > Mar 31 17:04:38 raspberrypi weewx[1148]: Exiting. > > Weewex v3.8 on Raspberry Pi model B > Short of shutting down and restarting I have not been able to resolve the > issue > > I've searched all the threads and can't find a solution - is there one? > Any help apprecia > Hi Graham, Yes I did get a fix for the problem. Thats the short answer. The long answer is I hacked the driver and if I remember Weewx it self. I'll post what I did, but I want you to know that I'm a (almost) 80 yr old truck driver not a programmer. Maybe Susan will see this and chime in. Luck Bob -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: weewx crashes with error: unpack requires a string of len 104
Hi Did you ever get a solution to this issue. I have weewx running with Susan's HP1000 driver connecting to a Maplin N23-dq (HP1000 clone). Took me a while to get it going in first place but eventually a firmware upgrade on the HP1000 resulted in success. However after a couple of hours of running weewx stops. Syslog throws up the same error as yours: Mar 31 17:04:38 raspberrypi weewx[1148]: engine: Main loop exiting. Shutting engine down. Mar 31 17:04:38 raspberrypi weewx[1148]: engine: Shutting down StdReport thread Mar 31 17:04:38 raspberrypi weewx[1148]: engine: StdReport thread has been terminated Mar 31 17:04:38 raspberrypi weewx[1148]: engine: Caught unrecoverable exception in engine: Mar 31 17:04:38 raspberrypi weewx[1148]: unpack requires a string argument of length 104 Mar 31 17:04:38 raspberrypi weewx[1148]: Traceback (most recent call last): Mar 31 17:04:38 raspberrypi weewx[1148]: File "/home/weewx/bin/weewx/engine.py", line 871, in main Mar 31 17:04:38 raspberrypi weewx[1148]: engine.run() Mar 31 17:04:38 raspberrypi weewx[1148]: File "/home/weewx/bin/weewx/engine.py", line 187, in run Mar 31 17:04:38 raspberrypi weewx[1148]: for packet in self.console.genLoopPackets(): Mar 31 17:04:38 raspberrypi weewx[1148]: File "/home/weewx/bin/user/HP1000.py", line 524, in genLoopPackets Mar 31 17:04:38 raspberrypi weewx[1148]: interp_data = struct.unpack("8s8s16s8shbb14fbbh", rxData) Mar 31 17:04:38 raspberrypi weewx[1148]: error: unpack requires a string argument of length 104 Mar 31 17:04:38 raspberrypi weewx[1148]: Exiting. Weewex v3.8 on Raspberry Pi model B Short of shutting down and restarting I have not been able to resolve the issue I've searched all the threads and can't find a solution - is there one? Any help appreciated >> -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: Weewx new template / comments welcomes!
Thank you very much Andrea. El lunes, 19 de marzo de 2018, 15:51:35 (UTC+1), Andrea escribió: > > Hi Manuel, > I'll try to resume the link to mega, then I'll send you. > > > > > Il giorno lunedì 19 marzo 2018 00:05:50 UTC+1, Manuel ha scritto: >> >> Hi. I know that the post is a little old but I would like it if it is >> possible to install the skin on my website. The links to mega are broken. >> Where >> can I get them? Thank you >> >> >>> -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Re: Calculate the sum of a weekly energy production for a solar panel
Hi Tom I am again disturbing you. As I said I managed it to summarize my energy production with your hint, but it is still not satisfiying my wish. Here my code to summarize the production of a month: #set $month_total=0 #for $day in $month.days $day.dateTime.format("%A %d.%m.%y")$day.electric_ed.last #if $day.electric_ed.last.raw is not None #set $month_total += $day.electric_ed.last.raw #end if #end for #set $month_total = $month_total / 1000 #set $month_total = "%.2f" % $month_total Total des Monats $month_total KWh starting the sum with: #for $day in $month.days starts the first day of a month, what I need is to set the starting time one month back from today. I tried to set the starting day with $month($months_ago=1) #for $day in $month($months_ago=1).days gives an error: TypeError: month() got an unexpected keyword argument 'months_ago' As the graphic shows the values of the last week, rsp. the last month I would like to present in the table also the values of the last week, resp. the last month, not the values starting from monday or the the 1. of a month. So how do I set the correct start day for the summarisation? Regards Marco -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[weewx-user] Episode rainfall
Hello, I would like to know how it is possible to obtain the rain of an episode of precipitation and how many days in a row it has rained. Thank you -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.