aaronwmorris / indi-allsky

Software to manage a Linux-based All Sky Camera.
GNU General Public License v3.0
250 stars 41 forks source link

Pi 5 "Sensor worker exception: RuntimeError: Cannot determine SOC peripheral base address" #1461

Closed bendenajones closed 1 month ago

bendenajones commented 3 months ago

I had gpio working with "AllSky"; decided to check out "Indi-Allsky" and am getting the following error (I have a dew heater and fan devices installed and setup; I re-ran setup script to make sure gpio support was installed and it is; gpiozero):

2024-08-15T22:06:42.396616-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: 2024-08-15T22:06:42.396575-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: RuntimeError: Cannot determine SOC peripheral base address 2024-08-15T22:06:42.396541-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: GPIO.setup(self.id, GPIO.IN) 2024-08-15T22:06:42.396506-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: File "/home/matt/indi-allsky/virtualenv/indi-allsky/lib/python3.11/site-packages/adafruit_blinka/microcontroller/bcm283x/pin.py", line 40, in init 2024-08-15T22:06:42.396474-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: self._pin.init(mode=Pin.IN) 2024-08-15T22:06:42.396439-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: File "/home/matt/indi-allsky/virtualenv/indi-allsky/lib/python3.11/site-packages/digitalio.py", line 223, in direction 2024-08-15T22:06:42.396407-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: ^^^^^^^^^^^^^^ 2024-08-15T22:06:42.396373-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: self.direction = Direction.INPUT 2024-08-15T22:06:42.396337-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: File "/home/matt/indi-allsky/virtualenv/indi-allsky/lib/python3.11/site-packages/digitalio.py", line 193, in init 2024-08-15T22:06:42.396306-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-08-15T22:06:42.396271-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: self.pin = digitalio.DigitalInOut(pin1) 2024-08-15T22:06:42.396234-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: File "/home/matt/indi-allsky/indi_allsky/devices/generic/gpioStandard.py", line 25, in init 2024-08-15T22:06:42.396197-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2024-08-15T22:06:42.396160-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: self.gpio = a_gpio_class(self.config, pin_1_name=a_gpio_pin_1, invert_output=a_gpio_invert_output) 2024-08-15T22:06:42.396126-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: File "/home/matt/indi-allsky/indi_allsky/sensor.py", line 207, in init_gpio 2024-08-15T22:06:42.396089-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: self.init_gpio() 2024-08-15T22:06:42.396055-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: File "/home/matt/indi-allsky/indi_allsky/sensor.py", line 110, in saferun 2024-08-15T22:06:42.396017-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: self.saferun() 2024-08-15T22:06:42.395971-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: File "/home/matt/indi-allsky/indi_allsky/sensor.py", line 96, in run 2024-08-15T22:06:42.395808-07:00 AllSky [ERROR] MainProcess-5186/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: Traceback (most recent call last):

bendenajones commented 3 months ago

Support Info: /home/matt/indi-allsky/misc/support_info.sh: line 62: warning: command substitution: ignored null byte in input #################################

indi-allsky support info

#################################


Distribution: debian
Release: 12
Arch: aarch64
Bits: 64

CPUs: 4
Memory: 4142224 kB

System: Raspberry Pi 5 Model B Rev 1.0

Linux AllSky 6.6.31+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux

Time
Thu Aug 15 10:10:14 PM PDT 2024

System timezone
US/Pacific

Uptime
 22:10:14 up 29 min,  3 users,  load average: 0.41, 0.50, 0.38

Memory
               total        used        free      shared  buff/cache   available
Mem:         4142224     1230400     1160400       23040     1841184     2911824
Swap:        1048560           0     1048560

Filesystems
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             1896144        0   1896144   0% /dev
tmpfs             414224     6288    407936   2% /run
/dev/mmcblk0p2  60846312 14327344  43408272  25% /
tmpfs            2071104      944   2070160   1% /dev/shm
tmpfs               5120       48      5072   1% /run/lock
tmpfs              76800        0     76800   0% /home/matt/allsky/tmp
/dev/mmcblk0p1    522230    76426    445804  15% /boot/firmware
tmpfs             414208      160    414048   1% /run/user/1000

sysctl info
vm.swappiness = 60

Thermal info
cpu-thermal
49050

system python: Python 3.11.2

indiserver: /usr/local/bin/indiserver

IP Info
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 2c:cf:67:03:5e:cc brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 2c:cf:67:03:5e:cd brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.6/24 brd 192.168.0.255 scope global dynamic noprefixroute wlan0
       valid_lft 84640sec preferred_lft 84640sec
    inet6 fe80::b2ed:e7c8:618b:7f33/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

User info
uid=1000(matt) gid=1000(matt) groups=1000(matt),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),33(www-data),44(video),46(plugdev),60(games),100(users),102(input),105(render),106(netdev),115(lpadmin),993(gpio),994(i2c),995(spi),999(systemd-journal)

Process info
matt        1184  0.0  0.0   9824  2560 ?        Ss   21:40   0:00 /usr/local/bin/indiserver -p 7624 indi_simulator_telescope indi_simulator_ccd
matt        1204  0.0  0.2  41968 11776 ?        S    21:40   0:00 indi_simulator_telescope
matt        1205  0.0  0.2 124080 12288 ?        Sl   21:40   0:00 indi_simulator_ccd
matt        2179  0.0  0.5  33856 23552 ?        SNs  21:42   0:00 /home/matt/indi-allsky/virtualenv/indi-allsky/bin/python3 /home/matt/indi-allsky/virtualenv/indi-allsky/bin/gunicorn --config /etc/indi-allsky/gunicorn.conf.py indi_allsky.wsgi
matt        4889  0.6  5.4 899888 226560 ?       SNl  22:03   0:02 /home/matt/indi-allsky/virtualenv/indi-allsky/bin/python3 /home/matt/indi-allsky/virtualenv/indi-allsky/bin/gunicorn --config /etc/indi-allsky/gunicorn.conf.py indi_allsky.wsgi
matt        5186  0.4  3.3 731648 137024 ?       SNsl 22:03   0:01 /home/matt/indi-allsky/virtualenv/indi-allsky/bin/python3 allsky.py --log syslog run
matt        5190  0.0  2.2 502448 94432 ?        Sl   22:03   0:00 /home/matt/indi-allsky/virtualenv/indi-allsky/bin/python3 allsky.py --log syslog run
matt        5192  9.6  5.1 914272 213104 ?       Sl   22:03   0:36 /home/matt/indi-allsky/virtualenv/indi-allsky/bin/python3 allsky.py --log syslog run
matt        5193  0.2  2.8 395072 118512 ?       SN   22:03   0:00 /home/matt/indi-allsky/virtualenv/indi-allsky/bin/python3 allsky.py --log syslog run
matt        5447  0.0  0.0   7072  2560 ?        SN   22:10   0:00 /bin/bash /home/matt/indi-allsky/misc/support_info.sh

Check for virtual sessions

USB info
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

USB Permissions
      133      0 drwxr-xr-x   6 root     root          120 Aug 15 21:40 /dev/bus/usb
      134      0 drwxr-xr-x   2 root     root           60 Aug 15 21:40 /dev/bus/usb/001
      135      0 crw-rw-r--   1 root     root     189,   0 Aug 15 21:40 /dev/bus/usb/001/001
      136      0 drwxr-xr-x   2 root     root           60 Aug 15 21:40 /dev/bus/usb/002
      137      0 crw-rw-r--   1 root     root     189, 128 Aug 15 21:40 /dev/bus/usb/002/001
      138      0 drwxr-xr-x   2 root     root           60 Aug 15 21:40 /dev/bus/usb/003
      139      0 crw-rw-r--   1 root     root     189, 256 Aug 15 21:40 /dev/bus/usb/003/001
      140      0 drwxr-xr-x   2 root     root           60 Aug 15 21:40 /dev/bus/usb/004
      141      0 crw-rw-r--   1 root     root     189, 384 Aug 15 21:40 /dev/bus/usb/004/001

video device Permissions
crw-rw----+ 1 root video 81, 19 Aug 15 21:40 /dev/video0
crw-rw----+ 1 root video 81, 20 Aug 15 21:40 /dev/video1
crw-rw----+ 1 root video 81, 18 Aug 15 21:40 /dev/video19
crw-rw----+ 1 root video 81, 21 Aug 15 21:40 /dev/video2
crw-rw----+ 1 root video 81,  0 Aug 15 21:40 /dev/video20
crw-rw----+ 1 root video 81,  1 Aug 15 21:40 /dev/video21
crw-rw----+ 1 root video 81,  2 Aug 15 21:40 /dev/video22
crw-rw----+ 1 root video 81,  3 Aug 15 21:40 /dev/video23
crw-rw----+ 1 root video 81,  4 Aug 15 21:40 /dev/video24
crw-rw----+ 1 root video 81,  5 Aug 15 21:40 /dev/video25
crw-rw----+ 1 root video 81,  6 Aug 15 21:40 /dev/video26
crw-rw----+ 1 root video 81,  7 Aug 15 21:40 /dev/video27
crw-rw----+ 1 root video 81,  8 Aug 15 21:40 /dev/video28
crw-rw----+ 1 root video 81,  9 Aug 15 21:40 /dev/video29
crw-rw----+ 1 root video 81, 22 Aug 15 21:40 /dev/video3
crw-rw----+ 1 root video 81, 10 Aug 15 21:40 /dev/video30
crw-rw----+ 1 root video 81, 11 Aug 15 21:40 /dev/video31
crw-rw----+ 1 root video 81, 12 Aug 15 21:40 /dev/video32
crw-rw----+ 1 root video 81, 13 Aug 15 21:40 /dev/video33
crw-rw----+ 1 root video 81, 14 Aug 15 21:40 /dev/video34
crw-rw----+ 1 root video 81, 15 Aug 15 21:40 /dev/video35
crw-rw----+ 1 root video 81, 16 Aug 15 21:40 /dev/video36
crw-rw----+ 1 root video 81, 17 Aug 15 21:40 /dev/video37
crw-rw----+ 1 root video 81, 23 Aug 15 21:40 /dev/video4
crw-rw----+ 1 root video 81, 24 Aug 15 21:40 /dev/video5
crw-rw----+ 1 root video 81, 25 Aug 15 21:40 /dev/video6
crw-rw----+ 1 root video 81, 26 Aug 15 21:40 /dev/video7

v4l info
pispbe (platform:1000880000.pisp_be):
    /dev/video20
    /dev/video21
    /dev/video22
    /dev/video23
    /dev/video24
    /dev/video25
    /dev/video26
    /dev/video27
    /dev/video28
    /dev/video29
    /dev/video30
    /dev/video31
    /dev/video32
    /dev/video33
    /dev/video34
    /dev/video35
    /dev/video36
    /dev/video37
    /dev/media1
    /dev/media2

