Install on Synology

387 views
Skip to first unread message

Chris

unread,
Mar 17, 2017, 6:56:27 AM3/17/17
to wfrog-users
Hello,

Can I have some help in installing wfrog on my Synology DS216Play ?

I installed all dependencies manually but 1 : lxml.

This is the error : unable to execute '/usr/local/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ccache-gcc': No such file or directory

Is it another dependency ? Can I have some help ? I have limited knowledge on this.

I downloaded the package on https://pypi.python.org/pypi maybe it is not the good one.

Thank you

Jordi Puigsegur Figueras

unread,
Mar 18, 2017, 4:44:37 AM3/18/17
to wfrog...@googlegroups.com
I cannot help you about that other than telling you that there is people who have installed wfrog (and its dependencies) in Raspberry which is also an arm architecture machine. Therefore in principle the package should be available. Maybe trying an older version...

Look if by chance you have the lxml module as a OS module instead of a pypi module ...

Then maybe you can also try on lxml main page: http://lxml.de. There are instructions on how to build lxml from the sources.

Jordi.

--
You received this message because you are subscribed to the Google Groups "wfrog-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wfrog-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris

unread,
Mar 21, 2017, 12:02:16 PM3/21/17
to wfrog-users
Ok, I succeeded in launching wfrog.
I don't know exactly what did the trick as I tried many things...
Next step, I need to get the data from my weather station and customize the templates.
Thank you.

Chris

unread,
Apr 3, 2017, 5:28:32 AM4/3/17
to wfrog-users
Another feedback.

Ok, wfrog works BUT it doesn't pull data from my weather station.

Debug says that USB connection has failed.

I know it can work because I already installed wfrog with that same weather station on my previous Synology NAS (which was D212J)

Any help appreciated.

Weather Station : Oregon WMR88
NAS Synology : D216PLAY
Drivers tried : auto / wmrs200 (which is the one recommended) / wmr200

Jordi Puigsegur Figueras

unread,
Apr 6, 2017, 4:19:36 PM4/6/17
to wfrog...@googlegroups.com
One thing to check: wfrog needs permission to open the USB port. Either you run wfrog as root or give permisions (udev rules). 

It might not be this. It is just a guess without much information.

Jordi.

--

Chris

unread,
Apr 7, 2017, 3:20:48 AM4/7/17
to wfrog-users
To run as root I just need to sudo the command, right ?

Here is the debug log if it can help :

sudo ./bin/wfrog -d
/usr/lib/python2.7/site-packages/Cheetah/Compiler.py:1509: UserWarning:
You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of                                  Cheetah with the compiled C version of NameMapper.
  "\nYou don't have the C version of NameMapper installed! "
