Re: [weewx-user] Re: Belchertown skin for weewx now available!

2018-11-30 Thread Pat
Try this attached file. I tested it very quickly. 

Stop weewx, place it in your user/bin folder, restart weewx. 

I changed the query to try and ignore NULL values. Hopefully this helps?



On Friday, November 30, 2018 at 12:04:03 PM UTC-5, Jonis Maurin Ceará wrote:
>
> Yes, all done with weewx stoped. But I find a way: delete rows with null 
> values (those 2) and don't run rebuild (the DELETE was done AFTER rebuild 
> command), so this way it's working.but I'm not sure why rebuild is 
> creating these 2 rows with null values :(
>
>
> Em sex, 30 de nov de 2018 às 14:52, Pat  > escreveu:
>
> Thanks for the clarification Tom! I knew about NULL and "", but had 
> assumed that your wee_database checked for NULL, and not null string. Makes 
> sense now. 
>
> Jonis - did you stop weewx in between making the changes? Maybe that could 
> be causing the data to persist? Not really sure on this one. 
>
> On Friday, November 30, 2018 at 10:14:12 AM UTC-5, Jonis Maurin Ceará 
> wrote:
>
> For some reason, there is 2 records with null valuesbut even deleting 
> these, after running --rebuild-daily, both records still there (they are 
> re-create!)
> I've tried to delete this both records from table 'archive' (using 
> dateTime as key), but still there after running rebuild!
>
> Em sex, 30 de nov de 2018 às 12:50, Thomas Keffer  
> escreveu:
>
> Pat, just to clarify: there is a difference between a NULL value and a 
> null string. The former is equivalent to Python's None value, and are to be 
> expected throughout the databases. The latter is a string of zero length 
> and should not normally appear in the databases. The utility wee_database 
> checks only for zero-length strings. 
>
> -tk
>
> On Fri, Nov 30, 2018 at 6:46 AM Pat  wrote:
>
> Interesting. That command checks your archive table. So that seems fine. 
>
> The error is coming from the archive_day_outTemp table and specifically 
> the 
>
> ...

-- 
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.
# Extension for the Belchertown skin. 
# This extension builds search list extensions as well
# as a crude "cron" to download necessary files. 
#
# Pat O'Brien, August 19, 2018

import datetime
import time
import calendar
import json
import os
import syslog

import weewx
import weecfg

from weewx.cheetahgenerator import SearchList
from weewx.tags import TimespanBinder
from weeutil.weeutil import TimeSpan

def logmsg(level, msg):
syslog.syslog(level, 'Belchertown Extension: %s' % msg)

def logdbg(msg):
logmsg(syslog.LOG_DEBUG, msg)

def loginf(msg):
logmsg(syslog.LOG_INFO, msg)

def logerr(msg):
logmsg(syslog.LOG_ERR, msg)

# Print version in syslog for easier troubleshooting
VERSION = "0.8rc3"
loginf("version %s" % VERSION)

class getData(SearchList):
def __init__(self, generator):
SearchList.__init__(self, generator)

def get_extension_list(self, timespan, db_lookup):
"""
Build the data needed for the Belchertown skin
"""

# Look for the debug flag which can be used to show more logging
weewx.debug = int(self.generator.config_dict.get('debug', 0))

# Check if the pre-requisites have been completed. Either station_url or belchertown_root_url need to be set. 
try:
if self.generator.skin_dict['Extras']['belchertown_root_url'] != "":
belchertown_root_url = self.generator.skin_dict['Extras']['belchertown_root_url']
else:
belchertown_root_url = self.generator.config_dict["Station"]["station_url"]
except:
raise Warning( "Error with Belchertown skin. You must define your website URL using station_url or belchertown_root_url in weewx.conf (preferred) or skin.conf. Even if your site is LAN only, this skin needs this value before continuing. Please see the setup guide on GitHub if you have questions." )

# Find the right HTML ROOT
if 'HTML_ROOT' in self.generator.skin_dict:
local_root = os.path.join(self.generator.config_dict['WEEWX_ROOT'],
  self.generator.skin_dict['HTML_ROOT'])
else:
local_root = os.path.join(self.generator.config_dict['WEEWX_ROOT'],
  self.generator.config_dict['StdReport']['HTML_ROOT'])

# Find the SKIN ROOT
local_skin_root = os.path.join( self.generator.config_dict['WEEWX_ROOT'], self.generator.skin_dict['SKIN_ROOT'], self.generator.skin_dict['skin'] )

# Setup UTC offset hours for moment.js in index.html
moment_js_stop_struct = time.localtime( time.time() )
moment_js_utc_offset = (calendar.timegm(moment_js_stop_struct) - 

[weewx-user] Re: Fine Offset WH-2650 and weewx

2018-11-30 Thread Massimiliano Neri
Ian can tell you how I did with the distribution of Ubuntu that you can 
find on the www.armbian.org site for Orange Pi Zero. I do not know how to 
set it on the raspberry by not having it. I have always used various types 
of Orange cards.
If you can set up your raspberry as a hotspot, I can list the procedures 
for installing iptables and the rest of the configuration.
Hoping it is more or less identical.

Il giorno venerdì 23 novembre 2018 00:11:49 UTC+1, Massimiliano Neri ha 
scritto:
>
> Hi, I just bought a WaldBeck Halley WH-2650, basically a clone of the 
> WH-2650 Fine Offset, can you tell me how to configure weewx.conf to 
> intercept its data string?
>
> I thank you in advance.
>

-- 
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: Fine Offset WH-2650 and weewx

2018-11-30 Thread steeple ian
The most recent version of Ubuntu for RaspberryPi is 16.04, so I have
installed Debian 9 (Stretch) instead.

On Fri, Nov 30, 2018 at 4:53 PM steeple ian  wrote:

> Hello Massimiliano,
> ,
>
> Thank you for you feedback. I have a spare Raspberry Pi 3 which I can
> utilise. I will set it up this evening with the version of Linux you are
> using, If you can guide me from that, I will be very pleased.
>
> Regards,
> Ian
>
> On Fri, Nov 30, 2018 at 2:20 PM Massimiliano Neri 
> wrote:
>
>> Hello Steep...
>>
>> I am testing myself to make it work, and I managed to do it even if I have 
>> to refine the iptables to make the installation cleaner.
>> The bridge of this weather station does not have a built-in webserver, so if 
>> you do a port scanner I would not find any available port anymore you have 
>> to connect it via wifi to the router and it does not have an ethernet 
>> connector.
>> However, no fear, it is more difficult to configure it with weewx than other 
>> weather stations, but it works well once connected with this software.
>> The IPTABLES rules listed by Tanwe are important to make it work, the port 
>> 80 you see in the rule is an interception that directs on another port that 
>> you choose and that is available to do the iptables.
>> I personally am configuring the weewx software with the interceptor driver, 
>> directly on an Orange Pi Zero for $ 10.
>> Orange Pi Zero has Ubuntu's Bionic image installed, and I've set up the 
>> small mini PC to serve as a HotSpot, and then connect the WH-2650 bridge 
>> directly to the Orange.
>> So in my case the bridge does not connect to the home router but to the mini 
>> PC where weewx also runs, and only the Orange Pi is connected to the router 
>> via ethernet cable.
>> I created thanks to Tanwe's information on the routes of the iptables and 
>> the station works, but as I mentioned you are to refine, in fact if I use 
>> the app of the smartphone that is connected to the Orange via wifi, the app 
>> itself can not find the bridge device. Of course, the station was connected 
>> to the hotspot before I made the rules.
>> Apart from this detail, everything seems to work, so if you need 
>> information, I can tell you where you came from the configuration.
>>
>>
>> Il giorno venerdì 23 novembre 2018 00:11:49 UTC+1, Massimiliano Neri ha
>> scritto:
>>>
>>> Hi, I just bought a WaldBeck Halley WH-2650, basically a clone of the
>>> WH-2650 Fine Offset, can you tell me how to configure weewx.conf to
>>> intercept its data string?
>>>
>>> I thank you in advance.
>>>
>> --
>> 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] Re: Belchertown skin for weewx now available!

