Rimco/OSPy

error in Water Level by Netatmo Plugin

Closed this issue · 3 comments

Hi,

I just installed OSPy and tried to install the water Level Netatmo plugin. Unfortunately I alsoway returns an error. Seems that it somehow tries to access Weather Underground API.

Weather-based water level plug-in: Traceback (most recent call last): File "/home/pi/OSPy/plugins/weather_based_water_level_netatmo/__init__.py", line 114, in run history = weather.get_wunderground_history(plugin_options['days_history']) File "/home/pi/OSPy/ospy/weather.py", line 280, in _deprecated raise Exception('This interface was removed because Weather Underground API has stopped, please update the plug-in!') Exception: This interface was removed because Weather Underground API has stopped, please update the plug-in!

Rimco commented

Hi,

I'm not aware of the "weather_based_water_level_netatmo" as you mention. Could you tell me where it's coming from? We indeed had to remove all Weather Underground based logic, but given that plug-ins are maintained and distributed separately, they may still depend on this.

Ok this could be the reason. I installed the plugin "Weather-based Water Level Netatmo" as I have the rain sensor at home. I thought it is perhaps better to rely on the own rain data instead of Dark Sky.

Is there a way to contact the author of that plugin or to change it? There is also the Rain Delay plugin which works fine with Netatmo

Rimco commented

A bit of Googling showed me that you are most likely running the OSPy fork of @martinpihrt. He has a fork with many more features, but also many that are too specific to easily take over in my original version while maintaining good code quality and maintainability.

The code is located at https://github.com/martinpihrt/OSPy-plugins/tree/master/plugins/weather_based_water_level_netatmo. Martin will need to help you out updating this plug-in to use the new API. Given that the original plug-in is already updated, Martin can use it as example to update his extended version. If Martin has problems updating, let me know.