2017-04-07 09:11:38,103 INFO [config] Starting wfrog 0.8.2
2017-04-07 09:11:38,104 INFO [config] Loaded settings file /etc/wfrog/settings.yaml
2017-04-07 09:11:38,105 DEBUG [config] Loaded settings {'units': {'press': 'hPa', 'rain': 'mm', 'temp': 'C', 'wind': 'km/h'}, 'altitude': 81, 'station': {'driver': 'wmrs200'}}
2017-04-07 09:11:38,106 DEBUG [config] Loaded config file /volume1/wfrog/wflogger/config/wfrog.yaml
2017-04-07 09:11:38,106 DEBUG [config] Initializing accu_365d_w
2017-04-07 09:11:38,107 DEBUG [generic.service] Registering service <wfcommon.generic.YamlIncludeElement object at 0x75b14970> under 'accu_365d_w'
2017-04-07 09:11:38,107 DEBUG [generic.service] Calling init on <wfcommon.generic.YamlIncludeElement object at 0x75b14970>
2017-04-07 09:11:38,289 DEBUG [generic.include] Calling init on <wfrender.datasource.YamlAccumulatorDataSource object at 0x75b19910>
2017-04-07 09:11:38,290 DEBUG [config] Initializing accu_24h
2017-04-07 09:11:38,291 DEBUG [generic.service] Registering service <wfcommon.generic.YamlIncludeElement object at 0x75b14870> under 'accu_24h'
2017-04-07 09:11:38,291 DEBUG [generic.service] Calling init on <wfcommon.generic.YamlIncludeElement object at 0x75b14870>
2017-04-07 09:11:38,471 DEBUG [generic.include] Calling init on <wfrender.datasource.YamlAccumulatorDataSource object at 0x75b2a490>
2017-04-07 09:11:38,472 DEBUG [config] Initializing accu_3h
2017-04-07 09:11:38,473 DEBUG [generic.service] Registering service <wfcommon.generic.YamlIncludeElement object at 0x75b147f0> under 'accu_3h'
2017-04-07 09:11:38,473 DEBUG [generic.service] Calling init on <wfcommon.generic.YamlIncludeElement object at 0x75b147f0>
2017-04-07 09:11:38,653 DEBUG [generic.include] Calling init on <wfrender.datasource.YamlAccumulatorDataSource object at 0x75b2ad30>
2017-04-07 09:11:38,654 DEBUG [config] Initializing accu_365d_m
2017-04-07 09:11:38,654 DEBUG [generic.service] Registering service <wfcommon.generic.YamlIncludeElement object at 0x75b149f0> under 'accu_365d_m'
2017-04-07 09:11:38,655 DEBUG [generic.service] Calling init on <wfcommon.generic.YamlIncludeElement object at 0x75b149f0>
2017-04-07 09:11:38,739 DEBUG [generic.include] Calling init on <wfrender.datasource.YamlAccumulatorDataSource object at 0x75b08b70>
2017-04-07 09:11:38,740 DEBUG [config] Initializing storage
2017-04-07 09:11:38,741 DEBUG [generic.service] Registering service <wfcommon.generic.YamlIncludeElement object at 0x75b14770> under 'storage'
2017-04-07 09:11:38,742 DEBUG [generic.service] Calling init on <wfcommon.generic.YamlIncludeElement object at 0x75b14770>
2017-04-07 09:11:38,773 DEBUG [generic.include] Calling init on <wfcommon.generic.YamlUserChoiceElement object at 0x75b08d30>
2017-04-07 09:11:38,774 DEBUG [generic.user] Current user:root
2017-04-07 09:11:38,775 DEBUG [generic.user] Calling init on <wfcommon.storage.YamlCsvStorage object at 0x75b087b0>
2017-04-07 09:11:38,775 DEBUG [config] Initializing accu_30d
2017-04-07 09:11:38,776 DEBUG [generic.service] Registering service <wfcommon.generic.YamlIncludeElement object at 0x75b148f0> under 'accu_30d'
2017-04-07 09:11:38,777 DEBUG [generic.service] Calling init on <wfcommon.generic.YamlIncludeElement object at 0x75b148f0>
2017-04-07 09:11:38,961 DEBUG [generic.include] Calling init on <wfrender.datasource.YamlAccumulatorDataSource object at 0x75ac9930>
2017-04-07 09:11:38,963 DEBUG [generic.service] Registering service <wflogger.input.YamlFunctionInput object at 0x75b14630> under 'events'
2017-04-07 09:11:38,963 DEBUG [wflogger] Starting embedded wfdriver
2017-04-07 09:11:38,964 DEBUG [generic.service] Calling run on <wflogger.input.YamlFunctionInput object at 0x75b14630>
2017-04-07 09:11:38,971 DEBUG [wflogger] Starting embedded wfrender
2017-04-07 09:11:39,002 INFO [config] Starting wfrog 0.8.2
2017-04-07 09:11:39,004 INFO [config] Loaded settings file /etc/wfrog/settings.yaml
2017-04-07 09:11:39,062 DEBUG [config] Loaded settings {'units': {'press': 'hPa', 'rain': 'mm', 'temp': 'C', 'wind': 'km/h'}, 'altitude': 81, 'station': {'driver': 'wmrs200'}}
2017-04-07 09:11:39,135 DEBUG [config] Loaded config file /volume1/wfrog/wfdriver/config/embedded.yaml
2017-04-07 09:11:39,142 INFO [config] Starting wfrog 0.8.2
2017-04-07 09:11:39,143 INFO [config] Loaded settings file /etc/wfrog/settings.yaml
2017-04-07 09:11:39,144 DEBUG [config] Loaded settings {'units': {'press': 'hPa', 'rain': 'mm', 'temp': 'C', 'wind': 'km/h'}, 'altitude': 81, 'station': {'driver': 'wmrs200'}}
2017-04-07 09:11:39,144 DEBUG [config] Loaded config file /volume1/wfrog/wfrender/config/embedded.yaml
2017-04-07 09:11:39,145 DEBUG [wfrender] Starting root rendering.
2017-04-07 09:11:39,146 DEBUG [generic.multi] Calling render on child http
2017-04-07 09:11:39,154 INFO [station.wmrs200] Thread started
2017-04-07 09:11:39,156 INFO [station.wmrs200] USB initialization
2017-04-07 09:11:39,156 INFO [renderer.http] Started server on port 7680
2017-04-07 09:11:39,226 ERROR [station.wmrs200] WMRS200 exception: No backend available
Traceback (most recent call last):
  File "/volume1/wfrog/wfdriver/station/wmrs200.py", line 100, in run
    dev = self._search_device(vendor_id, product_id)
  File "/volume1/wfrog/wfdriver/station/wmrs200.py", line 85, in _search_device
    for bus in usb.busses():
  File "/usr/lib/python2.7/site-packages/usb/legacy.py", line 353, in busses
    sorted(core.find(find_all=True), key=lambda d: d.bus),
  File "/usr/lib/python2.7/site-packages/usb/core.py", line 1263, in find
    raise NoBackendError('No backend available')
