did you consider a resistor heating for freezing protection for the sensor?
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.
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
Description=INDI server for weatherradio,domescripting_ gw,watchdog
When I add two more lines for the other drivers I receive an error message.
I really would appreciate any hint.
best regards Gunter
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
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.
sorry for my intense asking. Ofcourse I will wait till you get home. Meanwhile I continue to experiment because I have already vacations.
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
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:
# Open shutter script for INDI Dome Scripting Gateway
# Arguments: none
# Exit code: 0 for success, 1 for failure
coordinates = open('/tmp/indi-status', 'r')
str = coordinates.readline()
str = str + ' 1 ' + str[4:]
coordinates = open('/tmp/indi-status', 'w')
I can not see the interaction between both scripts? Shall I integrate "my script" into "open.py" script????
Sorry for the stupid question.