×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Weather radio don't want connect

  • Posts: 1187
  • Thank you received: 370
3 years 1 month ago #69174

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
yes it does, thanks for the help. I will carry on connecting the other sensors and debugging if necessary ;)
3 years 1 month ago #69189

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
BME280 connected on the I2C port, so far so good.

{
"BME280": {
"init": true,
"Temp": 23.48,
"Pres": 1019.813,
"Hum": 40.57813
},
"MLX90614": {
"init": true,
"T amb": 22.42999,
"T obj": 22.95001
}
}
3 years 1 month ago #69192

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
and finally the TSL2591

{
"BME280": {
"init": true,
"Temp": 22.17,
"Pres": 1019.764,
"Hum": 42.69531
},
"MLX90614": {
"init": true,
"T amb": 21.67001,
"T obj": 22.11001
},
"TSL2591": {
"init": true,
"Lux": 35.93759,
"Visible": 10489,
"IR": 1596,
"Gain": 32,
"Timing": 1
}
}
3 years 1 month ago #69193

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
ok... not getting the data on the webpage (works fine in Ekos).

root@heidenrod-obs:/usr/share/weatherradio/html/data# more RTdata_lastupdate.json
{
"CloudCover":null,
"DewPoint":null,
"Humidity":null,
"Pressure":null,
"RainVolume":null,
"RaindropFrequency":null,
"SQM":null,
"SkyTemperature":null,
"Temperature":null,
"WindDirection":null,
"WindGust":null,
"WindSpeed":null,
"timestamp":1616625127000
}
root@heidenrod-obs:/usr/share/weatherradio/html/data#
3 years 1 month ago #69195

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
root@heidenrod-obs:/usr/share/weatherradio# ./bin/wr_rrd_update.py -v
Updating data from "Weather Radio"@localhost:7624
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Timeout Weather Radio CONNECTION
Setting serial port to /dev/ttyUSB0
Waiting for connection...
got message by host :localhost :
INDImessage Weather Radio [INFO] Failed to receive full response: Timeout error. (Return code: -4). Retrying...
got message by host :localhost :
INDImessage Weather Radio [INFO] Failed to receive full response: Timeout error. (Return code: -4). Retrying...
got message by host :localhost :
INDImessage Weather Radio [ERROR] Parsing error breaking bad at 0
root@heidenrod-obs:/usr/share/weatherradio#
Last edit: 3 years 1 month ago by Gonzothegreat.
3 years 1 month ago #69199

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
Doesn't seem to work in Ekos now :(
 
3 years 4 weeks ago #69210
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
For some unknown reasons it started to work...

root@heidenrod-obs:/usr/share/weatherradio# ./bin/wr_rrd_update.py -v
Updating data from "Weather Radio"@localhost:7624
Connection established to "Weather Radio"@localhost:7624
Reading weather sensor values...
Reading weather sensor values... (succeeded)
Weather parameters read from "Weather Radio"@localhost:7624
root@heidenrod-obs:/usr/share/weatherradio#


however the weatherradio.html isn't showing any data at all
3 years 4 weeks ago #69217

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
An interesting observation:
it works with -v but not without

root@heidenrod-obs:/usr/share/weatherradio# /usr/share/weatherradio/bin/wr_rrd_update.py -v
Updating data from "Weather Radio"@localhost:7624
Connection established to "Weather Radio"@localhost:7624
Reading weather sensor values...
Reading weather sensor values... (succeeded)
Weather parameters read from "Weather Radio"@localhost:7624
root@heidenrod-obs:/usr/share/weatherradio#

root@heidenrod-obs:/usr/share/weatherradio# /usr/share/weatherradio/bin/wr_rrd_update.py
Establishing connection FAILED to "Weather Radio"@localhost:7624
root@heidenrod-obs:/usr/share/weatherradio#
3 years 4 weeks ago #69218

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I am wondering why the DHT is being pulled while it's not configured on the board.

# rrdtool fetch sensors.rrd AVERAGE -s -1d -r 1h
BME280_Temp BME280_Pres BME280_Hum DHT_Temp DHT_Hum MLX90614_Tamb MLX90614_Tobj TSL2591_Lux
3 years 4 weeks ago #69246

Please Log in or Create an account to join the conversation.

  • Posts: 1187
  • Thank you received: 370
That's OK. The RRD file contains columns for all supported sensors, not only for the used ones.

Regarding the problem above with the -v flag - hm, strange, never seen. Try to use the debugger pdb.
3 years 4 weeks ago #69257

Please Log in or Create an account to join the conversation.

  • Posts: 2255
  • Thank you received: 223
I will try the pdb to debug, however I do not understand why the weatherradio.html returns nothing while the sensordata.html does.
3 years 4 weeks ago #69265

Please Log in or Create an account to join the conversation.

Time to create page: 1.245 seconds