rp1-cfe (platform:1f00110000.csi):
    /dev/video0
    /dev/video1
    /dev/video2
    /dev/video3
    /dev/video4
    /dev/video5
    /dev/video6
    /dev/video7
    /dev/media0

rpivid (platform:rpivid):
    /dev/video19
    /dev/media3

Module info
Module                  Size  Used by
tcp_diag               49152  0
inet_diag              49152  1 tcp_diag
rfcomm                 81920  4
snd_seq_dummy          49152  0
snd_hrtimer            49152  1
snd_seq                98304  7 snd_seq_dummy
snd_seq_device         49152  1 snd_seq
algif_hash             49152  1
algif_skcipher         49152  1
af_alg                 49152  6 algif_hash,algif_skcipher
bnep                   49152  2
binfmt_misc            49152  1
brcmfmac_wcc           49152  0
hci_uart               65536  0
aes_ce_blk             49152  4
imx477                 49152  4
btbcm                  49152  1 hci_uart
aes_ce_cipher          49152  1 aes_ce_blk
ghash_ce               49152  0
brcmfmac              360448  1 brcmfmac_wcc
bluetooth             622592  33 hci_uart,btbcm,bnep,rfcomm
rpivid_hevc            65536  0
gf128mul               49152  1 ghash_ce
brcmutil               49152  1 brcmfmac
sha2_ce                49152  0
rp1_cfe                65536  30
pisp_be                49152  27
sha256_arm64           49152  1 sha2_ce
cfg80211             1032192  1 brcmfmac
sha1_ce                49152  0
v4l2_mem2mem           65536  1 rpivid_hevc
v4l2_fwnode            49152  2 rp1_cfe,imx477
ecdh_generic           49152  2 bluetooth
v4l2_async             49152  3 v4l2_fwnode,rp1_cfe,imx477
videobuf2_dma_contig    49152  50 pisp_be,rp1_cfe,rpivid_hevc
ecc                    65536  1 ecdh_generic
libaes                 49152  4 aes_ce_cipher,bluetooth,ghash_ce,aes_ce_blk
videobuf2_memops       49152  1 videobuf2_dma_contig
raspberrypi_hwmon      49152  0
videobuf2_v4l2         49152  4 pisp_be,rp1_cfe,rpivid_hevc,v4l2_mem2mem
rfkill                 49152  6 bluetooth,cfg80211
videodev              344064  53 v4l2_async,v4l2_fwnode,pisp_be,videobuf2_v4l2,rp1_cfe,imx477,rpivid_hevc,v4l2_mem2mem
videobuf2_common       98304  7 pisp_be,videobuf2_dma_contig,videobuf2_v4l2,rp1_cfe,rpivid_hevc,v4l2_mem2mem,videobuf2_memops
pwm_fan                49152  0
mc                     81920  15 v4l2_async,videodev,pisp_be,videobuf2_v4l2,rp1_cfe,imx477,videobuf2_common,rpivid_hevc,v4l2_mem2mem
rp1_adc                49152  0
raspberrypi_gpiomem    49152  0
nvmem_rmem             49152  0
uio_pdrv_genirq        49152  0
uio                    49152  1 uio_pdrv_genirq
i2c_dev                49152  0
fuse                  147456  5
dm_mod                163840  0
ip_tables              65536  0
x_tables               81920  1 ip_tables
ipv6                  589824  56
spidev                 49152  0
vc4                   409600  10
snd_soc_hdmi_codec     49152  2
drm_display_helper     49152  1 vc4
cec                    65536  1 vc4
drm_dma_helper         49152  2 vc4
drm_kms_helper        262144  2 drm_dma_helper,vc4
i2c_brcmstb            49152  0
spi_bcm2835            49152  0
gpio_keys              49152  0
snd_soc_core          327680  2 vc4,snd_soc_hdmi_codec
v3d                   114688  4
gpu_sched              98304  1 v3d
snd_compress           49152  1 snd_soc_core
drm_shmem_helper       49152  1 v3d
spi_dw_mmio            49152  0
snd_pcm_dmaengine      49152  1 snd_soc_core
snd_pcm               163840  4 snd_soc_hdmi_codec,snd_compress,snd_soc_core,snd_pcm_dmaengine
i2c_designware_platform    49152  0
snd_timer              65536  3 snd_seq,snd_hrtimer,snd_pcm
i2c_designware_core    49152  1 i2c_designware_platform
drm                   720896  17 gpu_sched,drm_kms_helper,drm_dma_helper,v3d,vc4,drm_shmem_helper,drm_display_helper
spi_dw                 49152  1 spi_dw_mmio
drm_panel_orientation_quirks    49152  1 drm
snd                   147456  9 snd_seq,snd_seq_device,snd_soc_hdmi_codec,snd_timer,snd_compress,snd_soc_core,snd_pcm
backlight              49152  2 drm_kms_helper,drm

git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean

git log
commit 398e2cf40d5b48cfecae69bcffaecc3cbfa412f9
Merge: 53bfc2a9 9c1f0b7b
Author: Aaron W Morris <aaron@aarmor.net>
Date:   Wed Aug 14 20:53:38 2024 -0500

    Merge pull request #1458 from aaronwmorris/dev

    Add force IPv4 and IPv6 settings for file transfers

indi version: 2.0.9

indi packages

indi connections
LISTEN    0      5                   0.0.0.0:7624                 0.0.0.0:*           
ESTAB     0      0                 127.0.0.1:57664              127.0.0.1:7624        
ESTAB     0      0                 127.0.0.1:7624               127.0.0.1:57664       

