Gunter replied to the topic 'Rain sensor' in the forum. 3 weeks ago

Hi there,

just for the records, there is another GitHub project by hdiessner.


github.com/hdiessner/Allskycam-heating

Read More...

Gunter replied to the topic 'Rain sensor' in the forum. 3 weeks ago

Hi Mark,

did you consider a resistor heating for freezing protection for the sensor?

bye Gunter

Read More...

Gunter replied to the topic 'running two servers and one client' in the forum. 4 weeks ago

Hi Jon,

thank you for your ideas. I also thought about chaining but was not so sure if it works well. Please see this, indilib.org/support/tutorials/159-indi-on-multiple-devices.html
is that what you are talking about? Is it necassary to run on both RPi's Kstarts, Ekos etc? And how important is it have ssh running flawlessly?
It works on my mashines but not to 100% reliable. Could you provide please the startup script?
Also interesting is the direkt Ethernet idea. You menshion the cross over cable. In the docs I only find regular LAN cables but plugged direct from Pi to Laptop or so.

Have a great New Years Eve.

Gunter

Read More...

Gunter created a new topic ' running two servers and one client' in the forum. 4 weeks ago

Hey guys,

I have an unresolved issue with my Stellarmate clients and servers. Please find a slide attached in order to help to explain what my goals and issues are.
First of all the goal:
I would like to create a robotic observatory. So far so good.
I use to control the devices one RPi4B named RPI41w. All the physical devices are plugged in there. In addition to that I startup indi_watchdog, indi_Weatherradio and indi_Skysafary as non physical devices on RPI41w. The major job of the other RPi4B, called "allsky" is to run and process allsky camera (github.com/thomasjacquin/allsky). In addition to that have connected a NodeMCU 8266 (wireless minicontroller (192.168.178.75) powered by a USB connection) to "allsky". The minicontroller collects weather, cloud and SQM data (indi_duino 3rd-party driver by Sterne-Jaeger: github.com/indilib/indi-3rdparty/tree/master/indi-duino). That works fine and reports those data into the indi driver and they show up in the indi-panel of the Kstars client "Astrolin".
Now here is the problem. I do not run kstars, ekos etc on allsky. I start "indiserver -v indi_dome_script as a systemd/systemctl in a unit script.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pi@allsky:/etc/systemd/system $ cat indi-dome_script.service
[Unit]
Description=INDI server for weatherradio,domescripting_ gw,watchdog
Wants=network-online.target After=network-online.target

[Service]
Type=simple User=root

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
When I add two more lines for the other drivers I receive an error message.
I really would appreciate any hint.

best regards Gunter

File Attachment:

File Name: myClientServerArchitecture.pdf
File Size: 272 KB

ExecStart=/usr/bin/indiserver -vv indi_script_dome

[Install]
WantedBy=multi-user.target

In order to reduce load from "RPI41w" indiserver I would rather like to transfer two more indi-drivers to "allsky" but I don't find a common way to do so.
I'm talking about "indi_weatherradio" and "indi_watchdog" I tried to

Read More...

Hi Gilles,

I hope you had a nice and peaceful Christmas and you stay well.
I have studied you roof scripts with this USB relais. It is quite straight forward and I can understand it quite easily. Only thing I could not understand is how did you connect the limit switches ot the relais or to a Pi? In your unpark.py script is a comment about a Pin 2 connection but seems to be controlled by the relais driver.
I ordered 4 limit switches and a electronic lock to keep the roof tide and secured against gusts and rain. I try to incorporate this into the unpark and park scripts.

Have a good New Years Eve.

best regards Gunter

Read More...

Hi Gilles,

how is Christmas in Canada? Do you have snow and cold temperatures? It’s kinda rare here over in Germany.
Since days we have rain and temps about 2 to 12 C. No white Christmas.
I used to live, about 20 yr ago in Louisiana for 4 years. And a colleague of mine had the same name as you Gagnon. But Steve with his first name.
I will study your scripts. Thanks again.
But one last question, do you automatically control the roof movements with the EKOS driver buttons, do you know what I mean?

Have a good day, we go to bed now.

Gunter

Read More...

Hi Gilles,

sorry for my intense asking. Ofcourse I will wait till you get home. Meanwhile I continue to experiment because I have already vacations.

thanks Gunter

Read More...

I tried to use the scripting tool but again, I don't know how to connect the local python script with the Dome Scripting driver.

let me explain:
this would be my script in order to switch the GPIO Pin on the RPi 4B:


import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM) # GPIO number

RELAIS_1_GPIO = 17
GPIO.setup(RELAIS_1_GPIO, GPIO.OUT) # GPIO Mode


GPIO.output(RELAIS_1_GPIO, GPIO.HIGH) # on, opens the roof

wait(20000) # wait 20s to be sure it is completely open
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The "open.py" script is like:

#!/usr/bin/python
#
# Open shutter script for INDI Dome Scripting Gateway
#
# Arguments: none
# Exit code: 0 for success, 1 for failure
#

import sys

coordinates = open('/tmp/indi-status', 'r')
str = coordinates.readline()
coordinates.close()
str = str[0] + ' 1 ' + str[4:]
coordinates = open('/tmp/indi-status', 'w')
coordinates.truncate()
coordinates.write(str)
coordinates.close()

sys.exit(0)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I can not see the interaction between both scripts? Shall I integrate "my script" into "open.py" script????

Sorry for the stupid question.

Gunter

Read More...

Hi Giles,

I found the INDI "Dome Scripting Gateway" but there is a folder and files missing /usr/share/indi/scripts/connect.py. Did you created this "connect.py"?

Read More...