NGC 281

Otherwise known as the PacMan Nebula. This was to see how the new ASI 2600 compared to my old Canon 550D.  Really it needs a narrow band filter to do it justice.  Both pictures were guided and taken through the 130 PDS mounted on an EQ6-R.

First we have 6 hours and 54 minutes total exposure across 3 nights in October with the Canon 550D.  A mixture of 3 and 5 minute subs.

NGC 281 shot with a unmodded Canon 550D

 

Then we have 2 hours and 54 minutes with the ASI 2600 and all three minute subs

NGC 281 shot with the ZWO ASI 2600

 

Replace disk in failed RAID

Failed disk is /dev/sde and new one is /dev/sdh

First copy the partition data from another disk

# sgdisk /dev/sda -R /dev/sdh
#sgdisk -G /dev/sdh

Reread the partition table

# partprobe /dev/sdh

Remove the failed disk

mdadm --manage /dev/md2 --fail /dev/sde1
mdadm --manage /dev/md2 --remove /dev/sde1

Add new disk

mdadm --manage /dev/md2 --add /dev/sdh1

and wait for rebuild

Run ffmpeg on every in a directory

To transcode every file in a directory to h265 (for example):

#!/bin/bash

find . -type f -name '*.mkv' -exec sh -c '
i="$0"
nice /opt/ffmpeg/bin/ffmpeg -i "$i" -map 0 -scodec copy -acodec copy -vf yadif -vcodec libx265 "$i.mkv"
mv "$i.mkv" "$i"
' {} ';'

libreelec wifi connect via command line

To connect libreelec to wifi via the command line

# connmanctl enable wifi
# connmanctl scan wifi
# connmanctl services

Will list known wifi services.


*AO Wired ethernet_001e06365853_cable
*A davids.net.IOT wifi_000f55b13b7e_6461766964732e6e65742e494f54_managed_psk
davids.net wifi_000f55b13b7e_6461766964732e6e6574_managed_psk
davids.net Guest wifi_000f55b13b7e_6461766964732e6e6574204775657374_managed_none

Create an access file in /storage/.cache/connman
eg /storage/.cache/connman/davids.net.IOT.config

[global]
Name = IOT
Description = IOT Wifi service config file

[service_wifi_IOT]
Type = wifi
Name = davids.net.IOT
Passphrase = XXXXXX

or use
SSID =
instead of
Name =
giving the hex code instead of ASCII

Turn off odroid C2 LED at boot

Create a file /storage/.config/system.d/led.service

containing

[Unit]
Description=LED control

[Service]
User=root
Type=forking
ExecStart=bash -c “echo sd > /sys/class/leds/blue\:heartbeat/trigger”
TimeoutSec=0
RemainAfterExit=yes

[Install]
WantedBy=kodi.target

To flash blue led only when sd accessed.

then

# systemctl daemon-reload
# systemctl enable led.service
# systemctl start led.service

Squeezelite and kodi

Install the multimedia-tools in Program add-ons.

Create the following file:


[Unit]
Description=Squeezelite
Requires=network-online.service
After=network-online.service

[Service]
User=root
ExecStart=/storage/.kodi/addons/virtual.multimedia-tools/bin/squeezelite -n LivingRoom -o iec958:CARD=MicroII,DEV=0 -s 10.113.17.28
StartLimitBurst=10
StartLimitInterval=10m
Restart=always
RestartSec=5

[Install]
WantedBy=kodi.target

 

Adding appropriate options for squeezelite