Detected indi properties
looking for *.*.*
Connected to localhost on port 7624
Queried properties from *
CCD Simulator.CCD_SIMULATE_CRASH is write-only
CCD Simulator.CCD_SIMULATE_CRASH is write-only
Telescope Simulator.MOUNT_TYPE is write-only
Telescope Simulator.SIM_PIER_SIDE is write-only
Telescope Simulator.MOUNT_MODEL is write-only
Telescope Simulator.FLIP_HA is write-only
Telescope Simulator.MOUNT_TYPE is write-only
Telescope Simulator.SIM_PIER_SIDE is write-only
Telescope Simulator.MOUNT_MODEL is write-only
Telescope Simulator.FLIP_HA is write-only
CCD Simulator.CONNECTION.CONNECT=Off
CCD Simulator.CONNECTION.DISCONNECT=On
CCD Simulator.DRIVER_INFO.DRIVER_NAME=CCD Simulator
CCD Simulator.DRIVER_INFO.DRIVER_EXEC=indi_simulator_ccd
CCD Simulator.DRIVER_INFO.DRIVER_VERSION=1.0
CCD Simulator.DRIVER_INFO.DRIVER_INTERFACE=22
CCD Simulator.POLLING_PERIOD.PERIOD_MS=1000
CCD Simulator.DEBUG.ENABLE=Off
CCD Simulator.DEBUG.DISABLE=On
CCD Simulator.CONFIG_PROCESS.CONFIG_LOAD=Off
CCD Simulator.CONFIG_PROCESS.CONFIG_SAVE=Off
CCD Simulator.CONFIG_PROCESS.CONFIG_DEFAULT=Off
CCD Simulator.CONFIG_PROCESS.CONFIG_PURGE=Off
CCD Simulator.ACTIVE_DEVICES.ACTIVE_TELESCOPE=Telescope Simulator
CCD Simulator.ACTIVE_DEVICES.ACTIVE_ROTATOR=Rotator Simulator
CCD Simulator.ACTIVE_DEVICES.ACTIVE_FOCUSER=Focuser Simulator
CCD Simulator.ACTIVE_DEVICES.ACTIVE_FILTER=CCD Simulator
CCD Simulator.ACTIVE_DEVICES.ACTIVE_SKYQUALITY=SQM
CCD Simulator.SIMULATOR_SETTINGS.SIM_XRES=1280
CCD Simulator.SIMULATOR_SETTINGS.SIM_YRES=1024
CCD Simulator.SIMULATOR_SETTINGS.SIM_XSIZE=5.2000000000000001776
CCD Simulator.SIMULATOR_SETTINGS.SIM_YSIZE=5.2000000000000001776
CCD Simulator.SIMULATOR_SETTINGS.SIM_MAXVAL=65000
CCD Simulator.SIMULATOR_SETTINGS.SIM_SATURATION=1
CCD Simulator.SIMULATOR_SETTINGS.SIM_LIMITINGMAG=17
CCD Simulator.SIMULATOR_SETTINGS.SIM_NOISE=10
CCD Simulator.SIMULATOR_SETTINGS.SIM_SKYGLOW=19.5
CCD Simulator.SIMULATOR_SETTINGS.SIM_OAGOFFSET=0
CCD Simulator.SIMULATOR_SETTINGS.SIM_POLAR=0
CCD Simulator.SIMULATOR_SETTINGS.SIM_POLARDRIFT=0
CCD Simulator.SIMULATOR_SETTINGS.SIM_PEPERIOD=0
CCD Simulator.SIMULATOR_SETTINGS.SIM_PEMAX=0
CCD Simulator.SIMULATOR_SETTINGS.SIM_TIME_FACTOR=1
CCD Simulator.SIMULATOR_SETTINGS.SIM_ROTATION=0
CCD Simulator.EQUATORIAL_PE.RA_PE=0
CCD Simulator.EQUATORIAL_PE.DEC_PE=0
CCD Simulator.SIM_FOCUSING.SIM_FOCUS_POSITION=36700
CCD Simulator.SIM_FOCUSING.SIM_FOCUS_MAX=100000
CCD Simulator.SIM_FOCUSING.SIM_SEEING=3.5
CCD Simulator.SIMULATE_BAYER.INDI_ENABLED=Off
CCD Simulator.SIMULATE_BAYER.INDI_DISABLED=On
CCD Simulator.ACTIVE_DEVICES.ACTIVE_TELESCOPE=Telescope Simulator
CCD Simulator.ACTIVE_DEVICES.ACTIVE_ROTATOR=Rotator Simulator
CCD Simulator.ACTIVE_DEVICES.ACTIVE_FOCUSER=Focuser Simulator
CCD Simulator.ACTIVE_DEVICES.ACTIVE_FILTER=CCD Simulator
CCD Simulator.ACTIVE_DEVICES.ACTIVE_SKYQUALITY=SQM
CCD Simulator.SIMULATOR_SETTINGS.SIM_XRES=1280
CCD Simulator.SIMULATOR_SETTINGS.SIM_YRES=1024
CCD Simulator.SIMULATOR_SETTINGS.SIM_XSIZE=5.2000000000000001776
CCD Simulator.SIMULATOR_SETTINGS.SIM_YSIZE=5.2000000000000001776
CCD Simulator.SIMULATOR_SETTINGS.SIM_MAXVAL=65000
CCD Simulator.SIMULATOR_SETTINGS.SIM_SATURATION=1
CCD Simulator.SIMULATOR_SETTINGS.SIM_LIMITINGMAG=17
CCD Simulator.SIMULATOR_SETTINGS.SIM_NOISE=10
CCD Simulator.SIMULATOR_SETTINGS.SIM_SKYGLOW=19.5
CCD Simulator.SIMULATOR_SETTINGS.SIM_OAGOFFSET=0
CCD Simulator.SIMULATOR_SETTINGS.SIM_POLAR=0
CCD Simulator.SIMULATOR_SETTINGS.SIM_POLARDRIFT=0
CCD Simulator.SIMULATOR_SETTINGS.SIM_PEPERIOD=0
CCD Simulator.SIMULATOR_SETTINGS.SIM_PEMAX=0
CCD Simulator.SIMULATOR_SETTINGS.SIM_TIME_FACTOR=1
CCD Simulator.SIMULATOR_SETTINGS.SIM_ROTATION=0
CCD Simulator.EQUATORIAL_PE.RA_PE=0
CCD Simulator.EQUATORIAL_PE.DEC_PE=0
CCD Simulator.SIM_FOCUSING.SIM_FOCUS_POSITION=36700
CCD Simulator.SIM_FOCUSING.SIM_FOCUS_MAX=100000
CCD Simulator.SIM_FOCUSING.SIM_SEEING=3.5
CCD Simulator.SIMULATE_BAYER.INDI_ENABLED=Off
CCD Simulator.SIMULATE_BAYER.INDI_DISABLED=On
Telescope Simulator.CONNECTION.CONNECT=On
Telescope Simulator.CONNECTION.DISCONNECT=Off
Telescope Simulator.DRIVER_INFO.DRIVER_NAME=Telescope Simulator
Telescope Simulator.DRIVER_INFO.DRIVER_EXEC=indi_simulator_telescope
Telescope Simulator.DRIVER_INFO.DRIVER_VERSION=1.0
Telescope Simulator.DRIVER_INFO.DRIVER_INTERFACE=5
Telescope Simulator.POLLING_PERIOD.PERIOD_MS=250
Telescope Simulator.DEBUG.ENABLE=Off
Telescope Simulator.DEBUG.DISABLE=On
Telescope Simulator.CONFIG_PROCESS.CONFIG_LOAD=Off
Telescope Simulator.CONFIG_PROCESS.CONFIG_SAVE=Off
Telescope Simulator.CONFIG_PROCESS.CONFIG_DEFAULT=Off
Telescope Simulator.CONFIG_PROCESS.CONFIG_PURGE=Off
Telescope Simulator.CONNECTION_MODE.CONNECTION_SERIAL=On
Telescope Simulator.CONNECTION_MODE.CONNECTION_TCP=Off
Telescope Simulator.DEVICE_PORT.PORT=/dev/ttyUSB0
Telescope Simulator.DEVICE_BAUD_RATE.9600=On
Telescope Simulator.DEVICE_BAUD_RATE.19200=Off
Telescope Simulator.DEVICE_BAUD_RATE.38400=Off
Telescope Simulator.DEVICE_BAUD_RATE.57600=Off
Telescope Simulator.DEVICE_BAUD_RATE.115200=Off
Telescope Simulator.DEVICE_BAUD_RATE.230400=Off
Telescope Simulator.DEVICE_AUTO_SEARCH.INDI_ENABLED=On
Telescope Simulator.DEVICE_AUTO_SEARCH.INDI_DISABLED=Off
Telescope Simulator.DEVICE_PORT_SCAN.Scan Ports=Off
Telescope Simulator.ACTIVE_DEVICES.ACTIVE_GPS=GPS Simulator
Telescope Simulator.ACTIVE_DEVICES.ACTIVE_DOME=Dome Simulator
Telescope Simulator.DOME_POLICY.DOME_IGNORED=On
Telescope Simulator.DOME_POLICY.DOME_LOCKS=Off
Telescope Simulator.MOUNT_AXES.PRIMARY=1.8322374671697616577e-05
Telescope Simulator.MOUNT_AXES.SECONDARY=33.000000000000007105
Telescope Simulator.ON_COORD_SET.TRACK=On
Telescope Simulator.ON_COORD_SET.SLEW=Off
Telescope Simulator.ON_COORD_SET.SYNC=Off
Telescope Simulator.EQUATORIAL_EOD_COORD.RA=19.0435348075065356
Telescope Simulator.EQUATORIAL_EOD_COORD.DEC=33
Telescope Simulator.TELESCOPE_ABORT_MOTION.ABORT=Off
Telescope Simulator.TELESCOPE_TRACK_MODE.TRACK_SIDEREAL=On
Telescope Simulator.TELESCOPE_TRACK_MODE.TRACK_SOLAR=Off
Telescope Simulator.TELESCOPE_TRACK_MODE.TRACK_LUNAR=Off
Telescope Simulator.TELESCOPE_TRACK_MODE.TRACK_CUSTOM=Off
Telescope Simulator.TELESCOPE_TRACK_STATE.TRACK_ON=Off
Telescope Simulator.TELESCOPE_TRACK_STATE.TRACK_OFF=On
Telescope Simulator.TELESCOPE_TRACK_RATE.TRACK_RATE_RA=15.04106717867020393
Telescope Simulator.TELESCOPE_TRACK_RATE.TRACK_RATE_DE=0
.TELESCOPE_HOME.FIND=Off
.TELESCOPE_HOME.SET=Off
.TELESCOPE_HOME.GO=Off
Telescope Simulator.TELESCOPE_MOTION_NS.MOTION_NORTH=Off
Telescope Simulator.TELESCOPE_MOTION_NS.MOTION_SOUTH=Off
Telescope Simulator.TELESCOPE_MOTION_WE.MOTION_WEST=Off
Telescope Simulator.TELESCOPE_MOTION_WE.MOTION_EAST=Off
Telescope Simulator.TELESCOPE_REVERSE_MOTION.REVERSE_NS=Off
Telescope Simulator.TELESCOPE_REVERSE_MOTION.REVERSE_WE=Off
Telescope Simulator.TELESCOPE_SLEW_RATE.SLEW_GUIDE=Off
Telescope Simulator.TELESCOPE_SLEW_RATE.SLEW_CENTERING=Off
Telescope Simulator.TELESCOPE_SLEW_RATE.SLEW_FIND=Off
Telescope Simulator.TELESCOPE_SLEW_RATE.SLEW_MAX=On
Telescope Simulator.TARGET_EOD_COORD.RA=0
Telescope Simulator.TARGET_EOD_COORD.DEC=0
Telescope Simulator.TIME_UTC.UTC=2024-08-16T04:42:43
Telescope Simulator.TIME_UTC.OFFSET=-7.00
Telescope Simulator.GEOGRAPHIC_COORD.LAT=33
Telescope Simulator.GEOGRAPHIC_COORD.LONG=-117
Telescope Simulator.GEOGRAPHIC_COORD.ELEV=0
Telescope Simulator.TELESCOPE_PARK.PARK=On
Telescope Simulator.TELESCOPE_PARK.UNPARK=Off
Telescope Simulator.TELESCOPE_PARK_POSITION.PARK_HA=0
Telescope Simulator.TELESCOPE_PARK_POSITION.PARK_DEC=33
Telescope Simulator.TELESCOPE_PARK_OPTION.PARK_CURRENT=Off
Telescope Simulator.TELESCOPE_PARK_OPTION.PARK_DEFAULT=Off
Telescope Simulator.TELESCOPE_PARK_OPTION.PARK_WRITE_DATA=Off
Telescope Simulator.TELESCOPE_PARK_OPTION.PARK_PURGE_DATA=Off
Telescope Simulator.USEJOYSTICK.ENABLE=Off
Telescope Simulator.USEJOYSTICK.DISABLE=On
Telescope Simulator.SNOOP_JOYSTICK.SNOOP_JOYSTICK_DEVICE=Joystick
Telescope Simulator.TELESCOPE_TIMED_GUIDE_NS.TIMED_GUIDE_N=0
Telescope Simulator.TELESCOPE_TIMED_GUIDE_NS.TIMED_GUIDE_S=0
Telescope Simulator.TELESCOPE_TIMED_GUIDE_WE.TIMED_GUIDE_W=0
Telescope Simulator.TELESCOPE_TIMED_GUIDE_WE.TIMED_GUIDE_E=0
Telescope Simulator.GUIDE_RATE.GUIDE_RATE_WE=0.5
Telescope Simulator.GUIDE_RATE.GUIDE_RATE_NS=0.5
Telescope Simulator.ACTIVE_DEVICES.ACTIVE_GPS=GPS Simulator
Telescope Simulator.ACTIVE_DEVICES.ACTIVE_DOME=Dome Simulator
Telescope Simulator.DOME_POLICY.DOME_IGNORED=On
Telescope Simulator.DOME_POLICY.DOME_LOCKS=Off
Telescope Simulator.USEJOYSTICK.ENABLE=Off
Telescope Simulator.USEJOYSTICK.DISABLE=On
Telescope Simulator.SNOOP_JOYSTICK.SNOOP_JOYSTICK_DEVICE=Joystick
Telescope Simulator.MOUNT_AXES.PRIMARY=1.8322374671697616577e-05
Telescope Simulator.MOUNT_AXES.SECONDARY=33.000000000000007105

libcamera: not detected

libcamera packages
ii  libcamera-ipa:arm64                  0.3.0+rpt20240617-1                 arm64        complex camera support library (IPA modules)
ii  libcamera-tools                      0.3.0+rpt20240617-1                 arm64        complex camera support library (tools)
ii  libcamera0.3:arm64                   0.3.0+rpt20240617-1                 arm64        complex camera support library
ii  pipewire-libcamera:arm64             0.3.65-3+rpt8+deb12u1               arm64        PipeWire libcamera plugin
ii  python3-libcamera:arm64              0.3.0+rpt20240617-1                 arm64        complex camera support library (Python bindings)

libcamera cameras
rpicam-hello: /usr/bin/rpicam-hello
Available cameras
-----------------
0 : imx477 [4056x3040 12-bit] (/base/axi/pcie@120000/rp1/i2c@88000/imx477@1a)
    Modes: 'SBGGR10_CSI2P' : 1332x990 [30.00 fps - (65535, 65535)/65535x65535 crop]
           'SBGGR12_CSI2P' : 2028x1080 [30.00 fps - (65535, 65535)/65535x65535 crop]
                             2028x1520 [30.00 fps - (65535, 65535)/65535x65535 crop]
                             4056x3040 [30.00 fps - (65535, 65535)/65535x65535 crop]

