This is a Python 3 problem. The syntax '<>' is no longer accepted by the Python 3 interpreter as an inequality operator. You'll have to either run under Python 2, or port the sync_lh9 module to Python 3.
-tk On Tue, Sep 22, 2020 at 2:30 AM '[email protected]' via weewx-user < [email protected]> wrote: > i know mesowx is quite dead... but we use the python script to update our > archive on the server. After a crash of our Raspberry pi we are unable to > get the sync_lh9 working again... Weewx starts quite normal till an > unrecoverable exception. Maybe someone can help us. > > Problems with mesowx (also in use till today for our archive) > > Sep 21 23:42:58 WSKOSt01 systemd[1]: Starting LSB: weewx weather system... > Sep 21 23:42:59 WSKOSt01 weewx[2735] INFO __main__: Initializing weewx > version 4.1.1 > Sep 21 23:42:59 WSKOSt01 weewx[2735] INFO __main__: Using Python 3.7.3 > (default, Jul 25 2020, 13:03:44) #012[GCC 8.3.0] > Sep 21 23:42:59 WSKOSt01 weewx[2735] INFO __main__: Platform > Linux-5.4.51-v7+-armv7l-with-debian-10.4 > Sep 21 23:42:59 WSKOSt01 weewx[2735] INFO __main__: Locale is 'de_DE.UTF-8' > Sep 21 23:42:59 WSKOSt01 weewx[2735] INFO __main__: PID file is > /var/run/weewx.pid > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO __main__: Using configuration > file /etc/weewx/weewx.conf > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO __main__: Debug is 1 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG __main__: Initializing engine > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.engine: Loading station > type Vantage (weewx.drivers.vantage) > Sep 21 23:42:59 WSKOSt01 weewx[2723]: Starting weewx weather system: weewx. > Sep 21 23:42:59 WSKOSt01 systemd[1]: Started LSB: weewx weather system. > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.drivers.vantage: Driver > version is 3.2.1 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.drivers.vantage: Opened > up serial port /dev/ttyUSB0; baud 19200; timeout 4.00 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.drivers.vantage: Gentle > wake up of console successful > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.drivers.vantage: Hardware > type is 16 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.drivers.vantage: ISS ID > is 2 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.drivers.vantage: Hardware > name: Vantage Pro2 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.engine.StdTimeSynch > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.engine.StdTimeSynch > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.engine.StdConvert > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.engine: StdConvert target > unit is 0x10 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.engine.StdConvert > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.engine.StdCalibrate > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.engine.StdCalibrate > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.engine.StdQC > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.engine.StdQC > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.wxservices.StdWXCalculate > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.manager: Daily summary > version is 1.0 > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.wxservices: The following > values will be calculated: pressure=prefer_hardware, > altimeter=prefer_hardware, appTemp=prefer_hardware, > barometer=prefer_hardware, beaufort=prefer_hardware, > cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, > heatindex=prefer_hardware, humidex=prefer_hardware, > inDewpoint=prefer_hardware$ > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.wxservices: The following > algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.wxservices.StdWXCalculate > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.engine.StdArchive > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.engine: Archive will use > data binding wx_binding > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.engine: Record generation > will be attempted in 'hardware' > Sep 21 23:42:59 WSKOSt01 weewx[2739] ERROR weewx.engine: The archive > interval in the configuration file (300) does not match the station > hardware interval (60). > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.engine: Using archive > interval of 60 seconds (specified by hardware) > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Use LOOP data in > hi/low calculations: 1 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.engine.StdArchive > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.restx.StdStationRegistry > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.restx: StationRegistry: > Station will be registered. > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.restx.StdStationRegistry > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.restx.StdWunderground > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.restx: WU essentials: {} > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.restx: Wunderground-RF: > Data for station IWINNING12 will be posted > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.restx.StdWunderground > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.restx.StdPWSweather > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.restx: PWSweather: Posting > not enabled. > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.restx.StdPWSweather > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.restx.StdCWOP > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.restx: CWOP: Posting not > enabled. > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.restx.StdCWOP > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.restx.StdWOW > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.restx: WOW: Posting not > enabled. > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.restx.StdWOW > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > weewx.restx.StdAWEKAS > Sep 21 23:42:59 WSKOSt01 weewx[2739] INFO weewx.restx: AWEKAS: Data will > be uploaded for user wsko001 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Finished loading > service weewx.restx.StdAWEKAS > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.engine: Loading service > user.sync_lh9.SyncService > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.manager: Daily summary > version is 1.0 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.manager: Daily summary > version is 1.0 > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.restx: Shut down AWEKAS > thread. > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.restx: Shut down > Wunderground-RF thread. > Sep 21 23:42:59 WSKOSt01 weewx[2739] DEBUG weewx.restx: Shut down > StationRegistry thread. > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: Caught > unrecoverable exception: > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** invalid > syntax (sync_lh9.py, line 109) > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** > Traceback (most recent call last): > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** File > "/usr/share/weewx/weewxd", line 148, in main > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** > engine = weewx.engine.StdEngine(config_dict) > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** File > "/usr/share/weewx/weewx/engine.py", line 75, in __init__ > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** > self.loadServices(config_dict) > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** File > "/usr/share/weewx/weewx/engine.py", line 138, in loadServices > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** obj > = weeutil.weeutil.get_object(svc)(self,config_dict) > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** File > "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** mod > = __import__(module) > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** File > "/usr/share/weewx/user/sync_lh9.py", line 109 > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** if > self.entity_id <> "": > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** > ^ > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** > SyntaxError: invalid syntax > Sep 21 23:42:59 WSKOSt01 weewx[2739] CRITICAL __main__: **** Exiting. > > laki1 schrieb am Donnerstag, 12. Januar 2017 um 10:22:47 UTC+1: > >> I believe this it will be dead soon if no updated version will appear. >> There are plenty of people that wants click-and-go like in android :-). >> So adding and reconfiguring mysql and additionally debugging js scripts can >> be deterrent (plus to find updated script for new weewx :-)) >> I have already weewx as other people here but was looking for >> almost-real-time data and found mesowx. To be honest failed at first time >> and leaved it for about 3 days (that was problems with comments in json >> file). >> I'm a database programmer so for first look it looks complicated with >> practically 4 languages php, py, js. but in fact - it is created with large >> acknowledge. >> >> Anyway You asked about shapes in legend, this should be modified in >> {AbstractHigstockChart.js} default configuration real-time tooltip is >> displayed as unmodified higcharts tooltip but others because of ranfe of >> date presentation are displayed from tooltip formatted. So legend is >> slightly different from real-time. >> So there are two tasks: >> 1. Set legend same for all tabs. >> 2. Add shapes to default formater >> >> >> ...Wanted to add pretty code but it was cuted off so attached dif file >> and new file :-) >> >> >> W dniu czwartek, 12 stycznia 2017 00:29:15 UTC+1 użytkownik Glenn >> McKechnie napisał: >>> >>> Another success, it's always good to hear of them, at the very least it >>> means that Mesowx isn't quite dead yet. :-) >>> >>> What was the magic required to change the markers in the pop-up? Any >>> pointers to their location or a brief HowTo on the tuning required would >>> certainly be appreciated from this end. >>> >>> That reminds me of another entry on the wishlist. I'd love to get the >>> Hi/Lo flags to match their line colours. It's not a really big deal but >>> when the graphs get a bit tight it would help to quickly zero in on the >>> right one if they were colour matched. >>> >>> >>> Cheers >>> Glenn >>> >>> rorpi - read only raspberry pi + weewx: now with scripts >>> <https://github.com/glennmckechnie/rorpi-raspberrypi> >>> >>> On 5 January 2017 at 19:17, laki1 <[email protected]> wrote: >>> >>>> Hi Guys, >>>> >>>> I want to report successful implementation on weewx 2.6.2 (nginx on >>>> rpi0 with 2 bme280). >>>> Used raw_0.4.1-lh.py from Luc and highlights from Glenn - that was >>>> useful. >>>> My station is 'smaller' - only pressure,temperature,humidity are now >>>> reported (light is also planned) , but after editing scripts it looks very >>>> good. >>>> >>>> Meet two not obvious problems that someone can meet: >>>> - In my particular case any comments from config.json needed to be >>>> removed. >>>> - Some time spent - like Glenn said - on parameters configuration. My >>>> case was simpler because this is all about removing :-) >>>> - Stuck on visualization problem with different tooltip on real time >>>> and 24h and Archive view. Wanted to have marker symbol in legend like this >>>> >>>> It was some tuning but successful - i can provide additional >>>> information if someone wish to have it. >>>> >>>> Cheers >>>> >>>> >>> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/fb3d49e2-fa15-46ae-8605-b520db0b267bn%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/fb3d49e2-fa15-46ae-8605-b520db0b267bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEDhvLMT3aW4GBSDr58NZRJprKJb1VeYh6UjFO%2BFEG4KPg%40mail.gmail.com.
