×

INDI Library v1.9.0 Released (23 Apr 2021)

Major INDI Library release v1.9.0 bring significant internal changes championed by @pawel-soja to modernize core INDI Library drivers and clients. New drivers for DeepSkyDad Flat Panel & Pegasus devices plus further improvements to PCM8 drivers.

Weather radio don't want connect

  • Posts: 732
  • Thank you received: 197
Christophe,
these are very specific questions and I'm not sure how to calculate these values.

The best way to get closer is to extract the data manually from the RRD file, import it into a spreadsheet and try to build the appropriate formulae. As soon as we have them, we can discuss how to implement them.

To extract the data, you need rrdtool installed on your machine. If it is not present, issue
sudo apt install rrdtool

For extracting the data from the RRD file, use rrdtool fetch. For example, with
rrdtool fetch weather.rrd AVERAGE -s -100d -r 1h
you extract the 1h averages of all parameters of the last 100 days.

If you need additional help, send me a PN here so that we could continue to discuss by email.

Cheers
Wolfgang
TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10
3 months 3 weeks ago #66192

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

  • Posts: 173
  • Thank you received: 3
Hello
so I tried this command but it gives me an error.

nafa@NAFABox:~$ rrdtool fetch weather.rrd AVERAGE -s -100d -r 1h
ERROR: opening 'weather.rrd': Aucun fichier ou dossier de ce type
nafa@NAFABox:~$


I also tried to try to decipher the data file, but I think there will be a problem, because the cloud cover depends on a calculation from the sky temperature, as the SQM depends on the Lux value.
So how to do it?
3 months 3 weeks ago #66231

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

  • Posts: 732
  • Thank you received: 197
You need to issue this command from that directory where weather.rrd is located. Should be /usr/local/share/weatherradio or /usr/share/weatherradio.
Cloud coverage is stored directly, so you can access the data directly from the rrd file.
TSA-120 + FSQ-85 + GSO 150/750 | Avalon Linear + M-zero | Moravian G2-8300 + ASI 1600mm pro | KStars/INDI on Raspberry Pi 4 with Raspbian 10
3 months 3 weeks ago #66255

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

  • Posts: 173
  • Thank you received: 3
Ok, so now I got to read the data.
So now, I would have to select a time slot for data collection.
example :from 6pm to 6am
then choose in this time frame the tolerance you want for clouds.
example: 2% of cloud during .
and then do a good day count.
Example : since January 1st there has been : "4" good night.

Do you think it's possible to do it, I realize that it's not directly useful for a night of observation, nor for the security of closing a roof.
But it would be interesting to know and remember which nights have been good during the year, and compared between years and different places.
3 months 3 weeks ago #66258

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

  • Posts: 173
  • Thank you received: 3
Hello
So I just saw that my station spat out this morning.
So how do I find out where and what the problem is?
3 months 3 weeks ago #66281

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

  • Posts: 89
  • Thank you received: 16
If you started your indiserver with this command
/usr/bin/indiserver -v indi_weatherradio >> /tmp/indiserver.log

You could look at /tmp/indiserver.log to see what it says. If it is not too large you could post it or a link to it.

Are you using an Arduino? or a Wemos? See problems with crashes above when using a small memory device with many
sensors.

How many sensors are you running?

My box kept on dying because of dew and wetness, the dampest sensors were getting very crusty due to
electrolysis. I could rescue some of them by cleaning with alcohol and I have tried to preserve my next batch
by covering the contacts with clear nail polish.

It would sometimes run for a week or so, then stop working and I would go out and dry it out to revive it.

Could be a hardware problem or a software problem.



Hope you get it fixed.

Adrian
3 months 3 weeks ago #66292
Attachments:

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

  • Posts: 173
  • Thank you received: 3
hello

You could look at /tmp/indiserver.log to see what it says. If it is not too large you could post it or a link to it.

I can't find the file in "tmp".

Are you using an Arduino? or a Wemos? See problems with crashes above when using a small memory device with many
sensors.


I have a Arduino

How many sensors are you running?


BME280
MLX
TSL2591
3 months 3 weeks ago #66300

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

  • Posts: 89
  • Thank you received: 16