NoBackendError: No backend available
2017-04-07 09:11:39,229 CRITICAL [station.wmrs200] USB WMRS200 connection failure

Thank you
To unsubscribe from this group and stop receiving emails from it, send an email to wfrog-users...@googlegroups.com.

Jordi Puigsegur Figueras

unread,
Apr 10, 2017, 1:32:03 PM4/10/17
to wfrog...@googlegroups.com
Hi,

2017-04-07 9:20 GMT+02:00 Chris <chri...@gmail.com>:
NoBackendError('No backend available')

Hi, It looks like the pyUsb package does not install libusb now. 

Maybe you need to install libusb by itself. E.g.:https://pypi.python.org/pypi/libusb1

Jordi.

Chris

unread,
Apr 11, 2017, 6:03:06 AM4/11/17
to wfrog...@googlegroups.com
It was already installed. Your comment had me thinking that maybe it was a conflict between all the libraries I installed.
I uninstalled libusb/pyusb via PIP, which warned my NAS that notified me that I needed to repair Python, which I did.
And then voila ! No more USB errors !
I still have no data showing (sometimes current temp is ok though), I will now try to figure it out.
Thank you

--
You received this message because you are subscribed to a topic in the Google Groups "wfrog-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wfrog-users/yChD2JiUkyo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wfrog-users...@googlegroups.com.

Chris

unread,
Apr 13, 2017, 5:34:46 AM4/13/17
to wfrog-users
Ok, I got it working now !

Still one problem : google charts won't show, I get a "Failed to load resource: the server responded with a status of 400" error on the web developer console, if I open the image link manually though it would work, and then if I refresh the wfrog webpage it will show up (until data changes or cache is emptied). Any idea?

Le vendredi 17 mars 2017 11:56:27 UTC+1, Chris a écrit :

Chris

unread,
Apr 25, 2017, 8:56:05 AM4/25/17
to wfrog-users
I resolved my problem.

if it can help anyone else here :

 I replaced "chart.get_url()" on wrenderer/render/chart.py file with (chart.get_url()).replace("http://www.google.com","https://chart.googleapis.com") and now every chart is loading !
Reply all
Reply to author
Forward
0 new messages