Page 1 of 1

Plugin Station: retrieves no data **solved**

Posted: Tue Oct 20, 2015 8:43 pm
by martinkk
Hi,

I just added a plug-in weather station. the script I wrote prints the following:

thb5 0 0 1017.66 followed by a LF character

That should be according to the standards for a thb sensor. 0°C 0% and 1017.66mbar

When the script is run, exactly one such line is printed.

I copied the script to /usr/sbin/baros.sh and added +x in order to make it executeable.
The 2nd weather station itself is named "barostation"
Plug-n
300sec
0m

When I now look at the sensor data, no sensor appears at "barostation".

What's wrong? Thanks :)

The log file says:

Code: Select all

logger (20.10.2015 20:49:22): connect station 1 (Plug-in via Plug-in).
logger (20.10.2015 20:49:22): station 1 (Plug-in), unexpected 0 bytes.
logger (20.10.2015 20:49:22): disconnect station 1 (Plug-in): response without data

Re: Plugin Station: retrieves no data

Posted: Tue Oct 20, 2015 10:00 pm
by martinkk
Problem solved! :) It seems that you cannot run a script from a script... by directly running the actual python script, it works :) In my first attempt, I ran the python script from another one...