2018-11-30 Thread Jonis Maurin Ceará
Yes, all done with weewx stoped. But I find a way: delete rows with null
values (those 2) and don't run rebuild (the DELETE was done AFTER rebuild
command), so this way it's working.but I'm not sure why rebuild is
creating these 2 rows with null values :(


Em sex, 30 de nov de 2018 às 14:52, Pat  escreveu:

> Thanks for the clarification Tom! I knew about NULL and "", but had
> assumed that your wee_database checked for NULL, and not null string. Makes
> sense now.
>
> Jonis - did you stop weewx in between making the changes? Maybe that could
> be causing the data to persist? Not really sure on this one.
>
> On Friday, November 30, 2018 at 10:14:12 AM UTC-5, Jonis Maurin Ceará
> wrote:
>>
>> For some reason, there is 2 records with null valuesbut even deleting
>> these, after running --rebuild-daily, both records still there (they are
>> re-create!)
>> I've tried to delete this both records from table 'archive' (using
>> dateTime as key), but still there after running rebuild!
>>
>> Em sex, 30 de nov de 2018 às 12:50, Thomas Keffer 
>> escreveu:
>>
>> Pat, just to clarify: there is a difference between a NULL value and a
>> null string. The former is equivalent to Python's None value, and are to be
>> expected throughout the databases. The latter is a string of zero length
>> and should not normally appear in the databases. The utility wee_database
>> checks only for zero-length strings.
>>
>> -tk
>>
>> On Fri, Nov 30, 2018 at 6:46 AM Pat  wrote:
>>
>> Interesting. That command checks your archive table. So that seems fine.
>>
>> The error is coming from the archive_day_outTemp table and specifically
>> the MAX column.
>>
>> Any chance your archive_day_outTemp table has NULL values in MAX?
>>
>> You can try this MySQL query to see: SELECT
>> 
>> * FROM `archive_day_outTemp` WHERE max
>> 
>> IS
>> 
>> NULL;
>>
>> If it finds one, you can rebuild the daily summaries. Shouldn't harm
>> anything, but have a backup first of course.
>>
>> wee_database --drop-daily
>>
>> wee_database --rebuild-daily
>>
>>
>>
>>
>>
>> On Friday, November 30, 2018 at 9:26:29 AM UTC-5, Jonis Maurin Ceará
>> wrote:
>>
>> Actualy, no NULL strings are found :/
>>
>> root@SkyWeather:/etc/weewx/skins# wee_database --check-strings
>> Using configuration file /etc/weewx/weewx.conf
>> Using database binding 'wx_binding', which is bound to database
>> 'archive_mysql'
>> Preparing Null String Check, this may take awhile...
>> Checking record: 52456; Timestamp: 2018-11-30 12:20:00 -02 (1543587600)
>> No null strings found.
>> Completed Null String Check in 37.20 seconds.
>>
>> Em sex, 30 de nov de 2018 às 12:21, Pat  escreveu:
>>
>> That error makes m
>>
>> ...
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/GSrKZEiPqsc/unsubscribe.
> To unsubscribe from this group and all its topics, 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] Re: Fine Offset WH-2650 and weewx

2018-11-30 Thread steeple ian
Hello Tanwe,

I am looking into my router but I suspect that the isolation mode is
disabled by default anyway.

Regards,
Ian

On Fri, Nov 30, 2018 at 2:07 PM Tanwe Hyalin  wrote:

> I haven't used the sniffer mode with the WH2650 so take this with a grain
> of salt, our bridge is exclusively wifi as such if your router has an
> option called "Isolation mode" enabled it could hide the device from the
> interceptor so the first thing I would try would be that, disabling that
> feature, if that does not work, honestly I don't think there's much you can
> do besides getting a device to intercept the bridge, either a small router
> or rasperry pi/orange pi zero just for this purpose. Again the ideal
> situation would be for a driver that could mimick the WS View app and grab
> the weather data directly from the station, that why I shared the source
> code for the app. While I'm slowly analysing the source, I doubt I will be
> able to create a driver capable of doing that (not enough time or technical
> skills with network comunication protocols).
>
> sexta-feira, 30 de Novembro de 2018 às 10:44:28 UTC, steep...@gmail.com
> escreveu:
>>
>> Hello Tanwe and Massimiliano,
>>
>> I have been following this thread with interest. I too have the WaldBeck
>> Halley WH-2650 which I have recently purchase as a backup for my main
>> station.
>>
>> I have connected it to Weather Underground, Weather Cloud and Met Office
>> with no problems so I know that data streams are being generated and
>> reaching their target. However when I do a network scan with TCPflow, it
>> detects no data flow or any open ports. I am using the interceptor.py and
>> it set up to sniff in observer mode and no interception is happening. I
>> have followed all the suggestions made apart from IP Tables as I cannot
>> install an appropriate firmware on my router to enable this. I am at a loss
>> to see where to go next. Do you have any more ideas that I could pursue?
>>
>> Regards
>> Ian
>>
>> On Friday, November 30, 2018 at 12:41:33 AM UTC, Tanwe Hyalin wrote:
>>>
>>> I changed line 1048 in the interceptor.py file from "if software_type ==
>>> 'WH2600GEN_V2.2.5':" to "if software_type == 'WH2600GEN_V2.2.5' or
>>> software_type == 'WH2650A_V1.2.1':" so it could identify our firmware.
>>>
>>> quinta-feira, 29 de Novembro de 2018 às 16:18:52 UTC, Massimiliano Neri
>>> escreveu:


 Can you tell me the exact line on the code of the interceptor.py? File.
 in fact, after the driver version change the number of lines no longer
 corresponds. I installed the latest version of the driver. is it possible
 that matthewwall fixes the file directly?

 Il giorno venerdì 23 novembre 2018 00:11:49 UTC+1, Massimiliano Neri ha
 scritto:
>
> Hi, I just bought a WaldBeck Halley WH-2650, basically a clone of the
> WH-2650 Fine Offset, can you tell me how to configure weewx.conf to
> intercept its data string?
>
> I thank you in advance.
>
 --
> 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] Re: Fine Offset WH-2650 and weewx

2018-11-30 Thread steeple ian
Hello Massimiliano,
,

Thank you for you feedback. I have a spare Raspberry Pi 3 which I can
utilise. I will set it up this evening with the version of Linux you are
using, If you can guide me from that, I will be very pleased.

Regards,
Ian

On Fri, Nov 30, 2018 at 2:20 PM Massimiliano Neri 
wrote:

> Hello Steep...
>
> I am testing myself to make it work, and I managed to do it even if I have to 
> refine the iptables to make the installation cleaner.
> The bridge of this weather station does not have a built-in webserver, so if 
> you do a port scanner I would not find any available port anymore you have to 
> connect it via wifi to the router and it does not have an ethernet connector.
> However, no fear, it is more difficult to configure it with weewx than other 
> weather stations, but it works well once connected with this software.
> The IPTABLES rules listed by Tanwe are important to make it work, the port 80 
> you see in the rule is an interception that directs on another port that you 
> choose and that is available to do the iptables.
> I personally am configuring the weewx software with the interceptor driver, 
> directly on an Orange Pi Zero for $ 10.
> Orange Pi Zero has Ubuntu's Bionic image installed, and I've set up the small 
> mini PC to serve as a HotSpot, and then connect the WH-2650 bridge directly 
> to the Orange.
> So in my case the bridge does not connect to the home router but to the mini 
> PC where weewx also runs, and only the Orange Pi is connected to the router 
> via ethernet cable.
> I created thanks to Tanwe's information on the routes of the iptables and the 
> station works, but as I mentioned you are to refine, in fact if I use the app 
> of the smartphone that is connected to the Orange via wifi, the app itself 
> can not find the bridge device. Of course, the station was connected to the 
> hotspot before I made the rules.
> Apart from this detail, everything seems to work, so if you need information, 
> I can tell you where you came from the configuration.
>
>
> Il giorno venerdì 23 novembre 2018 00:11:49 UTC+1, Massimiliano Neri ha
> scritto:
>>
>> Hi, I just bought a WaldBeck Halley WH-2650, basically a clone of the
>> WH-2650 Fine Offset, can you tell me how to configure weewx.conf to
>> intercept its data string?
>>
>> I thank you in advance.
>>
> --
> 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] Re: Belchertown skin for weewx now available!

2018-11-30 Thread Pat
Thanks for the clarification Tom! I knew about NULL and "", but had assumed 
that your wee_database checked for NULL, and not null string. Makes sense 
now. 

Jonis - did you stop weewx in between making the changes? Maybe that could 
be causing the data to persist? Not really sure on this one. 

On Friday, November 30, 2018 at 10:14:12 AM UTC-5, Jonis Maurin Ceará wrote:
>
> For some reason, there is 2 records with null valuesbut even deleting 
> these, after running --rebuild-daily, both records still there (they are 
> re-create!)
> I've tried to delete this both records from table 'archive' (using 
> dateTime as key), but still there after running rebuild!
>
> Em sex, 30 de nov de 2018 às 12:50, Thomas Keffer  > escreveu:
>
> Pat, just to clarify: there is a difference between a NULL value and a 
> null string. The former is equivalent to Python's None value, and are to be 
> expected throughout the databases. The latter is a string of zero length 
> and should not normally appear in the databases. The utility wee_database 
> checks only for zero-length strings. 
>
> -tk
>
> On Fri, Nov 30, 2018 at 6:46 AM Pat > 
> wrote:
>
> Interesting. That command checks your archive table. So that seems fine. 
>
> The error is coming from the archive_day_outTemp table and specifically 
> the MAX column.
>
> Any chance your archive_day_outTemp table has NULL values in MAX?
>
> You can try this MySQL query to see: SELECT 
> 
>  
> * FROM `archive_day_outTemp` WHERE max 
> 
>  
> IS 
> 
>  
> NULL;
>
> If it finds one, you can rebuild the daily summaries. Shouldn't harm 
> anything, but have a backup first of course. 
>
> wee_database --drop-daily 
>
> wee_database --rebuild-daily
>
>
>
>
>
> On Friday, November 30, 2018 at 9:26:29 AM UTC-5, Jonis Maurin Ceará wrote:
>
> Actualy, no NULL strings are found :/
>
> root@SkyWeather:/etc/weewx/skins# wee_database --check-strings
> Using configuration file /etc/weewx/weewx.conf
> Using database binding 'wx_binding', which is bound to database 
> 'archive_mysql'
> Preparing Null String Check, this may take awhile...
> Checking record: 52456; Timestamp: 2018-11-30 12:20:00 -02 (1543587600)
> No null strings found.
> Completed Null String Check in 37.20 seconds.
>
> Em sex, 30 de nov de 2018 às 12:21, Pat  escreveu:
>
> That error makes 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.


