Plugin Station: retrieves no data **solved**

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
martinkk
Junior Boarder
Junior Boarder
Posts: 24
Joined: Wed Feb 11, 2015 8:57 am

Plugin Station: retrieves no data **solved**

Post 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
martinkk
Junior Boarder
Junior Boarder
Posts: 24
Joined: Wed Feb 11, 2015 8:57 am

Re: Plugin Station: retrieves no data

Post 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...
Post Reply