python packages
ii  2to3                                 3.11.2-1                            all          2to3 binary using python3
ii  idle-python3.11                      3.11.2-6+deb12u2                    all          IDE for Python (v3.11) using Tkinter
ii  libpython3-dev:arm64                 3.11.2-1+b1                         arm64        header files and a static library for Python (default)
ii  libpython3-stdlib:arm64              3.11.2-1+b1                         arm64        interactive high-level object-oriented language (default python3 version)
ii  libpython3.11:arm64                  3.11.2-6+deb12u2                    arm64        Shared Python runtime library (version 3.11)
ii  libpython3.11-dev:arm64              3.11.2-6+deb12u2                    arm64        Header files and a static library for Python (v3.11)
ii  libpython3.11-minimal:arm64          3.11.2-6+deb12u2                    arm64        Minimal subset of the Python language (version 3.11)
ii  libpython3.11-stdlib:arm64           3.11.2-6+deb12u2                    arm64        Interactive high-level object-oriented language (standard library, version 3.11)
ii  libpython3.11-testsuite              3.11.2-6+deb12u2                    all          Testsuite for the Python standard library (v3.11)
ii  python-apt-common                    2.6.0                               all          Python interface to libapt-pkg (locales)
ii  python-babel-localedata              2.10.3-1                            all          tools for internationalizing Python applications - locale data files
ii  python-is-python3                    3.11.2-1+deb12u1                    all          symlinks /usr/bin/python to python3
ii  python3                              3.11.2-1+b1                         arm64        interactive high-level object-oriented language (default python3 version)
ii  python3-apt                          2.6.0                               arm64        Python 3 interface to libapt-pkg
ii  python3-asgiref                      3.6.0-1                             all          ASGI in-memory channel layer (Python3 version)
ii  python3-astroid                      2.14.2-1                            all          rebuild a new abstract syntax tree from Python's AST (Python3)
ii  python3-asttokens                    2.2.1-1                             all          annotate Python asbtract syntax trees with code references (Python 3)
ii  python3-av                           10.0.0-1+rpt4                       arm64        pythonic bindings for FFmpeg's libraries
ii  python3-babel                        2.10.3-1                            all          tools for internationalizing Python applications - Python 3.x
ii  python3-blinker                      1.5-1                               all          Fast, simple object-to-object and broadcast signaling (Python3)
ii  python3-bs4                          4.11.2-2                            all          error-tolerant HTML parser for Python 3
ii  python3-cairo:arm64                  1.20.1-5+b1                         arm64        Python3 bindings for the Cairo vector graphics library
ii  python3-certifi                      2022.9.24-1                         all          root certificates for validating SSL certs and verifying TLS hosts (python3)
ii  python3-cffi-backend:arm64           1.15.1-5+b1                         arm64        Foreign Function Interface for Python 3 calling C code - runtime
ii  python3-chardet                      5.1.0+dfsg-2                        all          Universal Character Encoding Detector (Python3)
ii  python3-charset-normalizer           3.0.1-2                             all          charset, encoding and language detection (Python 3)
ii  python3-click                        8.1.3-2                             all          Wrapper around optparse for command line utilities - Python 3.x
ii  python3-colorama                     0.4.6-2                             all          Cross-platform colored terminal text in Python - Python 3.x
ii  python3-colorzero                    2.0-2                               all          Construct, convert, and manipulate colors in a Pythonic manner.
ii  python3-cryptography                 38.0.4-3                            arm64        Python library exposing cryptographic recipes and primitives (Python 3)
ii  python3-cups:arm64                   2.0.1-5+b4                          arm64        Python3 bindings for CUPS
ii  python3-cupshelpers                  1.5.18-1                            all          Python utility modules around the CUPS printing system
ii  python3-dbus                         1.3.2-4+b1                          arm64        simple interprocess messaging system (Python 3 interface)
ii  python3-debconf                      1.5.82                              all          interact with debconf from Python 3
ii  python3-dev                          3.11.2-1+b1                         arm64        header files and a static library for Python (default)
ii  python3-dill                         0.3.6-1                             all          Serialize all of Python 3 (almost)
ii  python3-distlib                      0.3.6-1                             all          low-level components of python distutils2/packaging
ii  python3-distro                       1.8.0-1                             all          Linux OS platform information API
ii  python3-distutils                    3.11.2-3                            all          distutils package for Python 3.x
ii  python3-doc                          3.11.2-1                            all          documentation for the high-level object-oriented language Python 3
ii  python3-docutils                     0.19+dfsg-6                         all          text processing system for reStructuredText (implemented in Python 3)
ii  python3-dotenv                       0.21.0-1                            all          Get and set values in the .env file in local and production servers
ii  python3-examples                     3.11.2-1                            all          examples for the Python language (default version)
ii  python3-filelock                     3.9.0-1                             all          platform independent file locking module
ii  python3-flask                        2.2.2-3                             all          micro web framework based on Werkzeug and Jinja2 - Python 3.x
ii  python3-full                         3.11.2-1+b1                         arm64        Default Python Interpreter with complete class library
ii  python3-gdbm:arm64                   3.11.2-3                            arm64        GNU dbm database support for Python 3.x
ii  python3-gi                           3.42.2-3+b1                         arm64        Python 3 bindings for gobject-introspection libraries
ii  python3-gi-cairo                     3.42.2-3+b1                         arm64        Python 3 Cairo bindings for the GObject library
ii  python3-gpiozero                     2.0-1                               all          Simple API for controlling devices attached to a Pi's GPIO pins
ii  python3-html5lib                     1.1-3                               all          HTML parser/tokenizer based on the WHATWG HTML5 specification
ii  python3-idna                         3.3-1+deb12u1                       all          Python IDNA2008 (RFC 5891) handling (Python 3)
ii  python3-importlib-metadata           4.12.0-1                            all          library to access the metadata for a Python package - Python 3.x
ii  python3-isort                        5.6.4-1                             all          library for sorting Python imports (Python 3)
ii  python3-itsdangerous                 2.1.2-3                             all          Various helpers to pass trusted data to untrusted environment - Python 3.x
ii  python3-jedi                         0.18.2-1                            all          autocompletion tool for Python 3
ii  python3-jinja2                       3.1.2-1                             all          small but fast and easy to use stand-alone template engine
ii  python3-jwt                          2.6.0-1                             all          Python 3 implementation of JSON Web Token
ii  python3-kms++                        0~git20231115~065257+9ae90ce-1      arm64        C++ library for kernel mode setting - python3 bindings
ii  python3-lazy-object-proxy            1.9.0-1+b1                          arm64        Python 3 fast and thorough lazy object proxy
ii  python3-lgpio                        0.2.2-1~rpt1                        arm64        Control GPIO pins via gpiochip devices - python3 bindings
ii  python3-lib2to3                      3.11.2-3                            all          Interactive high-level object-oriented language (lib2to3)
ii  python3-libcamera:arm64              0.3.0+rpt20240617-1                 arm64        complex camera support library (Python bindings)
ii  python3-libevdev                     0.5-3                               all          Python 3 wrapper for libevdev
ii  python3-libgpiod:arm64               1.6.3-1+b3                          arm64        Python bindings for libgpiod (Python 3)
ii  python3-logilab-common               1.9.8-1                             all          useful miscellaneous modules used by Logilab projects (Python3)
ii  python3-lxml:arm64                   4.9.2-1+b1                          arm64        pythonic binding for the libxml2 and libxslt libraries
ii  python3-markupsafe                   2.1.2-1+b1                          arm64        HTML/XHTML/XML string library
ii  python3-mccabe                       0.7.0-1                             all          Python code complexity checker (Python 3)
ii  python3-minimal                      3.11.2-1+b1                         arm64        minimal subset of the Python language (default python3 version)
ii  python3-more-itertools               8.10.0-2                            all          library with routines for operating on iterables, beyond itertools (Python 3)
ii  python3-mypy                         1.0.1-1                             arm64        public modules for mypy (Python 3)
ii  python3-mypy-extensions              0.4.3-4                             all          Experimental type system extensions for mypy typechecker (Python 3)
ii  python3-numpy                        1:1.24.2-1                          arm64        Fast array facility to the Python 3 language
ii  python3-oauthlib                     3.2.2-1                             all          generic, spec-compliant implementation of OAuth for Python3
ii  python3-olefile                      0.46-3                              all          Python module to read/write MS OLE2 files
ii  python3-opengl                       3.1.6+dfsg-3                        all          Python bindings to OpenGL (Python 3)
ii  python3-openssl                      23.0.0-1                            all          Python 3 wrapper around the OpenSSL library
ii  python3-parso                        0.8.3-1                             all          Python parser that supports error recovery - Python 3.X
ii  python3-pexpect                      4.8.0-4                             all          Python 3 module for automating interactive applications
ii  python3-pgzero                       1.2.post4+dfsg-2                    all          Zero-boilerplate games programming framework based on Pygame (Python 3)
ii  python3-picamera2                    0.3.19-1                            all          Libcamera based python library
ii  python3-pidng                        4.0.9-1+bookworm                    arm64        Create Adobe DNG RAW files using Python (Python 3)
ii  python3-piexif                       1.1.3-2                             all          pure-Python EXIF manipulation library
ii  python3-pigpio                       1.79-1+rpt1                         all          Python module which talks to the pigpio daemon (Python 3)
ii  python3-pil:arm64                    9.4.0-1.1+deb12u1                   arm64        Python Imaging Library (Python3)
ii  python3-pip                          23.0.1+dfsg-1+rpt1                  all          Python package installer
ii  python3-pip-whl                      23.0.1+dfsg-1+rpt1                  all          Python package installer (pip wheel)
ii  python3-pkg-resources                66.1.1-1                            all          Package Discovery and Resource Access using pkg_resources
ii  python3-platformdirs                 2.6.0-1                             all          determining appropriate platform-specific directories (Python 3)
ii  python3-prctl                        1.8.1-1+b2                          arm64        Python interface to the prctl() syscall (Python 3)
ii  python3-psutil                       5.9.4-1+b1                          arm64        module providing convenience functions for managing processes (Python3)
ii  python3-ptyprocess                   0.7.0-5                             all          Run a subprocess in a pseudo terminal from Python 3
ii  python3-pycryptodome                 3.11.0+dfsg1-4                      arm64        cryptographic Python library (Python 3)
ii  python3-pygame                       2.1.2+dfsg-5+b1                     arm64        SDL bindings for games development (Python 3)
ii  python3-pygments                     2.14.0+dfsg-1                       all          syntax highlighting package written in Python 3
ii  python3-pyinotify                    0.9.6-2                             all          simple Linux inotify Python bindings
ii  python3-pyqt5                        5.15.9+dfsg-1                       arm64        Python 3 bindings for Qt5
ii  python3-pyqt5.sip                    12.11.1-1                           arm64        runtime module for Python extensions using SIP
ii  python3-pyudev                       0.24.0-1                            all          Python3 bindings for libudev
ii  python3-renderpm:arm64               3.6.12-1+b1                         arm64        python low level render interface
ii  python3-reportlab                    3.6.12-1                            all          ReportLab library to create PDF documents using Python3
ii  python3-reportlab-accel:arm64        3.6.12-1+b1                         arm64        C coded extension accelerator for the ReportLab Toolkit
ii  python3-requests                     2.28.1+dfsg-1                       all          elegant and simple HTTP library for Python3, built for human beings
ii  python3-requests-oauthlib            1.3.0+ds-1                          all          module providing OAuthlib auth support for requests (Python 3)
ii  python3-responses                    0.18.0-1                            all          Utility library for mocking out the requests Python 3 library
ii  python3-roman                        3.3-3                               all          module for generating/analyzing Roman numerals for Python 3
ii  python3-rtimulib                     7.2.1-6+bookworm                    arm64        Versatile C++ and Python 9-dof, 10-dof and 11-dof IMU library (Python 3)
ii  python3-send2trash                   1.8.1~b0-2                          all          Python module for sending file to trash natively
ii  python3-sense-hat                    2.6.0-1                             all          Sense HAT python library (Python 3)
ii  python3-serial                       3.5-1.1                             all          pyserial - module encapsulating access for the serial port
ii  python3-setuptools                   66.1.1-1                            all          Python3 Distutils Enhancements
ii  python3-setuptools-whl               66.1.1-1                            all          Python Distutils Enhancements (wheel package)
ii  python3-simplejpeg                   1.6.6-1                             arm64        Simple package for fast JPEG encoding and decoding
ii  python3-simplejson                   3.18.3-1                            arm64        simple, fast, extensible JSON encoder/decoder for Python 3.x
ii  python3-six                          1.16.0-4                            all          Python 2 and 3 compatibility library
ii  python3-smbc                         1.0.23-2+b4                         arm64        Python 3 bindings for the Samba client library
ii  python3-smbus:arm64                  4.3-2+b3                            arm64        Python 3 bindings for Linux SMBus access through i2c-dev
ii  python3-smbus2                       0.4.2-1                             arm64        another pure Python implementation of the python-smbus package
ii  python3-soupsieve                    2.3.2-1                             all          modern CSS selector implementation for BeautifulSoup (Python 3)
ii  python3-spidev                       20200602~200721-1+bookworm          arm64        Bindings for Linux SPI access through spidev (Python 3)
ii  python3-tk:arm64                     3.11.2-3                            arm64        Tkinter - Writing Tk applications with Python 3.x
ii  python3-toml                         0.10.2-1                            all          library for Tom's Obvious, Minimal Language - Python 3.x
ii  python3-tomlkit                      0.11.7-1                            all          style-preserving TOML library for Python
ii  python3-twython                      3.8.2+dfsg-2                        all          Pure Python3 wrapper for the Twitter API
ii  python3-typeshed                     0.0~git20221107.4f381af-1           all          collection of library stubs for Python, with static types
ii  python3-typing-extensions            4.4.0-1                             all          Backported and Experimental Type Hints for Python
ii  python3-tz                           2022.7.1-4                          all          Python3 version of the Olson timezone database
ii  python3-urllib3                      1.26.12-1                           all          HTTP library with thread-safe connection pooling for Python3
ii  python3-v4l2                         0.3.4-1                             all          Python bindings for the v4l2 userspace api
ii  python3-venv                         3.11.2-1+b1                         arm64        venv module for python3 (default python3 version)
ii  python3-virtualenv                   20.17.1+ds-1                        all          Python virtual environment creator
ii  python3-webencodings                 0.5.1-5                             all          Python implementation of the WHATWG Encoding standard
ii  python3-werkzeug                     2.2.2-3                             all          collection of utilities for WSGI applications (Python 3.x)
ii  python3-wheel                        0.38.4-2                            all          built-package format for Python
ii  python3-wheel-whl                    0.38.4-2                            all          built-package format for Python (wheel wheel)
ii  python3-wrapt                        1.14.1-2+b2                         arm64        decorators, wrappers and monkey patching. - Python 3.x
ii  python3-yaml                         6.0-3+b2                            arm64        YAML parser and emitter for Python3
ii  python3-zipp                         1.0.0-6                             all          pathlib-compatible Zipfile object wrapper - Python 3.x
ii  python3.11                           3.11.2-6+deb12u2                    arm64        Interactive high-level object-oriented language (version 3.11)
ii  python3.11-dev                       3.11.2-6+deb12u2                    arm64        Header files and a static library for Python (v3.11)
ii  python3.11-doc                       3.11.2-6+deb12u2                    all          Documentation for the high-level object-oriented language Python (v3.11)
ii  python3.11-examples                  3.11.2-6+deb12u2                    all          Examples for the Python language (v3.11)
ii  python3.11-full                      3.11.2-6+deb12u2                    arm64        Python Interpreter with complete class library (version 3.11)
ii  python3.11-minimal                   3.11.2-6+deb12u2                    arm64        Minimal subset of the Python language (version 3.11)
ii  python3.11-venv                      3.11.2-6+deb12u2                    arm64        Interactive high-level object-oriented language (pyvenv binary, version 3.11)

