Jump to content

MTB

Members
  • Posts

    40
  • Joined

  • Last visited

Recent Profile Visitors

797 profile views

MTB's Achievements

New

New (2/6)

7

Reputation

  1. Hello, I had some distractions, but started looking into this again today. It appears that the PrecipNode.py that is loaded for Polisy is malformed. Part of the header is at the end of the file. Not sure if there are any other problems with it. I'd appreciate it if you could take a look. Thanks, Mark PrecipNode.py
  2. @glarsen I'm moving from PG2 to PG3 on my Polisy and I have been unable to get the meteobridge server to run, and would appreciate any help. Pretty sure I have it set up the same way as the V2 version. Below are from my error log. Thanks, Mark 2024-01-15 18:06:26,894 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2024-01-15 18:06:26,901 MainThread udi_interface INFO __init__:<module>: UDI interface initializing 2024-01-15 18:06:26,902 MainThread udi_interface INFO __init__:<module>: User=polyglot 2024-01-15 18:06:26,903 MainThread udi_interface INFO __init__:<module>: Home=/var/polyglot 2024-01-15 18:06:26,904 MainThread udi_interface INFO __init__:<module>: Node Server Path=/var/polyglot/pg3/ns/000db953c538_20 2024-01-15 18:06:26,905 MainThread udi_interface INFO __init__:<module>: PG3INIT=eyJ1dWlkIjoiMDA6MGQ6Yjk6NTM6YzU6MzgiLCJwcm9maWxlTnVtIjoyMCwibG9nTGV2ZWwiOiJERUJVRyIsInRva2VuIjoiMDM5biV6dUYrVGc4OURYOCIsIm1xdHRIb3N0IjoibG9jYWxob3N0IiwibXF0dFBvcnQiOjE4ODgsInNlY3VyZSI6MSwiaXNQRzN4IjpmYWxzZSwicGczVmVyc2lvbiI6IjMuMS4yMyIsImlzeVZlcnNpb24iOiI1LjguMCIsImVkaXRpb24iOiJGcmVlIn0= 2024-01-15 18:06:26,905 MainThread udi_interface INFO __init__:<module>: Loading interface module 2024-01-15 18:06:27,750 MainThread udi_interface INFO interface:<module>: Loading MQTT module 2024-01-15 18:06:27,968 MainThread udi_interface INFO interface:<module>: MQTT module loaded 2024-01-15 18:06:29,733 MainThread udi_interface INFO __init__:<module>: Loading udi_interface module 2024-01-15 18:06:29,736 MainThread udi_interface INFO __init__:<module>: Loading node module 2024-01-15 18:06:29,737 MainThread udi_interface INFO __init__:<module>: Loading custom module 2024-01-15 18:06:29,737 MainThread udi_interface INFO __init__:<module>: Loading isy module 2024-01-15 18:06:29,738 MainThread udi_interface INFO __init__:<module>: UDI interface initialized 2024-01-15 18:06:29,738 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.2.6 Starting... 2024-01-15 18:06:29,749 MainThread udi_interface ERROR udi_interface:write: Traceback (most recent call last): 2024-01-15 18:06:29,750 MainThread udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/000db953c538_20/./mb-poly.py", line 4, in <module> 2024-01-15 18:06:29,751 MainThread udi_interface ERROR udi_interface:write: from nodes import Controller 2024-01-15 18:06:29,751 MainThread udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/000db953c538_20/nodes/__init__.py", line 5, in <module> 2024-01-15 18:06:29,752 MainThread udi_interface ERROR udi_interface:write: from .PrecipNode import PrecipNode 2024-01-15 18:06:29,753 MainThread udi_interface ERROR udi_interface:write: File "/var/polyglot/pg3/ns/000db953c538_20/nodes/PrecipNode.py", line 1, in <module> 2024-01-15 18:06:29,754 MainThread udi_interface ERROR udi_interface:write: ode 2024-01-15 18:06:29,754 MainThread udi_interface ERROR udi_interface:write: NameError 2024-01-15 18:06:29,755 MainThread udi_interface ERROR udi_interface:write: : 2024-01-15 18:06:29,755 MainThread udi_interface ERROR udi_interface:write: name 'ode' is not defined
  3. @glarsen, works perfectly again! Thank you. Mark
  4. @glarsen Recently, this node server stopped working for me. Not sure what changed. Here is what is shown in the Node server Log: Appreciate any help. Running on: Version 2.2.13 Status Frontend Version: 2.2.9-5 ISY Version: 5.4.4 Thanks, Mark
  5. Thanks to this guide, I managed to get everything working quickly except for datalogging using the "@webpage" feature on the Emails/Notifications tab. Is this working for anyone else? In playing around with Web Server tab, I find that I can copy a file from my computer into the directory, but if I try to create a new directory, it fails. I also can't delete the file that I copied over. Not sure if there is a ownership error, or something isn't working with the path settings?
  6. @glarsen Any progress on adding the irrigation requirement calculation? Great job on this node server- an all local solution as long as forecast data isn't required. Sent from my moto z3 using Tapatalk
  7. Thanks, 1.1.0 works. Side note: any chance of including the timestamp info as a data field? It is part of the query, and would allow stale data to be easily identified. Thanks for a well done nodeserver.
  8. @glarsen. I upgraded to MeteoAuth 1.0.9 (on Polisy), and now I get the following error. I uninstalled it and reinstalled, but no avail. Any ideas? 2020-02-16 21:03:29,499 [MainThread] [INFO ] Received Config from STDIN. 2020-02-16 21:03:29,500 [MainThread] [INFO ] UDI Polyglot v2 Interface 2.0.34 Starting... 2020-02-16 21:03:29,549 [MainThread] [DEBUG] gws: {'default': {2: ('192.168.99.1', 'igb0')}, 2: [('192.168.99.1', 'igb0', True)]} 2020-02-16 21:03:29,550 [MainThread] [DEBUG] gw: default=('192.168.99.1', 'igb0') 2020-02-16 21:03:29,551 [MainThread] [DEBUG] ifad: igb0=[{'addr': '192.168.99.96', 'netmask': '255.255.255.0', 'broadcast': '192.168.99.255'}] 2020-02-16 21:03:29,551 [MainThread] [INFO ] Connect: Network Interface: {'addr': '192.168.99.96', 'netmask': '255.255.255.0', 'broadcast': '192.168.99.255'} 2020-02-16 21:03:29,553 [Interface ] [INFO ] Connecting to MQTT... localhost:1883 2020-02-16 21:03:29,675 [Interface ] [INFO ] MQTT Connected with result code 0 (Success) 2020-02-16 21:03:29,678 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/ns/9 - MID: 1 Result: 0 2020-02-16 21:03:29,679 [Interface ] [INFO ] MQTT Subscribing to topic: udi/polyglot/connections/polyglot - MID: 2 Result: 0 2020-02-16 21:03:29,680 [Interface ] [INFO ] Sent Connected message to Polyglot 2020-02-16 21:03:29,806 [Interface ] [INFO ] Adding node MeteoBridge Weather(mbweather) 2020-02-16 21:03:29,808 [Interface ] [INFO ] Waiting on Controller node to be added....... 2020-02-16 21:03:29,810 [NodeServer] [INFO ] Started MeteoBridge Template NodeServer 2020-02-16 21:03:29,811 [NodeServer] [INFO ] Check for existing configuration value 2020-02-16 21:03:29,812 [NodeServer] [INFO ] Creating node definition profile based on config. 2020-02-16 21:03:29,815 [NodeServer] [INFO ] write_profile: Writing profile/nodedef/nodedefs.xml 2020-02-16 21:03:29,911 [NodeServer] [INFO ] write_profile_zip: profile/version.txt as version.txt 2020-02-16 21:03:29,915 [NodeServer] [INFO ] write_profile_zip: profile/editor/editors.xml as editor/editors.xml 2020-02-16 21:03:29,919 [NodeServer] [INFO ] write_profile_zip: profile/nodedef/nodedefs.xml as nodedef/nodedefs.xml 2020-02-16 21:03:29,929 [NodeServer] [INFO ] write_profile_zip: profile/nls/en_us.txt as nls/en_us.txt 2020-02-16 21:03:29,935 [NodeServer] [INFO ] write_profile: done. 2020-02-16 21:03:29,936 [NodeServer] [INFO ] Sending Install Profile command to Polyglot. 2020-02-16 21:03:29,938 [NodeServer] [INFO ] Adding configuration 2020-02-16 21:03:29,939 [NodeServer] [INFO ] Sending customParams to Polyglot. 2020-02-16 21:03:29,940 [NodeServer] [DEBUG] Custom data: {} 2020-02-16 21:03:29,941 [NodeServer] [INFO ] Sending customData to Polyglot. 2020-02-16 21:03:29,960 [NodeServer] [ERROR] Exception in thread NodeServer: Traceback (most recent call last): File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/usr/local/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "./meteobridgeauth.py", line 68, in start self.check_params() File "./meteobridgeauth.py", line 290, in check_params LOGGER.setLevel(self.currentloglevel) File "/usr/local/lib/python3.7/logging/__init__.py", line 1353, in setLevel self.level = _checkLevel(level) File "/usr/local/lib/python3.7/logging/__init__.py", line 192, in _checkLevel raise ValueError("Unknown level: %r" % level) ValueError: Unknown level: '10'
  9. @bpwwer I see the same problem on the Meteobridge server. The Temperature and Precipitation items are not a condition for action. Also, now that you support so many weather stations, it would be really cool to add an irrigation required calculation. Any consideration for taking that on?
  10. Nice. I now have both MeteoBridge and WeatherPoly nodeservers working with my Meteobridge device. Thanks! Mark
  11. I found it in the WXforum here https://www.wxforum.net/index.php?topic=31507.msg324631#msg324631, which provided this link: http://content.meteobridge.com/templates/homeweatherstation.template. I've been very impressed with Meteobridge - very solidly written and very flexible templating. I have been having some issues with the MeteoBridge poly. I had to manually create the profile/nodedef directory after installation. Also, the data doesn't make it into the ISY correctly. The outdoor temp and dew point come in as 0C, but for some reason, the Windchill calculates correctly. Humidity is 0%. The Wind direction is correct, but I don't know about the wind speed (no wind right now). Here are some screenshots: If I manually do an XML query to my Meteobridge it looks like this: <logger> <RAIN date="20181026164049" id="rain0" rate="0.0" total="0.0" delta="0.0" lowbat="0"/> <THB date="20181026164049" id="thb0" temp="0.0" hum="0" dew="0.0" press="1019.8" seapress="1019.8" fc="-1" lowbat="0"/> <TH date="20181026164030" id="th0" temp="21.2" hum="56" dew="12.9" lowbat="0"/> <WIND date="20181026164049" id="wind0" dir="180" gust="0.0" wind="0.0" chill="21.2" lowbat="0"/> </logger> I have an Acurite 5n1 weatherstation. I suspect the issue is interpreting the "THB" vs "TH" records. One thing to keep in mind is that the zero at the end of the id's indicates the sensor. I had a second sensor, which reported as "th1" which I removed to eliminate that sensor as a source of confusion. Here is a snippet from the log file for one reporting interval (60sec). It's curious that it seems to be reporting twice. I don't know if I somehow have two servers going in all my messing around to get it to work? The Polyglot server only shows one... 2018-10-26 09:46:45,308 [Controller] [DEBUG] b'<logger>\n <RAIN date="20181026164545" id="rain0" rate="0.0" total="0.0" delta="0.0" lowbat="0" />\n <THB date="20181026164640" id="thb0" temp="0.0" hum="0" dew="0.0" press="1019.8" seapress="1019.8" fc="-1" lowbat="0" />\n <TH date="20181026164640" id="th0" temp="21.6" hum="56" dew="13.2" lowbat="0" />\n <WIND date="20181026164640" id="wind0" dir="203" gust="0.0" wind="0.0" chill="21.6" lowbat="0" />\n</logger>\n' 2018-10-26 09:46:45,308 [Controller] [DEBUG] b'<logger>\n <RAIN date="20181026164545" id="rain0" rate="0.0" total="0.0" delta="0.0" lowbat="0" />\n <THB date="20181026164640" id="thb0" temp="0.0" hum="0" dew="0.0" press="1019.8" seapress="1019.8" fc="-1" lowbat="0" />\n <TH date="20181026164640" id="th0" temp="21.6" hum="56" dew="13.2" lowbat="0" />\n <WIND date="20181026164640" id="wind0" dir="203" gust="0.0" wind="0.0" chill="21.6" lowbat="0" />\n</logger>\n' 2018-10-26 09:46:45,309 [Controller] [DEBUG] tag = logger 2018-10-26 09:46:45,309 [Controller] [DEBUG] tag = logger 2018-10-26 09:46:45,311 [Controller] [DEBUG] child = RAIN 2018-10-26 09:46:45,311 [Controller] [DEBUG] child = RAIN 2018-10-26 09:46:45,312 [Controller] [DEBUG] Rate = 0.0 2018-10-26 09:46:45,312 [Controller] [DEBUG] Rate = 0.0 2018-10-26 09:46:45,312 [Controller] [DEBUG] Delta = 0.0 2018-10-26 09:46:45,312 [Controller] [DEBUG] Delta = 0.0 2018-10-26 09:46:45,313 [Controller] [DEBUG] Total = 0.0 2018-10-26 09:46:45,313 [Controller] [DEBUG] Total = 0.0 2018-10-26 09:46:45,315 [Controller] [INFO ] Updating Driver rain - ST: 0.0, uom: 24 2018-10-26 09:46:45,315 [Controller] [INFO ] Updating Driver rain - ST: 0.0, uom: 24 2018-10-26 09:46:45,318 [Controller] [INFO ] Updating Driver rain - GV7: 0.0, uom: 105 2018-10-26 09:46:45,318 [Controller] [INFO ] Updating Driver rain - GV7: 0.0, uom: 105 2018-10-26 09:46:45,321 [Controller] [DEBUG] child = THB 2018-10-26 09:46:45,321 [Controller] [DEBUG] child = THB 2018-10-26 09:46:45,324 [Controller] [INFO ] Updating Driver temperature - GV0: 32.0, uom: 17 2018-10-26 09:46:45,324 [Controller] [INFO ] Updating Driver temperature - GV0: 32.0, uom: 17 2018-10-26 09:46:45,329 [Controller] [INFO ] Updating Driver temperature - ST: 32.0, uom: 17 2018-10-26 09:46:45,329 [Controller] [INFO ] Updating Driver temperature - ST: 32.0, uom: 17 2018-10-26 09:46:45,333 [Controller] [INFO ] Updating Driver humidity - ST: 0.0, uom: 22 2018-10-26 09:46:45,333 [Controller] [INFO ] Updating Driver humidity - ST: 0.0, uom: 22 2018-10-26 09:46:45,336 [Controller] [INFO ] Updating Driver pressure - ST: 30.115, uom: 23 2018-10-26 09:46:45,336 [Controller] [INFO ] Updating Driver pressure - ST: 30.115, uom: 23 2018-10-26 09:46:45,340 [Controller] [INFO ] Updating Driver pressure - GV0: 30.115, uom: 23 2018-10-26 09:46:45,340 [Controller] [INFO ] Updating Driver pressure - GV0: 30.115, uom: 23 2018-10-26 09:46:45,343 [Controller] [DEBUG] Dewpoin = 0.0 2018-10-26 09:46:45,343 [Controller] [DEBUG] Dewpoin = 0.0 2018-10-26 09:46:45,344 [Controller] [DEBUG] Humidit = 0 2018-10-26 09:46:45,344 [Controller] [DEBUG] Humidit = 0 2018-10-26 09:46:45,345 [Controller] [DEBUG] Temp = 0.0 2018-10-26 09:46:45,345 [Controller] [DEBUG] Temp = 0.0 2018-10-26 09:46:45,346 [Controller] [DEBUG] Sea = 1019.8 2018-10-26 09:46:45,346 [Controller] [DEBUG] Sea = 1019.8 2018-10-26 09:46:45,347 [Controller] [DEBUG] pressur = 1019.8 2018-10-26 09:46:45,347 [Controller] [DEBUG] pressur = 1019.8 2018-10-26 09:46:45,349 [Controller] [DEBUG] child = TH 2018-10-26 09:46:45,349 [Controller] [DEBUG] child = TH 2018-10-26 09:46:45,350 [Controller] [DEBUG] Dewpoin = 13.2 2018-10-26 09:46:45,350 [Controller] [DEBUG] Dewpoin = 13.2 2018-10-26 09:46:45,352 [Controller] [DEBUG] Humidit = 56 2018-10-26 09:46:45,352 [Controller] [DEBUG] Humidit = 56 2018-10-26 09:46:45,353 [Controller] [DEBUG] Temp = 21.6 2018-10-26 09:46:45,353 [Controller] [DEBUG] Temp = 21.6 2018-10-26 09:46:45,354 [Controller] [DEBUG] child = WIND 2018-10-26 09:46:45,354 [Controller] [DEBUG] child = WIND 2018-10-26 09:46:45,356 [Controller] [INFO ] Updating Driver temperature - GV1: 70.9, uom: 17 2018-10-26 09:46:45,356 [Controller] [INFO ] Updating Driver temperature - GV1: 70.9, uom: 17 2018-10-26 09:46:45,360 [Controller] [INFO ] Updating Driver wind - ST: 0.0, uom: 48 2018-10-26 09:46:45,360 [Controller] [INFO ] Updating Driver wind - ST: 0.0, uom: 48 2018-10-26 09:46:45,363 [Controller] [INFO ] Updating Driver wind - GV1: 0.0, uom: 48 2018-10-26 09:46:45,363 [Controller] [INFO ] Updating Driver wind - GV1: 0.0, uom: 48 2018-10-26 09:46:45,367 [Controller] [INFO ] Updating Driver wind - GV0: 203.0, uom: 14 2018-10-26 09:46:45,367 [Controller] [INFO ] Updating Driver wind - GV0: 203.0, uom: 14 2018-10-26 09:46:45,370 [Controller] [DEBUG] chill = 21.6 2018-10-26 09:46:45,370 [Controller] [DEBUG] chill = 21.6 2018-10-26 09:46:45,371 [Controller] [DEBUG] wind = 0.0 2018-10-26 09:46:45,371 [Controller] [DEBUG] wind = 0.0 2018-10-26 09:46:45,373 [Controller] [DEBUG] gust = 0.0 2018-10-26 09:46:45,373 [Controller] [DEBUG] gust = 0.0 2018-10-26 09:46:45,375 [Controller] [DEBUG] direct = 203 2018-10-26 09:46:45,375 [Controller] [DEBUG] direct = 203 Thanks for the time you put in developing this.
  12. You are correct, I am using the WeatherPoly. I tried the MeteoBridge sever first, but ran into some issue and saw WeatherPoly and thought I'd give that a go. I'll circle back and try the MeteoBridge server again. I think the following is the output format for the MeteoBridge Home Weatherstation Template: %s/mb.php?d=[DD]/[MM]/[YYYY] [hh]:[mm]:[ss] [th0temp-act:--] [th0hum-act:--] [th0dew-act:--] [wind0avgwind-act:--] [wind0wind-act:--] [wind0dir-act:--] [rain0rate-act:--] [rain0total-daysum:--] [thb0seapress-act:--] [wind0dir-act:--] [wind0wind-act=bft.0:--] m/s C hPa mm -- [thb0seapress-val60:--] [rain0total-monthsum:--] [rain0total-yearsum:--] [rain0total-ydaysum:--] [thb0temp-act:--] [thb0hum-act:--] [wind0chill-act:--] [th0temp-val60:--] [th0temp-dmax:--] [th0temp-dmaxtime:--] [th0temp-dmin:--] [th0temp-dmintime:--] [wind0avgwind-dmax:--] [wind0avgwind-dmaxtime:--] [wind0wind-dmax:--] [wind0wind-dmaxtime:--] [thb0seapress-dmax:--] [thb0seapress-dmaxtime:--] [thb0seapress-dmin:--] [thb0seapress-dmintime:--] [mbsystem-swversion:--] [mbsystem-buildnum:--] [wind0wind-max10:--] -- -- [uv0index-act:--] -- [sol0rad-act:--] [wind0dir-avg10:--] [rain0total-sum60:--] -- [mbsystem-daynightflag:--] -- [wind0dir-avg10:--] -- m -- [mbsystem-daylength:--] -- -- [uv0index-dmax:--] [th0hum-dmax:--] [th0hum-dmaxtime:--] [th0hum-dmin:--] [th0hum-dmintime:--] [th0dew-dmax:--] [th0dew-dmaxtime:--] [th0dew-dmin:--] [th0dew-dmintime:--] [th0temp-val15:—] [th0hum-val15:—] [th0dew-val15:—] [thb0temp-val15:—] [thb0hum-val15.0:--] [wind0wind-avg15:—] [wind0wind-avg30:—] [lgt0energy-act:--] [lgt0dist-act:--] [lgt0dist-age:--] [lgt0total-daysum.0:--] [lgt0total-monthsum.0:--] [lgt0total-yearsum.0:--] [sol0rad-dmax:--] [mbsystem-uptime:—-] [th0temp-ydmax:--] [th0temp-ydmaxtime:--] [th0temp-ydmin:--] [th0temp-ydmintime:--] [th0temp-mmax:--] [th0temp-mmaxtime:--] [th0temp-mmin:--] [th0temp-mmintime:--] [th0temp-ymax:--] [th0temp-ymaxtime:--] [th0temp-ymin:--] [th0temp-ymintime:--] [wind0wind-ydmax:--] [wind0wind-ydmaxtime:--] [wind0wind-mmax:--] [wind0wind-mmaxtime:--] [wind0wind-ymax:--] [wind0wind-ymaxtime:--] [rain0total-ydmax:--] [rain0total-mmax:--] [rain0total-mmaxtime:--] [rain0total-ymax:--] [rain0total-ymaxtime:--] [sol0rad-dmax:--] [sol0rad-dmaxtime:--] [sol0rad-ydmax:--] [sol0rad-ydmaxtime:--] [sol0rad-mmax:--] [sol0rad-mmaxtime:--] [sol0rad-ymax:--] [sol0rad-ymaxtime:—] [uv0index-dmaxtime:--] [uv0index-ydmax:--] [uv0index-ydmaxtime:--] [uv0index-mmax:--] [uv0index-mmaxtime:--] [uv0index-ymax:--] [uv0index-ymaxtime:—] [thb0temp-dmax:--] [thb0temp-dmin:--] Once again, really cool stuff!
  13. @bpwwer, can you provide additional guidance to what the configuration key and value combinations are required in the Configuration screen when using with Meteobridge? The help screen seems to describe what goes in the key field, but I have no idea how to populate the value field. Pretty cool nodeserver. Thanks.
×
×
  • Create New...