Regarding the tmp file
=================

If the file is not in /tmp the two main possibilites are
- you did not send it there when you started indiserver
- or the box where the indiserver was running has rebooted and /tmp has been emptied

I see that from your post above you are referring to the .service file
This is usually /etc/systemd/system/indi-weatherradio.service
I suppose this is where you are running indiserver from, this file will be run
at each system boot, if the service is enabled with

$ sudo systemctl enable indi-weatherradio.service
Or the service can be manually started with
$ sudo systemctl start indi-weatherradio.service

The indiserver can also be started in other ways
- from the terminal
- by another application (eg. kstars)
[Unit]
Description=INDI server for weather radio
Wants=network-online.target
After=network-online.target
 
[Service]
Type=simple
User=root
ExecStart=/usr/bin/indiserver -v indi_weatherradio
 
[Install]
WantedBy=multi-user.target

You can stop the service and edit this file to change the start line to
ExecStart=/usr/bin/indiserver -v indi_weatherradio >> /tmp/weatherradio_output.txt

Not the >> which sends the output of indiserver to the file.

Then start the service as you usually do.
afa@NAFABox:~$ sudo systemctl start indi-weatherradio.service

You can check whats in the output by typing in a terminal
afa@NAFABox:~$ tail -f /tmp/weatherradio_output.txt

There you will see the output and later on you can copy it to wherever you wish.

Regarding the sensors and Arduino
===========================
I had no trouble with crashes with the three sensors you are using on an Arduino Uno and an Arduino Nano,
but when I added more the memory was not sufficient and I got crashes quickly. There are many different models
of Arduino.

Crashing troublshooting
==================
If your indiserver crashes and your computer is attached to the arduino with a usb cable you can use the serial
monitor for the Arduino IDE (or minicom etc) to see if you can talk to the arduino.

You can try the v and w commands and see if you get something back.
v will give the version of the firmware
w will print out the sensors with their readings

If you can't talk with the arduino then there may be a problem with the arduino or the hardware,
damp and wetness was my problem.
If you can talk to the arduino and indiserver is crashing then there is some other problem, most likely.

My Uno ran with these three sensors for a long time before I had problems with damp and wetness.

Is it a good idea to look at the arduino and the sensors to make sure they are not wet!
3 months 3 weeks ago #66308

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

  • Posts: 173
  • Thank you received: 3
hello
so here are my commands that I use to launch the service or to control it :
sudo service indi-weatherradio start
sudo service indi-weatherradio stop
sudo service indi-weatherradio status

so I have to do otherwise to launch the service?
what would be the commands to do in order to have a fair launch with a log in case of problem?

Best regards
Christophe
Last edit: 3 months 3 weeks ago by constant1462.
3 months 3 weeks ago #66320

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

  • Posts: 173
  • Thank you received: 3
duplicate of the previous message
Last edit: 3 months 3 weeks ago by constant1462.
3 months 3 weeks ago #66323

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

  • Posts: 89
  • Thank you received: 16
You launch the indi weatherradio service with the start command as you say.
You can also use a different syntax which gives the same result

e.g.
sudo systemctl stop indi-weatherradio.service
etc.

What you are typing is fine for controlling the service, you can use other methods but you only need one.

You need to get the output of the indiserver into a file to record what is happing in case of a crash.
To do this you need to edit the service script to redirect the output to a file.

First stop the service
Use a text editor to edit the service file /etc/systemd/system/indi-weatherradio.service

Change the exec start command from
ExecStart=/usr/bin/indiserver -v indi_weatherradio
to
ExecStart=/usr/bin/indiserver -v indi_weatherradio >> /tmp/weatherradio_output.txt

Now restart the service.
You can check if it is running with the status command (or ps aux | grep indiserver)

Now if the server crashes the log will be in /tmp/weatherradio_output.txt. You can look at that for any clues.

When you don't want the log anymore you can change the service file back to the original one.
3 months 3 weeks ago #66373

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

  • Posts: 173
  • Thank you received: 3
Hello
So how do I edit the file, because there's nothing I can do about it?
3 months 2 weeks ago #66440

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

Time to create page: 0.871 seconds