Detected indi-allsky virtualenv
virtualenv python: Python 3.11.2
virtualenv PATH: /home/matt/indi-allsky/virtualenv/indi-allsky/bin:/usr/local/bin:/usr/bin:/bin
flask command: /home/matt/indi-allsky/virtualenv/indi-allsky/bin/flask

virtualenv python modules
Adafruit-Blinka==8.47.0
adafruit-circuitpython-ads1x15==2.3.0
adafruit-circuitpython-ahtx0==1.0.21
adafruit-circuitpython-bh1750==1.1.10
adafruit-circuitpython-bme280==2.6.25
adafruit-circuitpython-bme680==3.7.8
adafruit-circuitpython-busdevice==5.2.9
adafruit-circuitpython-connectionmanager==3.1.1
adafruit-circuitpython-dht==4.0.4
adafruit-circuitpython-mlx90614==1.2.18
adafruit-circuitpython-register==1.9.18
adafruit-circuitpython-requests==4.1.6
adafruit-circuitpython-sht31d==2.3.24
adafruit-circuitpython-sht4x==1.0.19
adafruit-circuitpython-si1145==1.1.10
adafruit-circuitpython-si7021==4.1.11
adafruit-circuitpython-tsl2561==3.3.18
adafruit-circuitpython-tsl2591==1.3.12
adafruit-circuitpython-typing==1.11.0
adafruit-circuitpython-veml7700==2.0.0
Adafruit-PlatformDetect==3.73.0
Adafruit-PureIO==1.1.11
alembic==1.13.2
apache-libcloud==3.8.0
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
asciitree==0.3.3
astroalign==2.5.1
astropy==6.1.2
astropy-iers-data==0.2024.8.12.0.32.58
astropy_healpix==1.0.3
astroscrappy==1.2.0
bcrypt==4.2.0
binho-host-adapter==0.1.6
blinker==1.8.2
boto3==1.34.162
botocore==1.34.162
Bottleneck==1.4.0
cachetools==5.4.0
ccdproc==2.4.2
certifi==2024.7.4
cffi==1.17.0
charset-normalizer==3.3.2
circuitpython-bmp180==0.2.0
click==8.1.7
cloudpickle==3.0.0
cryptography==43.0.0
Cython==3.0.11
dask==2024.8.0
dbus-python==1.3.2
ephem==4.1.5
fasteners==0.19
fish2pano==0.4.1
Flask==3.0.3
Flask-Login==0.6.3
Flask-Migrate==4.0.7
Flask-SQLAlchemy==3.1.1
Flask-WTF==1.2.1
fsspec==2024.6.1
google-api-core==2.19.1
google-api-python-client==2.141.0
google-auth==2.33.0
google-auth-httplib2==0.2.0
google-auth-oauthlib==1.2.1
google-cloud-core==2.4.1
google-cloud-storage==2.18.2
google-crc32c==1.5.0
google-resumable-media==2.7.2
googleapis-common-protos==1.63.2
gpiod==2.2.1
greenlet==3.0.3
gunicorn==23.0.0
httplib2==0.22.0
idna==3.7
imageio==2.35.0
imageio-ffmpeg==0.5.1
importlib_metadata==8.2.0
inotify==0.2.10
is-safe-url==1.0
itsdangerous==2.2.0
Jinja2==3.1.4
jmespath==1.0.1
jplephem==2.22
lazy_loader==0.4
locket==1.0.0
lxml==5.3.0
Mako==1.3.5
MarkupSafe==2.1.5
mysql-connector-python==9.0.0
networkx==3.3
nose==1.3.7
numcodecs==0.13.0
numpy==1.26.4
oauthlib==3.2.2
opencv-python-headless==4.10.0.84
packaging==24.1
paho-mqtt==2.1.0
paramiko==3.4.1
partd==1.4.2
passlib==1.7.4
piexif==1.1.3
pillow==10.4.0
prettytable==3.11.0
proto-plus==1.24.0
protobuf==5.27.3
psutil==6.0.0
pyasn1==0.6.0
pyasn1_modules==0.4.0
pycparser==2.22
pycurl==7.45.3
pyerfa==2.0.1.4
pyftdi==0.55.4
pygifsicle==1.1.0
pyindi-client @ git+https://github.com/indilib/pyindi-client.git@6f8fa8042f60f7b3079f6d66a0b8ee720af09d64
PyMySQL==1.1.1
PyNaCl==1.5.0
pyparsing==3.1.2
pyserial==3.5
python-dateutil==2.9.0.post0
pytz==2024.1
pyusb==1.2.1
PyYAML==6.0.2
rawpy==0.21.0
reproject==0.14.0
requests==2.32.3
requests-oauthlib==2.0.0
requests-toolbelt==1.0.0
RPi.GPIO==0.7.1
rpi_ws281x==5.0.0
rsa==4.9
s3transfer==0.10.2
scikit-image==0.24.0
scipy==1.14.0
semantic-version==2.10.0
sep==1.2.1
setuptools-rust==1.10.1
sgp4==2.23
shapely==2.0.5
six==1.16.0
skyfield==1.49
SQLAlchemy==2.0.32
sysv_ipc==1.1.0
tifffile==2024.8.10
toolz==0.12.1
typing_extensions==4.12.2
uritemplate==4.1.1
urllib3==2.2.2
wcwidth==0.2.13
Werkzeug==3.0.3
WTForms==3.1.2
zarr==2.18.2
zipp==3.20.0

indi-allsky config (passwords redacted) 2024-08-15 22:10:18,419 [INFO] MainProcess config._dump() [1029]: Dumping config