[weewx-user] Re: Extra temperature sensor / New weather station?

2018-11-30 Thread vince
On Thursday, November 29, 2018 at 3:29:37 PM UTC-8, pon...@gmail.com wrote:
>
> I just found this 
> 
>  on 
> eBay.
>
> Any idea what I'd need to do to get the data with WeeWX?
>
>
There are lots of posts about people battling Acurite hardware.   If you 
pick a random piece of hardware, things get tougher to figure out.  
Sometimes just buying previously-integrated hardware is worth the extra 
dollars/pounds/euros.


I have a wi-fi extender in the kitchen (router is in my study at the other 
> end of the house). The issue is less distance than height.
>
>
It's a network thing.  If you had solid wifi between the physical 
locations, the options get easier.

-- 
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: Belchertown skin for weewx now available!

2018-11-30 Thread Jonis Maurin Ceará
For some reason, there is 2 records with null valuesbut even deleting
these, after running --rebuild-daily, both records still there (they are
re-create!)
I've tried to delete this both records from table 'archive' (using dateTime
as key), but still there after running rebuild!

Em sex, 30 de nov de 2018 às 12:50, Thomas Keffer 
escreveu:

> Pat, just to clarify: there is a difference between a NULL value and a
> null string. The former is equivalent to Python's None value, and are to be
> expected throughout the databases. The latter is a string of zero length
> and should not normally appear in the databases. The utility wee_database
> checks only for zero-length strings.
>
> -tk
>
> On Fri, Nov 30, 2018 at 6:46 AM Pat  wrote:
>
>> Interesting. That command checks your archive table. So that seems fine.
>>
>> The error is coming from the archive_day_outTemp table and specifically
>> the MAX column.
>>
>> Any chance your archive_day_outTemp table has NULL values in MAX?
>>
>> You can try this MySQL query to see: SELECT
>> 
>> * FROM `archive_day_outTemp` WHERE max
>> 
>> IS
>> 
>> NULL;
>>
>> If it finds one, you can rebuild the daily summaries. Shouldn't harm
>> anything, but have a backup first of course.
>>
>> wee_database --drop-daily
>>
>> wee_database --rebuild-daily
>>
>>
>>
>>
>>
>> On Friday, November 30, 2018 at 9:26:29 AM UTC-5, Jonis Maurin Ceará
>> wrote:
>>>
>>> Actualy, no NULL strings are found :/
>>>
>>> root@SkyWeather:/etc/weewx/skins# wee_database --check-strings
>>> Using configuration file /etc/weewx/weewx.conf
>>> Using database binding 'wx_binding', which is bound to database
>>> 'archive_mysql'
>>> Preparing Null String Check, this may take awhile...
>>> Checking record: 52456; Timestamp: 2018-11-30 12:20:00 -02 (1543587600)
>>> No null strings found.
>>> Completed Null String Check in 37.20 seconds.
>>>
>>> Em sex, 30 de nov de 2018 às 12:21, Pat  escreveu:
>>>
>>> That error makes me think your database has a NULL value for the
>>> temperature observation somewhere. Thankfully weewx has a utility that can
>>> try to help.
>>>
>>> Make a backup of your database
>>>
>>> Run sudo wee_database --check-strings
>>>
>>> Then if it found some, run sudo wee_database --fix-strings
>>>
>>> Then rebuild the daily dummaries with sudo wee_database --rebuild-daily
>>>
>>> Once completed, restart weewx and see if the error goes away.
>>>
>>>
>>> On Friday, November 30, 2018 at 9:17:23 AM UTC-5, Jonis Maurin Ceará
>>> wrote:
>>>
>>> Pat, I'm not sure if I'm doing something wrong or not.but I can't
>>> see anything in hook places.
>>> I've updated skin package and then create a file called
>>> 'index_hook_after_forecast.inc' inside 'skins/Belchertown' folder
>>> (/etc/weewx).
>>>
>>> But after first report/page gerenatio (after restart weewx), I'm getting
>>> this error (and report page doesn't contain my text/html from hook file):
>>>
>>> Nov 30 12:11:49 SkyWeather weewx[8251]: cheetahgenerator: Generated 4
>>> files for report Highcharts_Belchertown in 93.32 seconds
>>> Nov 30 12:11:49 SkyWeather weewx[8251]: copygenerator: copied 0 files to
>>> /var/www/html/weewx
>>> Nov 30 12:11:49 SkyWeather weewx[8251]: Belchertown Extension: version
>>> 0.8rc3
>>> Nov 30 12:11:49 SkyWeather weewx[8251]: reportengine: Caught
>>> unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
>>> Nov 30 12:11:49 SkyWeather weewx[8251]:   a float is required
>>> Nov 30 12:11:49 SkyWeather weewx[8251]:   Traceback (most
>>> recent call last):
>>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>>> Nov 30 12:11:49 SkyWeather weewx[8251]:   obj.start()
>>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>>> Nov 30 12:11:49 SkyWeather weewx[8251]:   self.run()
>>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
>>> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen =
>>> self.generate(gen_dict[section_name], self.gen_ts)
>>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
>>> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen +=
>>> self.generate(section[subsection], gen_ts)
>>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>>> "/usr/share/weewx/weewx/c
>>>
>>> ...
>>
>> --
>> You received this 

Re: [weewx-user] Re: Belchertown skin for weewx now available!

2018-11-30 Thread Thomas Keffer
Pat, just to clarify: there is a difference between a NULL value and a null
string. The former is equivalent to Python's None value, and are to be
expected throughout the databases. The latter is a string of zero length
and should not normally appear in the databases. The utility wee_database
checks only for zero-length strings.

-tk

On Fri, Nov 30, 2018 at 6:46 AM Pat  wrote:

> Interesting. That command checks your archive table. So that seems fine.
>
> The error is coming from the archive_day_outTemp table and specifically
> the MAX column.
>
> Any chance your archive_day_outTemp table has NULL values in MAX?
>
> You can try this MySQL query to see: SELECT
> 
> * FROM `archive_day_outTemp` WHERE max
> 
> IS
> 
> NULL;
>
> If it finds one, you can rebuild the daily summaries. Shouldn't harm
> anything, but have a backup first of course.
>
> wee_database --drop-daily
>
> wee_database --rebuild-daily
>
>
>
>
>
> On Friday, November 30, 2018 at 9:26:29 AM UTC-5, Jonis Maurin Ceará wrote:
>>
>> Actualy, no NULL strings are found :/
>>
>> root@SkyWeather:/etc/weewx/skins# wee_database --check-strings
>> Using configuration file /etc/weewx/weewx.conf
>> Using database binding 'wx_binding', which is bound to database
>> 'archive_mysql'
>> Preparing Null String Check, this may take awhile...
>> Checking record: 52456; Timestamp: 2018-11-30 12:20:00 -02 (1543587600)
>> No null strings found.
>> Completed Null String Check in 37.20 seconds.
>>
>> Em sex, 30 de nov de 2018 às 12:21, Pat  escreveu:
>>
>> That error makes me think your database has a NULL value for the
>> temperature observation somewhere. Thankfully weewx has a utility that can
>> try to help.
>>
>> Make a backup of your database
>>
>> Run sudo wee_database --check-strings
>>
>> Then if it found some, run sudo wee_database --fix-strings
>>
>> Then rebuild the daily dummaries with sudo wee_database --rebuild-daily
>>
>> Once completed, restart weewx and see if the error goes away.
>>
>>
>> On Friday, November 30, 2018 at 9:17:23 AM UTC-5, Jonis Maurin Ceará
>> wrote:
>>
>> Pat, I'm not sure if I'm doing something wrong or not.but I can't see
>> anything in hook places.
>> I've updated skin package and then create a file called
>> 'index_hook_after_forecast.inc' inside 'skins/Belchertown' folder
>> (/etc/weewx).
>>
>> But after first report/page gerenatio (after restart weewx), I'm getting
>> this error (and report page doesn't contain my text/html from hook file):
>>
>> Nov 30 12:11:49 SkyWeather weewx[8251]: cheetahgenerator: Generated 4
>> files for report Highcharts_Belchertown in 93.32 seconds
>> Nov 30 12:11:49 SkyWeather weewx[8251]: copygenerator: copied 0 files to
>> /var/www/html/weewx
>> Nov 30 12:11:49 SkyWeather weewx[8251]: Belchertown Extension: version
>> 0.8rc3
>> Nov 30 12:11:49 SkyWeather weewx[8251]: reportengine: Caught
>> unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   a float is required
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   Traceback (most
>> recent call last):
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   obj.start()
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   self.run()
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen =
>> self.generate(gen_dict[section_name], self.gen_ts)
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen +=
>> self.generate(section[subsection], gen_ts)
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/c
>>
>> ...
>
> --
> 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 

Re: [weewx-user] Re: Belchertown skin for weewx now available!

2018-11-30 Thread Pat
Interesting. That command checks your archive table. So that seems fine. 

The error is coming from the archive_day_outTemp table and specifically the 
MAX column.

Any chance your archive_day_outTemp table has NULL values in MAX?

You can try this MySQL query to see: SELECT 

 
* FROM `archive_day_outTemp` WHERE max 

 
IS 

 
NULL;

If it finds one, you can rebuild the daily summaries. Shouldn't harm 
anything, but have a backup first of course. 

wee_database --drop-daily 

wee_database --rebuild-daily





On Friday, November 30, 2018 at 9:26:29 AM UTC-5, Jonis Maurin Ceará wrote:
>
> Actualy, no NULL strings are found :/
>
> root@SkyWeather:/etc/weewx/skins# wee_database --check-strings
> Using configuration file /etc/weewx/weewx.conf
> Using database binding 'wx_binding', which is bound to database 
> 'archive_mysql'
> Preparing Null String Check, this may take awhile...
> Checking record: 52456; Timestamp: 2018-11-30 12:20:00 -02 (1543587600)
> No null strings found.
> Completed Null String Check in 37.20 seconds.
>
> Em sex, 30 de nov de 2018 às 12:21, Pat  > escreveu:
>
> That error makes me think your database has a NULL value for the 
> temperature observation somewhere. Thankfully weewx has a utility that can 
> try to help. 
>
> Make a backup of your database
>
> Run sudo wee_database --check-strings
>
> Then if it found some, run sudo wee_database --fix-strings
>
> Then rebuild the daily dummaries with sudo wee_database --rebuild-daily
>
> Once completed, restart weewx and see if the error goes away. 
>
>
> On Friday, November 30, 2018 at 9:17:23 AM UTC-5, Jonis Maurin Ceará wrote:
>
> Pat, I'm not sure if I'm doing something wrong or not.but I can't see 
> anything in hook places.
> I've updated skin package and then create a file called 
> 'index_hook_after_forecast.inc' inside 'skins/Belchertown' folder 
> (/etc/weewx).
>
> But after first report/page gerenatio (after restart weewx), I'm getting 
> this error (and report page doesn't contain my text/html from hook file):
>
> Nov 30 12:11:49 SkyWeather weewx[8251]: cheetahgenerator: Generated 4 
> files for report Highcharts_Belchertown in 93.32 seconds
> Nov 30 12:11:49 SkyWeather weewx[8251]: copygenerator: copied 0 files to 
> /var/www/html/weewx
> Nov 30 12:11:49 SkyWeather weewx[8251]: Belchertown Extension: version 
> 0.8rc3
> Nov 30 12:11:49 SkyWeather weewx[8251]: reportengine: Caught unrecoverable 
> exception in generator weewx.cheetahgenerator.CheetahGenerator
> Nov 30 12:11:49 SkyWeather weewx[8251]:   a float is required
> Nov 30 12:11:49 SkyWeather weewx[8251]:   Traceback (most 
> recent call last):
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
> Nov 30 12:11:49 SkyWeather weewx[8251]:   obj.start()
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
> Nov 30 12:11:49 SkyWeather weewx[8251]:   self.run()
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen = 
> self.generate(gen_dict[section_name], self.gen_ts)
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen += 
> self.generate(section[subsection], gen_ts)
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/c
>
> ...

-- 
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: Belchertown skin for weewx now available!

2018-11-30 Thread Jonis Maurin Ceará
Actualy, no NULL strings are found :/

root@SkyWeather:/etc/weewx/skins# wee_database --check-strings
Using configuration file /etc/weewx/weewx.conf
Using database binding 'wx_binding', which is bound to database
'archive_mysql'
Preparing Null String Check, this may take awhile...
Checking record: 52456; Timestamp: 2018-11-30 12:20:00 -02 (1543587600)
No null strings found.
Completed Null String Check in 37.20 seconds.

Em sex, 30 de nov de 2018 às 12:21, Pat  escreveu:

> That error makes me think your database has a NULL value for the
> temperature observation somewhere. Thankfully weewx has a utility that can
> try to help.
>
> Make a backup of your database
>
> Run sudo wee_database --check-strings
>
> Then if it found some, run sudo wee_database --fix-strings
>
> Then rebuild the daily dummaries with sudo wee_database --rebuild-daily
>
> Once completed, restart weewx and see if the error goes away.
>
>
> On Friday, November 30, 2018 at 9:17:23 AM UTC-5, Jonis Maurin Ceará wrote:
>>
>> Pat, I'm not sure if I'm doing something wrong or not.but I can't see
>> anything in hook places.
>> I've updated skin package and then create a file called
>> 'index_hook_after_forecast.inc' inside 'skins/Belchertown' folder
>> (/etc/weewx).
>>
>> But after first report/page gerenatio (after restart weewx), I'm getting
>> this error (and report page doesn't contain my text/html from hook file):
>>
>> Nov 30 12:11:49 SkyWeather weewx[8251]: cheetahgenerator: Generated 4
>> files for report Highcharts_Belchertown in 93.32 seconds
>> Nov 30 12:11:49 SkyWeather weewx[8251]: copygenerator: copied 0 files to
>> /var/www/html/weewx
>> Nov 30 12:11:49 SkyWeather weewx[8251]: Belchertown Extension: version
>> 0.8rc3
>> Nov 30 12:11:49 SkyWeather weewx[8251]: reportengine: Caught
>> unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   a float is required
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   Traceback (most
>> recent call last):
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   obj.start()
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   self.run()
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen =
>> self.generate(gen_dict[section_name], self.gen_ts)
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen +=
>> self.generate(section[subsection], gen_ts)
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen +=
>> self.generate(section[subsection], gen_ts)
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   default_binding)
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   searchList +=
>> obj.get_extension_list(timespan, db_lookup)
>> Nov 30 12:11:49 SkyWeather weewx[8251]: File
>> "/usr/share/weewx/user/belchertown.py", line 216, in get_extension_list
>> Nov 30 12:11:49 SkyWeather weewx[8251]: 
>> year_outTemp_min_range_max = round(
>> self.generator.converter.convert(year_outTemp_min_range_max_tuple)[0],
>> outTemp_round )
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   TypeError: a float
>> is required
>> Nov 30 12:11:49 SkyWeather weewx[8251]:   Generator terminated
>> Nov 30 12:11:49 SkyWeather weewx[8251]: copygenerator: copied 22 files to
>> /var/www/html/weewx
>>
>>
>> Em sex, 30 de nov de 2018 às 00:12, mashDrone 
>> escreveu:
>>
>>> Looks great...
>>>
>>> On Thursday, November 29, 2018 at 12:11:41 PM UTC-7, Pat wrote:

 Jonis, I'm still working on 0.8 - but I've just put together the
 ability to have 4 custom "hooks" to show custom HTML content on the front
 page. I think you'll like this - check the screenshot.

 You can try this change out now if you upgrade to 0.8rc3 from GitHub
 (have a backup of your current setup of weewx, then copy all files in the
 GitHub bin/user and skins/ folders to your weewx, then restart weewx. if
 you run into problem, restore your backup) Or wait for 0.8 to come out and
 upgrade then.



 

Re: [weewx-user] Re: Belchertown skin for weewx now available!

2018-11-30 Thread Pat
That error makes me think your database has a NULL value for the 
temperature observation somewhere. Thankfully weewx has a utility that can 
try to help. 

Make a backup of your database

Run sudo wee_database --check-strings

Then if it found some, run sudo wee_database --fix-strings

Then rebuild the daily dummaries with sudo wee_database --rebuild-daily

Once completed, restart weewx and see if the error goes away. 


On Friday, November 30, 2018 at 9:17:23 AM UTC-5, Jonis Maurin Ceará wrote:
>
> Pat, I'm not sure if I'm doing something wrong or not.but I can't see 
> anything in hook places.
> I've updated skin package and then create a file called 
> 'index_hook_after_forecast.inc' inside 'skins/Belchertown' folder 
> (/etc/weewx).
>
> But after first report/page gerenatio (after restart weewx), I'm getting 
> this error (and report page doesn't contain my text/html from hook file):
>
> Nov 30 12:11:49 SkyWeather weewx[8251]: cheetahgenerator: Generated 4 
> files for report Highcharts_Belchertown in 93.32 seconds
> Nov 30 12:11:49 SkyWeather weewx[8251]: copygenerator: copied 0 files to 
> /var/www/html/weewx
> Nov 30 12:11:49 SkyWeather weewx[8251]: Belchertown Extension: version 
> 0.8rc3
> Nov 30 12:11:49 SkyWeather weewx[8251]: reportengine: Caught unrecoverable 
> exception in generator weewx.cheetahgenerator.CheetahGenerator
> Nov 30 12:11:49 SkyWeather weewx[8251]:   a float is required
> Nov 30 12:11:49 SkyWeather weewx[8251]:   Traceback (most 
> recent call last):
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
> Nov 30 12:11:49 SkyWeather weewx[8251]:   obj.start()
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
> Nov 30 12:11:49 SkyWeather weewx[8251]:   self.run()
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen = 
> self.generate(gen_dict[section_name], self.gen_ts)
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen += 
> self.generate(section[subsection], gen_ts)
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
> Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen += 
> self.generate(section[subsection], gen_ts)
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
> Nov 30 12:11:49 SkyWeather weewx[8251]:   default_binding)
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList
> Nov 30 12:11:49 SkyWeather weewx[8251]:   searchList += 
> obj.get_extension_list(timespan, db_lookup)
> Nov 30 12:11:49 SkyWeather weewx[8251]: File 
> "/usr/share/weewx/user/belchertown.py", line 216, in get_extension_list
> Nov 30 12:11:49 SkyWeather weewx[8251]:   
> year_outTemp_min_range_max = round( 
> self.generator.converter.convert(year_outTemp_min_range_max_tuple)[0], 
> outTemp_round )
> Nov 30 12:11:49 SkyWeather weewx[8251]:   TypeError: a float 
> is required
> Nov 30 12:11:49 SkyWeather weewx[8251]:   Generator terminated
> Nov 30 12:11:49 SkyWeather weewx[8251]: copygenerator: copied 22 files to 
> /var/www/html/weewx
>
>
> Em sex, 30 de nov de 2018 às 00:12, mashDrone  > escreveu:
>
>> Looks great...
>>
>> On Thursday, November 29, 2018 at 12:11:41 PM UTC-7, Pat wrote:
>>>
>>> Jonis, I'm still working on 0.8 - but I've just put together the ability 
>>> to have 4 custom "hooks" to show custom HTML content on the front page. I 
>>> think you'll like this - check the screenshot. 
>>>
>>> You can try this change out now if you upgrade to 0.8rc3 from GitHub 
>>> (have a backup of your current setup of weewx, then copy all files in the 
>>> GitHub bin/user and skins/ folders to your weewx, then restart weewx. if 
>>> you run into problem, restore your backup) Or wait for 0.8 to come out and 
>>> upgrade then.
>>>
>>>
>>>
>>> On Tuesday, November 13, 2018 at 9:38:48 AM UTC-5, Jonis Maurin Ceará 
>>> wrote:
>>>
>>> For me, any place is good Pat. I don't have preference ;)
>>>
>>>
>>> Em ter, 13 de nov de 2018 às 08:14, David Hindley  
>>> escreveu:
>>>
>>> Colin - where are these instructions please?
>>>
>>> Thanks.
>>>
>>> On Mon, 12 Nov 2018 at 21:10, Colin Larsen  wrote:
>>>
>>> I found your instructions on in
>>>
>>> ...
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group.
>> To 

[weewx-user] Re: Fine Offset WH-2650 and weewx

2018-11-30 Thread Massimiliano Neri


Hello Steep...

I am testing myself to make it work, and I managed to do it even if I have to 
refine the iptables to make the installation cleaner.
The bridge of this weather station does not have a built-in webserver, so if 
you do a port scanner I would not find any available port anymore you have to 
connect it via wifi to the router and it does not have an ethernet connector.
However, no fear, it is more difficult to configure it with weewx than other 
weather stations, but it works well once connected with this software.
The IPTABLES rules listed by Tanwe are important to make it work, the port 80 
you see in the rule is an interception that directs on another port that you 
choose and that is available to do the iptables.
I personally am configuring the weewx software with the interceptor driver, 
directly on an Orange Pi Zero for $ 10.
Orange Pi Zero has Ubuntu's Bionic image installed, and I've set up the small 
mini PC to serve as a HotSpot, and then connect the WH-2650 bridge directly to 
the Orange.
So in my case the bridge does not connect to the home router but to the mini PC 
where weewx also runs, and only the Orange Pi is connected to the router via 
ethernet cable.
I created thanks to Tanwe's information on the routes of the iptables and the 
station works, but as I mentioned you are to refine, in fact if I use the app 
of the smartphone that is connected to the Orange via wifi, the app itself can 
not find the bridge device. Of course, the station was connected to the hotspot 
before I made the rules.
Apart from this detail, everything seems to work, so if you need information, I 
can tell you where you came from the configuration.


Il giorno venerdì 23 novembre 2018 00:11:49 UTC+1, Massimiliano Neri ha 
scritto:
>
> Hi, I just bought a WaldBeck Halley WH-2650, basically a clone of the 
> WH-2650 Fine Offset, can you tell me how to configure weewx.conf to 
> intercept its data string?
>
> I thank you in advance.
>

-- 
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: Belchertown skin for weewx now available!

2018-11-30 Thread Jonis Maurin Ceará
Pat, I'm not sure if I'm doing something wrong or not.but I can't see
anything in hook places.
I've updated skin package and then create a file called
'index_hook_after_forecast.inc' inside 'skins/Belchertown' folder
(/etc/weewx).

But after first report/page gerenatio (after restart weewx), I'm getting
this error (and report page doesn't contain my text/html from hook file):

Nov 30 12:11:49 SkyWeather weewx[8251]: cheetahgenerator: Generated 4 files
for report Highcharts_Belchertown in 93.32 seconds
Nov 30 12:11:49 SkyWeather weewx[8251]: copygenerator: copied 0 files to
/var/www/html/weewx
Nov 30 12:11:49 SkyWeather weewx[8251]: Belchertown Extension: version
0.8rc3
Nov 30 12:11:49 SkyWeather weewx[8251]: reportengine: Caught unrecoverable
exception in generator weewx.cheetahgenerator.CheetahGenerator
Nov 30 12:11:49 SkyWeather weewx[8251]:   a float is required
Nov 30 12:11:49 SkyWeather weewx[8251]:   Traceback (most
recent call last):
Nov 30 12:11:49 SkyWeather weewx[8251]: File
"/usr/share/weewx/weewx/reportengine.py", line 239, in run
Nov 30 12:11:49 SkyWeather weewx[8251]:   obj.start()
Nov 30 12:11:49 SkyWeather weewx[8251]: File
"/usr/share/weewx/weewx/reportengine.py", line 273, in start
Nov 30 12:11:49 SkyWeather weewx[8251]:   self.run()
Nov 30 12:11:49 SkyWeather weewx[8251]: File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen =
self.generate(gen_dict[section_name], self.gen_ts)
Nov 30 12:11:49 SkyWeather weewx[8251]: File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen +=
self.generate(section[subsection], gen_ts)
Nov 30 12:11:49 SkyWeather weewx[8251]: File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Nov 30 12:11:49 SkyWeather weewx[8251]:   ngen +=
self.generate(section[subsection], gen_ts)
Nov 30 12:11:49 SkyWeather weewx[8251]: File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
Nov 30 12:11:49 SkyWeather weewx[8251]:   default_binding)
Nov 30 12:11:49 SkyWeather weewx[8251]: File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList
Nov 30 12:11:49 SkyWeather weewx[8251]:   searchList +=
obj.get_extension_list(timespan, db_lookup)
Nov 30 12:11:49 SkyWeather weewx[8251]: File
"/usr/share/weewx/user/belchertown.py", line 216, in get_extension_list
Nov 30 12:11:49 SkyWeather weewx[8251]: 
year_outTemp_min_range_max = round(
self.generator.converter.convert(year_outTemp_min_range_max_tuple)[0],
outTemp_round )
Nov 30 12:11:49 SkyWeather weewx[8251]:   TypeError: a float is
required
Nov 30 12:11:49 SkyWeather weewx[8251]:   Generator terminated
Nov 30 12:11:49 SkyWeather weewx[8251]: copygenerator: copied 22 files to
/var/www/html/weewx


Em sex, 30 de nov de 2018 às 00:12, mashDrone  escreveu:

> Looks great...
>
> On Thursday, November 29, 2018 at 12:11:41 PM UTC-7, Pat wrote:
>>
>> Jonis, I'm still working on 0.8 - but I've just put together the ability
>> to have 4 custom "hooks" to show custom HTML content on the front page. I
>> think you'll like this - check the screenshot.
>>
>> You can try this change out now if you upgrade to 0.8rc3 from GitHub
>> (have a backup of your current setup of weewx, then copy all files in the
>> GitHub bin/user and skins/ folders to your weewx, then restart weewx. if
>> you run into problem, restore your backup) Or wait for 0.8 to come out and
>> upgrade then.
>>
>>
>>
>> On Tuesday, November 13, 2018 at 9:38:48 AM UTC-5, Jonis Maurin Ceará
>> wrote:
>>
>> For me, any place is good Pat. I don't have preference ;)
>>
>>
>> Em ter, 13 de nov de 2018 às 08:14, David Hindley 
>> escreveu:
>>
>> Colin - where are these instructions please?
>>
>> Thanks.
>>
>> On Mon, 12 Nov 2018 at 21:10, Colin Larsen  wrote:
>>
>> I found your instructions on in
>>
>> ...
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/GSrKZEiPqsc/unsubscribe.
> To unsubscribe from this group and all its topics, 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: Fine Offset WH-2650 and weewx

2018-11-30 Thread Tanwe Hyalin
I haven't used the sniffer mode with the WH2650 so take this with a grain 
of salt, our bridge is exclusively wifi as such if your router has an 
option called "Isolation mode" enabled it could hide the device from the 
interceptor so the first thing I would try would be that, disabling that 
feature, if that does not work, honestly I don't think there's much you can 
do besides getting a device to intercept the bridge, either a small router  
or rasperry pi/orange pi zero just for this purpose. Again the ideal 
situation would be for a driver that could mimick the WS View app and grab 
the weather data directly from the station, that why I shared the source 
code for the app. While I'm slowly analysing the source, I doubt I will be 
able to create a driver capable of doing that (not enough time or technical 
skills with network comunication protocols). 

sexta-feira, 30 de Novembro de 2018 às 10:44:28 UTC, steep...@gmail.com 
escreveu:
>
> Hello Tanwe and Massimiliano,
>
> I have been following this thread with interest. I too have the WaldBeck 
> Halley WH-2650 which I have recently purchase as a backup for my main 
> station.
>
> I have connected it to Weather Underground, Weather Cloud and Met Office 
> with no problems so I know that data streams are being generated and 
> reaching their target. However when I do a network scan with TCPflow, it 
> detects no data flow or any open ports. I am using the interceptor.py and 
> it set up to sniff in observer mode and no interception is happening. I 
> have followed all the suggestions made apart from IP Tables as I cannot 
> install an appropriate firmware on my router to enable this. I am at a loss 
> to see where to go next. Do you have any more ideas that I could pursue?
>
> Regards
> Ian
>
> On Friday, November 30, 2018 at 12:41:33 AM UTC, Tanwe Hyalin wrote:
>>
>> I changed line 1048 in the interceptor.py file from "if software_type == 
>> 'WH2600GEN_V2.2.5':" to "if software_type == 'WH2600GEN_V2.2.5' or 
>> software_type == 'WH2650A_V1.2.1':" so it could identify our firmware.
>>
>> quinta-feira, 29 de Novembro de 2018 às 16:18:52 UTC, Massimiliano Neri 
>> escreveu:
>>>
>>>
>>> Can you tell me the exact line on the code of the interceptor.py? File. 
>>> in fact, after the driver version change the number of lines no longer 
>>> corresponds. I installed the latest version of the driver. is it possible 
>>> that matthewwall fixes the file directly?
>>>
>>> Il giorno venerdì 23 novembre 2018 00:11:49 UTC+1, Massimiliano Neri ha 
>>> scritto:

 Hi, I just bought a WaldBeck Halley WH-2650, basically a clone of the 
 WH-2650 Fine Offset, can you tell me how to configure weewx.conf to 
 intercept its data string?

 I thank you in advance.

>>>

-- 
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 WH-2650 and weewx

2018-11-30 Thread steepleian
Hello Tanwe and Massimiliano,

I have been following this thread with interest. I too have the WaldBeck 
Halley WH-2650 which I have recently purchase as a backup for my main 
station.

I have connected it to Weather Underground, Weather Cloud and Met Office 
with no problems so I know that data streams are being generated and 
reaching their target. However when I do a network scan with TCPflow, it 
detects no data flow or any open ports. I am using the interceptor.py and 
it set up to sniff in observer mode and no interception is happening. I 
have followed all the suggestions made apart from IP Tables as I cannot 
install an appropriate firmware on my router to enable this. I am at a loss 
to see where to go next. Do you have any more ideas that I could pursue?

Regards
Ian

On Friday, November 30, 2018 at 12:41:33 AM UTC, Tanwe Hyalin wrote:
>
> I changed line 1048 in the interceptor.py file from "if software_type == '
> WH2600GEN_V2.2.5':" to "if software_type == 'WH2600GEN_V2.2.5' or 
> software_type == 'WH2650A_V1.2.1':" so it could identify our firmware.
>
> quinta-feira, 29 de Novembro de 2018 às 16:18:52 UTC, Massimiliano Neri 
> escreveu:
>>
>>
>> Can you tell me the exact line on the code of the interceptor.py? File. 
>> in fact, after the driver version change the number of lines no longer 
>> corresponds. I installed the latest version of the driver. is it possible 
>> that matthewwall fixes the file directly?
>>
>> Il giorno venerdì 23 novembre 2018 00:11:49 UTC+1, Massimiliano Neri ha 
>> scritto:
>>>
>>> Hi, I just bought a WaldBeck Halley WH-2650, basically a clone of the 
>>> WH-2650 Fine Offset, can you tell me how to configure weewx.conf to 
>>> intercept its data string?
>>>
>>> I thank you in advance.
>>>
>>

-- 
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.