{
  "ENCRYPT_PASSWORDS_comment": "Do not manually adjust",
  "ENCRYPT_PASSWORDS": false,
  "CAMERA_INTERFACE": "libcamera_imx477",
  "INDI_SERVER": "localhost",
  "INDI_PORT": 7624,
  "INDI_CAMERA_NAME": "",
  "OWNER": "REDACTED",
  "LENS_NAME": "AllSky 180 Lens",
  "LENS_FOCAL_LENGTH": 2.5,
  "LENS_FOCAL_RATIO": 2,
  "LENS_IMAGE_CIRCLE": 4000,
  "LENS_ALTITUDE": 90,
  "LENS_AZIMUTH": 0,
  "CCD_CONFIG": {
    "NIGHT": {
      "GAIN": 16,
      "BINNING": 1
    },
    "MOONMODE": {
      "GAIN": 75,
      "BINNING": 1
    },
    "DAY": {
      "GAIN": 0,
      "BINNING": 1
    }
  },
  "INDI_CONFIG_DEFAULTS": {
    "SWITCHES": {},
    "PROPERTIES": {},
    "TEXT": {}
  },
  "INDI_CONFIG_DAY": {},
  "CCD_EXPOSURE_MAX": 30,
  "CCD_EXPOSURE_DEF": 0,
  "CCD_EXPOSURE_MIN": 0,
  "CCD_EXPOSURE_MIN_DAY": 0,
  "CCD_BIT_DEPTH": 0,
  "EXPOSURE_PERIOD": 30,
  "EXPOSURE_PERIOD_DAY": 50,
  "FOCUS_MODE": false,
  "FOCUS_DELAY": 4,
  "CFA_PATTERN": "",
  "SCNR_ALGORITHM": "",
  "WBR_FACTOR": 2.5,
  "WBG_FACTOR": 1,
  "WBB_FACTOR": 2,
  "AUTO_WB": true,
  "SATURATION_FACTOR": 1,
  "CCD_COOLING": false,
  "CCD_TEMP": 15,
  "TEMP_DISPLAY": "c",
  "PRESSURE_DISPLAY": "hPa",
  "CCD_TEMP_SCRIPT": "",
  "GPS_ENABLE": false,
  "TARGET_ADU": 75,
  "TARGET_ADU_DAY": 75,
  "TARGET_ADU_DEV": 10,
  "TARGET_ADU_DEV_DAY": 20,
  "ADU_ROI": [],
  "ADU_FOV_DIV": 4,
  "DETECT_STARS": true,
  "DETECT_STARS_THOLD": 0.6,
  "DETECT_METEORS": false,
  "DETECT_MASK": "",
  "DETECT_DRAW": false,
  "LOGO_OVERLAY": "",
  "SQM_ROI": [],
  "SQM_FOV_DIV": 4,
  "LOCATION_NAME": "",
  "LOCATION_LATITUDE": 33,
  "LOCATION_LONGITUDE": -117,
  "LOCATION_ELEVATION": 24,
  "TIMELAPSE_ENABLE": true,
  "TIMELAPSE_SKIP_FRAMES": 4,
  "DAYTIME_CAPTURE": true,
  "DAYTIME_TIMELAPSE": true,
  "DAYTIME_CONTRAST_ENHANCE": false,
  "NIGHT_CONTRAST_ENHANCE": false,
  "CONTRAST_ENHANCE_16BIT": false,
  "CLAHE_CLIPLIMIT": 3,
  "CLAHE_GRIDSIZE": 8,
  "NIGHT_SUN_ALT_DEG": -6,
  "NIGHT_MOONMODE_ALT_DEG": 0,
  "NIGHT_MOONMODE_PHASE": 33,
  "WEB_NONLOCAL_IMAGES": false,
  "WEB_LOCAL_IMAGES_ADMIN": false,
  "WEB_EXTRA_TEXT": "",
  "WEB_STATUS_TEMPLATE": "Status: {status:s}\nLat: {latitude:0.1f}/Long: {longitude:0.1f}\nSidereal: {sidereal_time:s}\nMode: {mode:s}\nSun: {sun_alt:0.1f}&deg; {sun_dir:s}\nMoon: {moon_alt:0.1f}&deg; {moon_dir:s}\nPhase: {moon_phase_str:s} <span data-bs-toggle=\"tooltip\" data-bs-placement=\"right\" title=\"{moon_phase:0.0f}%\">{moon_glyph:s}</span>\nSmoke: {smoke_rating:s} {smoke_rating_status}\nKp-index: {kpindex:0.2f} {kpindex_rating:s} {kpindex_trend:s} {kpindex_status:s}\nAurora: {ovation_max:d}% {ovation_max_status}",
  "HEALTHCHECK": {
    "DISK_USAGE": 90,
    "SWAP_USAGE": 90
  },
  "IMAGE_STRETCH": {
    "MODE1_ENABLE": false,
    "MODE1_GAMMA": 3,
    "MODE1_STDDEVS": 2.25,
    "SPLIT": false,
    "MOONMODE": false,
    "DAYTIME": false
  },
  "KEOGRAM_ANGLE": 0,
  "KEOGRAM_H_SCALE": 100,
  "KEOGRAM_V_SCALE": 33,
  "KEOGRAM_CROP_TOP": 0,
  "KEOGRAM_CROP_BOTTOM": 0,
  "KEOGRAM_LABEL": true,
  "STARTRAILS_MAX_ADU": 65,
  "STARTRAILS_MASK_THOLD": 190,
  "STARTRAILS_PIXEL_THOLD": 1,
  "STARTRAILS_MIN_STARS": 0,
  "STARTRAILS_TIMELAPSE": true,
  "STARTRAILS_TIMELAPSE_MINFRAMES": 250,
  "STARTRAILS_SUN_ALT_THOLD": -15,
  "STARTRAILS_MOONMODE_THOLD": true,
  "STARTRAILS_MOON_ALT_THOLD": 91,
  "STARTRAILS_MOON_PHASE_THOLD": 101,
  "STARTRAILS_USE_DB_DATA": true,
  "IMAGE_CALIBRATE_DARK": false,
  "IMAGE_EXIF_PRIVACY": false,
  "IMAGE_FILE_TYPE": "jpg",
  "IMAGE_FILE_COMPRESSION": {
    "jpg": 90,
    "png": 5,
    "tif": 5,
    "jpeg": 90
  },
  "IMAGE_FOLDER": "/var/www/html/allsky/images",
  "IMAGE_LABEL_TEMPLATE": "# size:30 [Use 60 for higher resolution cameras]\n# xy:-15,15 (Upper Right)\n# anchor:ra (Right Justified)\n# color:150,0,0\n{timestamp:%Y.%m.%d %H:%M:%S}\n# color:100,100,0\nLat {latitude:0.0f} Long {longitude:0.0f}\n# color:150,150,150\nTiangong {tiangong_up:s} [{tiangong_next_h:0.1f}h/{tiangong_next_alt:0.0f}°]\nHubble {hst_up:s} [{hst_next_h:0.1f}h/{hst_next_alt:0.0f}°]\nISS {iss_up:s} [{iss_next_h:0.1f}h/{iss_next_alt:0.0f}°]\n# xy:-15,-240 (Lower Right) [Use -15,-450 for size 60]\n# color:175,175,0\nSun {sun_alt:0.0f}°\n# color:125,0,0\nMercury {mercury_alt:0.0f}°\n# color:100,150,150\nVenus {venus_alt:0.0f}°\n# color:150,0,0\nMars {mars_alt:0.0f}°\n# color:100,100,0\nJupiter {jupiter_alt:0.0f}°\n# color:100,100,150\nSaturn {saturn_alt:0.0f}°\n# color:150,150,150\nMoon {moon_phase:0.0f}% {moon_alt:0.0f}°\n# xy:15,-120 (Lower Left)  [Use 15,-210 for size 60]\n# anchor:la (Left Justified)\n# color:0,150,150\nStars {stars:d}\n# color:150,50,50\nKp-index {kpindex:0.2f}\n# color:150,150,150\nSmoke {smoke_rating:s}\n# xy:15,15 (Upper Left)\n# color:0,150,0\nExposure {exposure:0.6f}\n# color:150,50,0\nGain {gain:d}\n# color:50,50,150\nCamera {temp:0.1f}°{temp_unit:s}\n# color:150,0,150\nStretch {stretch:s}\nStacking {stack_method:s}\n# color:200,200,200 (default color)\n# additional labels will be added here",
  "URL_TEMPLATE": "https://{bucket}.s3.{region}.{host}",
  "IMAGE_EXTRA_TEXT": "",
  "IMAGE_CROP_ROI": [],
  "IMAGE_ROTATE": "",
  "IMAGE_ROTATE_ANGLE": 0,
  "IMAGE_FLIP_V": true,
  "IMAGE_FLIP_H": true,
  "IMAGE_SCALE": 100,
  "NIGHT_GRAYSCALE": false,
  "DAYTIME_GRAYSCALE": false,
  "IMAGE_CIRCLE_MASK": {
    "ENABLE": false,
    "DIAMETER": 1500,
    "OFFSET_X": 0,
    "OFFSET_Y": 0,
    "BLUR": 35,
    "OPACITY": 100,
    "OUTLINE": false
  },
  "FISH2PANO": {
    "ENABLE": true,
    "DIAMETER": 3000,
    "OFFSET_X": 0,
    "OFFSET_Y": 0,
    "ROTATE_ANGLE": -90,
    "SCALE": 0.5,
    "MODULUS": 2,
    "FLIP_H": false,
    "ENABLE_CARDINAL_DIRS": true,
    "DIRS_OFFSET_BOTTOM": 25,
    "OPENCV_FONT_SCALE": 0.8,
    "PIL_FONT_SIZE": 30
  },
  "IMAGE_SAVE_FITS": false,
  "IMAGE_SAVE_FITS_PRE_DARK": false,
  "IMAGE_EXPORT_RAW": "",
  "IMAGE_EXPORT_FOLDER": "/var/www/html/allsky/images/export",
  "IMAGE_EXPORT_FLIP_V": false,
  "IMAGE_EXPORT_FLIP_H": false,
  "IMAGE_STACK_METHOD": "maximum",
  "IMAGE_STACK_COUNT": 1,
  "IMAGE_STACK_ALIGN": false,
  "IMAGE_ALIGN_DETECTSIGMA": 5,
  "IMAGE_ALIGN_POINTS": 50,
  "IMAGE_ALIGN_SOURCEMINAREA": 10,
  "IMAGE_STACK_SPLIT": false,
  "THUMBNAILS": {
    "IMAGES_AUTO": true
  },
  "IMAGE_EXPIRE_DAYS": 30,
  "TIMELAPSE_EXPIRE_DAYS": 365,
  "TIMELAPSE_OVERWRITE": true,
  "IMAGE_QUEUE_MAX": 3,
  "IMAGE_QUEUE_MIN": 1,
  "IMAGE_QUEUE_BACKOFF": 0.5,
  "FFMPEG_FRAMERATE": 25,
  "FFMPEG_BITRATE": "5000k",
  "FFMPEG_VFSCALE": "",
  "FFMPEG_CODEC": "libx264",
  "FFMPEG_EXTRA_OPTIONS": "",
  "FITSHEADERS": [
    [
      "INSTRUME",
      "indi-allsky"
    ],
    [
      "OBSERVER",
      ""
    ],
    [
      "SITE",
      ""
    ],
    [
      "OBJECT",
      ""
    ],
    [
      "NOTES",
      ""
    ]
  ],
  "IMAGE_LABEL_SYSTEM": "pillow",
  "TEXT_PROPERTIES": {
    "DATE_FORMAT": "%Y%m%d %H:%M:%S",
    "FONT_FACE": "FONT_HERSHEY_SIMPLEX",
    "FONT_AA": "LINE_AA",
    "FONT_SCALE": 1,
    "FONT_THICKNESS": 1,
    "FONT_OUTLINE": true,
    "FONT_HEIGHT": 30,
    "FONT_X": 30,
    "FONT_Y": 30,
    "FONT_COLOR": [
      200,
      200,
      200
    ],
    "PIL_FONT_FILE": "fonts-freefont-ttf/FreeMonoBold.ttf",
    "PIL_FONT_CUSTOM": "",
    "PIL_FONT_SIZE": 30
  },
  "CARDINAL_DIRS": {
    "ENABLE": true,
    "FONT_COLOR": [
      255,
      0,
      0
    ],
    "SWAP_NS": false,
    "SWAP_EW": false,
    "CHAR_NORTH": "N",
    "CHAR_EAST": "E",
    "CHAR_WEST": "W",
    "CHAR_SOUTH": "S",
    "DIAMETER": 4000,
    "OFFSET_X": 0,
    "OFFSET_Y": 0,
    "OFFSET_TOP": 15,
    "OFFSET_LEFT": 15,
    "OFFSET_RIGHT": 15,
    "OFFSET_BOTTOM": 15,
    "OPENCV_FONT_SCALE": 0.5,
    "PIL_FONT_SIZE": 20,
    "OUTLINE_CIRCLE": false
  },
  "ORB_PROPERTIES": {
    "MODE": "ha",
    "RADIUS": 9,
    "SUN_COLOR": [
      200,
      200,
      0
    ],
    "MOON_COLOR": [
      128,
      128,
      128
    ],
    "AZ_OFFSET": 0,
    "RETROGRADE": false
  },
  "UPLOAD_WORKERS": 2,
  "FILETRANSFER": {
    "CLASSNAME": "pycurl_sftp",
    "HOST": "",
    "PORT": 0,
    "USERNAME": "",
    "PASSWORD": "REDACTED",
    "PASSWORD_E": "REDACTED",
    "PRIVATE_KEY": "",
    "PUBLIC_KEY": "",
    "CONNECT_TIMEOUT": 10,
    "TIMEOUT": 60,
    "CERT_BYPASS": true,
    "REMOTE_IMAGE_NAME": "image.{ext}",
    "REMOTE_PANORAMA_NAME": "panorama.{ext}",
    "REMOTE_IMAGE_FOLDER": "/home/allsky/upload/allsky",
    "REMOTE_PANORAMA_FOLDER": "/home/allsky/upload/allsky",
    "REMOTE_RAW_FOLDER": "/home/allsky/upload/allsky/export",
    "REMOTE_FITS_FOLDER": "/home/allsky/upload/allsky/fits",
    "REMOTE_METADATA_NAME": "latest_metadata.json",
    "REMOTE_METADATA_FOLDER": "/home/allsky/upload/allsky",
    "REMOTE_VIDEO_FOLDER": "/home/allsky/upload/allsky/videos",
    "REMOTE_MINI_VIDEO_FOLDER": "/home/allsky/upload/allsky/videos",
    "REMOTE_KEOGRAM_FOLDER": "/home/allsky/upload/allsky/keograms",
    "REMOTE_STARTRAIL_FOLDER": "/home/allsky/upload/allsky/startrails",
    "REMOTE_STARTRAIL_VIDEO_FOLDER": "/home/allsky/upload/allsky/videos",
    "REMOTE_PANORAMA_VIDEO_FOLDER": "/home/allsky/upload/allsky/videos",
    "REMOTE_ENDOFNIGHT_FOLDER": "/home/allsky/upload/allsky",
    "UPLOAD_IMAGE": 0,
    "UPLOAD_PANORAMA": 0,
    "UPLOAD_RAW": false,
    "UPLOAD_FITS": false,
    "UPLOAD_METADATA": false,
    "UPLOAD_VIDEO": false,
    "UPLOAD_MINI_VIDEO": false,
    "UPLOAD_KEOGRAM": false,
    "UPLOAD_STARTRAIL": false,
    "UPLOAD_STARTRAIL_VIDEO": false,
    "UPLOAD_PANORAMA_VIDEO": false,
    "UPLOAD_ENDOFNIGHT": false,
    "FORCE_IPV4": false,
    "FORCE_IPV6": false,
    "LIBCURL_OPTIONS": {}
  },
  "S3UPLOAD": {
    "ENABLE": false,
    "CLASSNAME": "boto3_s3",
    "ACCESS_KEY": "",
    "SECRET_KEY": "REDACTED",
    "SECRET_KEY_E": "REDACTED",
    "CREDS_FILE": "",
    "BUCKET": "change-me",
    "REGION": "us-east-2",
    "NAMESPACE": "",
    "HOST": "amazonaws.com",
    "PORT": 0,
    "CONNECT_TIMEOUT": 10,
    "TIMEOUT": 60,
    "URL_TEMPLATE": "https://{bucket}.s3.{region}.{host}",
    "ACL": "",
    "STORAGE_CLASS": "STANDARD",
    "TLS": true,
    "CERT_BYPASS": false,
    "UPLOAD_FITS": false,
    "UPLOAD_RAW": false
  },
  "MQTTPUBLISH": {
    "ENABLE": false,
    "TRANSPORT": "tcp",
    "HOST": "localhost",
    "PORT": 8883,
    "USERNAME": "indi-allsky",
    "PASSWORD": "REDACTED",
    "PASSWORD_E": "REDACTED",
    "BASE_TOPIC": "indi-allsky",
    "QOS": 0,
    "TLS": true,
    "CERT_BYPASS": true,
    "PUBLISH_IMAGE": true
  },
  "SYNCAPI": {
    "ENABLE": false,
    "BASEURL": "https://example.com/indi-allsky",
    "USERNAME": "",
    "APIKEY": "REDACTED",
    "APIKEY_E": "REDACTED",
    "CERT_BYPASS": false,
    "POST_S3": false,
    "EMPTY_FILE": false,
    "UPLOAD_IMAGE": 1,
    "UPLOAD_PANORAMA": 1,
    "CONNECT_TIMEOUT": 10,
    "TIMEOUT": 60
  },
  "YOUTUBE": {
    "ENABLE": false,
    "SECRETS_FILE": "",
    "PRIVACY_STATUS": "private",
    "TITLE_TEMPLATE": "Allsky {asset_label} - {day_date:%Y-%m-%d} - {timeofday}",
    "DESCRIPTION_TEMPLATE": "",
    "CATEGORY": 22,
    "TAGS": [
      "allsky",
      "timelapse",
      "astronomy"
    ],
    "UPLOAD_VIDEO": false,
    "UPLOAD_MINI_VIDEO": false,
    "UPLOAD_STARTRAIL_VIDEO": false,
    "UPLOAD_PANORAMA_VIDEO": false
  },
  "LIBCAMERA": {
    "IMAGE_FILE_TYPE": "dng",
    "IMAGE_FILE_TYPE_DAY": "dng",
    "AWB": "auto",
    "AWB_DAY": "auto",
    "AWB_ENABLE": false,
    "AWB_ENABLE_DAY": true,
    "CAMERA_ID": 0,
    "EXTRA_OPTIONS": "",
    "EXTRA_OPTIONS_DAY": ""
  },
  "PYCURL_CAMERA": {
    "URL": "",
    "IMAGE_FILE_TYPE": "jpg",
    "USERNAME": "",
    "PASSWORD": "REDACTED",
    "PASSWORD_E": "REDACTED"
  },
  "ACCUM_CAMERA": {
    "SUB_EXPOSURE_MAX": 1
  },
  "FOCUSER": {
    "CLASSNAME": "",
    "GPIO_PIN_1": "D17",
    "GPIO_PIN_2": "D18",
    "GPIO_PIN_3": "D27",
    "GPIO_PIN_4": "D22"
  },
  "DEW_HEATER": {
    "CLASSNAME": "blinka_dew_heater_standard",
    "ENABLE_DAY": false,
    "PIN_1": "D22",
    "INVERT_OUTPUT": false,
    "LEVEL_DEF": 100,
    "THOLD_ENABLE ": false,
    "MANUAL_TARGET": 0,
    "TEMP_USER_VAR_SLOT": 10,
    "LEVEL_LOW": 33,
    "LEVEL_MED": 66,
    "LEVEL_HIGH": 100,
    "THOLD_DIFF_LOW": 15,
    "THOLD_DIFF_MED": 10,
    "THOLD_DIFF_HIGH": 5,
    "THOLD_ENABLE": true
  },
  "FAN": {
    "CLASSNAME": "blinka_fan_standard",
    "ENABLE_NIGHT": true,
    "PIN_1": "D27",
    "INVERT_OUTPUT": false,
    "LEVEL_DEF": 100,
    "THOLD_ENABLE ": false,
    "TARGET": 30,
    "TEMP_USER_VAR_SLOT": 111,
    "LEVEL_LOW": 33,
    "LEVEL_MED": 66,
    "LEVEL_HIGH": 100,
    "THOLD_DIFF_LOW": 0,
    "THOLD_DIFF_MED": 5,
    "THOLD_DIFF_HIGH": 10,
    "THOLD_ENABLE": true
  },
  "GENERIC_GPIO": {
    "A_CLASSNAME": "blinka_gpio_standard",
    "A_PIN_1": "D21",
    "A_INVERT_OUTPUT": false
  },
  "TEMP_SENSOR": {
    "A_CLASSNAME": "temp_api_weatherunderground",
    "A_LABEL": "Sensor WU",
    "A_PIN_1": "KCAOCEAN437",
    "A_USER_VAR_SLOT": 10,
    "A_I2C_ADDRESS": "0x77",
    "B_CLASSNAME": "",
    "B_LABEL": "Sensor B",
    "B_PIN_1": "D6",
    "B_USER_VAR_SLOT": 15,
    "B_I2C_ADDRESS": "0x76",
    "C_CLASSNAME": "",
    "C_LABEL": "Sensor C",
    "C_PIN_1": "D16",
    "C_USER_VAR_SLOT": 20,
    "C_I2C_ADDRESS": "0x40",
    "OPENWEATHERMAP_APIKEY": "REDACTED",
    "OPENWEATHERMAP_APIKEY_E": "REDACTED",
    "WUNDERGROUND_APIKEY": "REDACTED",
    "WUNDERGROUND_APIKEY_E": "REDACTED",
    "MQTT_TRANSPORT": "tcp",
    "MQTT_HOST": "localhost",
    "MQTT_PORT": 8883,
    "MQTT_USERNAME": "indi-allsky",
    "MQTT_PASSWORD": "REDACTED",
    "MQTT_PASSWORD_E": "REDACTED",
    "MQTT_TLS": true,
    "MQTT_CERT_BYPASS": true,
    "TSL2561_GAIN_NIGHT": 1,
    "TSL2561_GAIN_DAY": 0,
    "TSL2561_INT_NIGHT": 1,
    "TSL2561_INT_DAY": 1,
    "TSL2591_GAIN_NIGHT": "GAIN_MED",
    "TSL2591_GAIN_DAY": "GAIN_LOW",
    "TSL2591_INT_NIGHT": "INTEGRATIONTIME_100MS",
    "TSL2591_INT_DAY": "INTEGRATIONTIME_100MS",
    "VEML7700_GAIN_NIGHT": "ALS_GAIN_1",
    "VEML7700_GAIN_DAY": "ALS_GAIN_1_8",
    "VEML7700_INT_NIGHT": "ALS_100MS",
    "VEML7700_INT_DAY": "ALS_100MS"
  },
  "CHARTS": {
    "CUSTOM_SLOT_1": 10,
    "CUSTOM_SLOT_2": 11,
    "CUSTOM_SLOT_3": 12,
    "CUSTOM_SLOT_4": 13
  }
}

#################################

end support info

#################################

aaronwmorris commented 3 months ago

The Pi5 has some different interfaces from the Pi4. Try performing these actions. Unfortunately, this requires modules to be installed in a certain order.

source virtualenv/indi-allsky/bin/activate

pip uninstall RPi.GPIO rpi.lgpio

pip install rpi.lgpio

Edit: Also, as a note, I have not been able to get PWM working on my Pi5. GPIO digital IO should work fine.

bendenajones commented 3 months ago

Thanks, I performed those steps and the error changed. I now get "GPIO busy" errors:

2024-08-16T08:25:36.573695-07:00 AllSky [INFO] MainProcess-2235/MainThread allsky._startSensorWorker() [518]: Starting Sensor-2485 worker 2024-08-16T08:25:36.573659-07:00 AllSky [ERROR] MainProcess-2235/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: 2024-08-16T08:25:36.573624-07:00 AllSky [ERROR] MainProcess-2235/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: lgpio.error: 'GPIO busy' 2024-08-16T08:25:36.573584-07:00 AllSky [ERROR] MainProcess-2235/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: raise error(error_text(v)) 2024-08-16T08:25:36.573545-07:00 AllSky [ERROR] MainProcess-2235/MainThread allsky._startSensorWorker() [511]: Sensor worker exception: File "/home/matt/indi-allsky/virtualenv/indi-allsky/lib/python3.11/site-packages/lgpio.py", line 458, in _u2i

using gpioinfo for the pins I have specified (D22 for Dew, D27 for fan):

line 22: "GPIO22" "lg" output active-high [used bias-disabled] line 23: "GPIO23" unused input active-high line 24: "GPIO24" unused input active-high line 25: "GPIO25" unused input active-high line 26: "GPIO26" unused input active-high line 27: "GPIO27" "lg" output active-high [used bias-disabled]

aaronwmorris commented 3 months ago

You may just need to reboot.

bendenajones commented 3 months ago

I did so and eventually the errors start showing up in the log; however, I think gpio is working as the fan is on. Heater is on even though I have "day time" heater disabled.

aaronwmorris commented 3 months ago

You might have another service that has locked the GPIO ports or it is a desktop utility.

bendenajones commented 3 months ago

When I stop the indi-allsky service, gpioinfo show that the target gpios are not in use; when I start the service gpioinfo shows the following:

    line  21:     "GPIO21"       unused   input  active-high
    line  22:     "GPIO22"         "lg"  output  active-high [used bias-disabled]
    line  23:     "GPIO23"       unused   input  active-high
    line  24:     "GPIO24"       unused   input  active-high
    line  25:     "GPIO25"       unused   input  active-high
    line  26:     "GPIO26"       unused   input  active-high
    line  27:     "GPIO27"         "lg"  output  active-high [used bias-disabled]

I then start seeing the errors in the log file; I also believe that these errors are causing my WeatherUnderground to be used excesssively as within a couple minutes the WU website reports over 20 queries.

aaronwmorris commented 3 months ago

Let me see if I can replicate this on my Pi5. So far I have done almost all of my GPIO testing on my Pi5 system, so there is something else involved.

bendenajones commented 3 months ago

I don't trust my SD card; I am getting a new one in today; will setup the OS fresh and then re-install indi-allsky and report back.

bendenajones commented 3 months ago

Yes, nothing changed. Got the "Cannot determine SOC peripheral base address" error initially after fresh OS/indi-allsky installation; then performed the python gpio setup steps (noted by above) and now again get the "lgpio.error: 'GPIO busy" error in the log. My devices appear to working - though they are almost always both on when they shouldn't be. I have the heater disabled for day use but it's on. I have the Fan disabled for night use but it stays on all the time. indi-allsky.log

aaronwmorris commented 3 months ago

I have not found a cause yet. Can you show the output of the following command?

You may have to install lsof using sudo apt-get install lsof

sudo lsof -n | grep -i gpio
bendenajones commented 3 months ago

I get nothing with that command (I had to install lsof on my x64 bookworm lite OS install). Removing the grep for gpio I do get output.

aaronwmorris commented 3 months ago

Oh well. Can you send me another support info dump? I want to compare your python modules now that you swapped them. I will be back in my office tomorrow where I have my Pi5.

bendenajones commented 3 months ago

NP; Thanks Fresh _OS_indiallsky_install_configured.txt

bendenajones commented 3 months ago

I had success using gpiozero when developing a modified plug-in for allsky dew heater control. Just an fyi - it seems as if Pi made a mess of gpio w/ the 5 series.

bendenajones commented 2 months ago

Oh well. Can you send me another support info dump? I want to compare your python modules now that you swapped them. I will be back in my office tomorrow where I have my Pi5.

Did you replicate the issue?

aaronwmorris commented 2 months ago

Not yet which is really strange. I did almost all of my development of this code on Rpi5.

Can you send me the contents of your /boot/firmware/config.txt?

bendenajones commented 2 months ago

Sorry for the delay - I am not getting notified of thread updates. Here is the file you requested. config.txt

bendenajones commented 2 months ago

Some followup: I hooked up some test leds to the IOs configured for use for my dew heater and fan control: 22 and 27 respectively on my Pi 5. Using 'gpioset' command: 'gpioset 4 22=1' and 'gpioset 4 27=1' both work as expected (after stopping the indi all-sky service) to turn on the IOs.

bendenajones commented 2 months ago

It would great if I was able to test ios via the device tab; a simple on/off or "pulse" capability would go a long ways to help trouble-shoot these types of issues.

I am trying to get the fan to turn off; I had to disable thresholds for the dew heater to get turned off which worked. I am seeing the following given my threshold setting for the fan:

check_fan_thresholds() [502]: Fan threshold current: 123.3, target: 140.0, delta: -16.7

If I read that correctly the fan should be turned off. The idea is that unless the target sensor temp (CPU in my case) is less than 140 it should turn off the fan?

bendenajones commented 2 months ago

I am starting to think the gpio "busy" errors I reported earlier are related to restarting indi-allsky via teh "Save - reload on Save" option. I do not see those errors in the log until after I make config changes... still investigating.

bendenajones commented 2 months ago

I can confirm that the "gpio busy" bug is related to "Save - reload on Save" function. I went over 4 hrs with no gpio errors; as soon as I performed a config update w/ reload option enabled - the errors show up in the log.

aaronwmorris commented 2 months ago

Okay.... I will try to focus on the reload functionality.

aaronwmorris commented 2 months ago

I am definitely seeing exceptions on reload.

aaronwmorris commented 2 months ago

This was definitely a PITA to track down. It appears the lgpio module which is used for the GPIO related functionality on the Raspberry Pi 5 may not be threadsafe.

indi-allsky uses the python multiprocessing library to split processing tasks between multiple processes. There is also a mixture of threads for some workers where tasks are not CPU bound (network transfers, etc). The sensor and GPIO functionality was implemented as of of those threads. Threads are much less memory heavy than processes, so it is ideal in situations where there is more limited memory (like a Raspberry Pi 3 with 1GB of memory).

Unfortunately, the error you experienced appears to be caused by esoteric python functionality on how multiprocessing works. When you spawn a separate Process, python copies all of the memory (and other things) from the parent process into the memory of the new process. The sub-processes and threads were all handled by the main process thread so something was being maintained across process reloads. (The reload restarts all of the sub-processes and threads, but the main process does not restart).

The TLDR is it appears that the locked pin from one of the threads was being persisted by one of the other processes when the threads and processes were restarted on a reload.

This also only happened when using lgpio which is only required on Raspberry Pi 5. Raspberry Pi 4 uses RPi.GPIO normally which does not exhibit this behavior. Swapping RPi.GPIO for lgpio on Rpi4 exposes the same problem. There is something up with the lgpio module.

Merged #1511 to convert the sensor worker from thread based to process based. This increases the memory a little, but there is really no other choice.

bendenajones commented 2 months ago

Wow, I need to beef up on my python multi-threading knowledge - that's far more complex than C++, C# or any other language i know - but of course in these languages one must manage the TLS or cross-thread data yourself - something to be said for having full control of the functionality vs 4GLs like python.

Regardless happy you found the issue and the solution; appreciate it.

aaronwmorris commented 2 months ago

indi-allsky was always an experiment to see if an allsky system could even be managed in Python. All of the common criticisms of Python are generally true, mainly that it is slow.

What is really interesting about indi-allsky is while it is written in Python, most of the modules that provide the core functionality are backed by C/C++ code. pyindi-client, opencv, numpy, etc are all C-based. Python is just a glue between these C libraries. Even the lgpio module is actually a SWIG based module (same as pyindi-client) which means the python interface is just a thin wrapper around the C library.

This may be part of the problem. The fact that some of these modules are really C code may have strange interactions when using multiprocessing.

bendenajones commented 1 month ago

Pulled change #1511 and the issue has not re-occured.