SeeStarの自動化 SeeStar_alp

SeeStar_alp は、ASCOM Alpacaと組み合わせてSeeStarを自在に制御できる。また、標準のSeeStar APPと同時に併用できる点がすばらしい!

SeeStar_alpはサーバーとして機能し、pythomで記述されたスクリプト群であり、様々なプラットフォームで稼働できる。

https://github.com/smart-underworld/seestar_alp

Installation
Standalone package
Windows/Linux
The easiest way to install and run on Windows is to download a zip file that will allow you to run from one .exe file and everything will come up. If you want to run from source code then you will need to follow the Mac/Source install below.

Download win_seestar_alp.zip or linux_seestar_alp.zip from the lastest release tagged 1.1.0b1PullXXX at: https://github.com/rrowley42/seestar_alp/releases

SeeStar_alpをraspberry Piへインストールする専用のスクリプトが用意されている。

インストールが終わったら、http://SeeStar_alpのアドレス:5432/をブラウザーでアクセス。

ASCOM Alpacaの一般的な設定手順

Cartes du CielでASCOM Alpaca接続の設定画面

Stellariumの設定

LOCAL LLM ollama

pdfファイルをアップロードしてRAG(Retrieval-Augmented Generation)

参考動画 installの参考

https://www.youtube.com/watch?v=1xdneyn6zjw

Step 1: Install Ollama https://ollama.com/
Step 2: Copy and Paste Llama 3 install command using Terminal
Step 3: Add other LLM models (optional) https://ollama.com/library
Step 4: Install Docker https://www.docker.com/
Step 5: Install OpenWebUI https://docs.openwebui.com/getting-st...
Login to OpenWebUI and start using your local AI chatbot.

ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
STEP1:ollamaの実行
C:\Users\ei2k-> ollama.exe run llama3.1

STEP2:docker desktop実行

STEP3:dockerでopen-webuiを実行
C:\Users\ei2k-> docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

LLM活用のプロンプト・テクニック

出典:

  • 1、孫正義式ディベートプロンプト 【〇〇な】Aさん、【〇〇な】Bさん、【〇〇な】Cさん あなたがたならこの問題をどう解決するか 私の目の前でディベートしてください 問題 【〇〇】
  • 2、AIを詰める?パワハラプロンプト ありがとうございます、この出力を60点とします これを60点とした時に100点とはどのようなものですか? 100点にするために足りないものを列挙した後に 100点の答えを生成してください
  • 3、分かりやすい回答に改善するプロンプト 【〇〇】について 人と人が対話する物語形式で 分かりやすく解説してください
  • 4、シンガポール発CO-STARフレームワーク (C) コンテキスト:【〇〇】 (O) 目標:【〇〇】 (S) スタイル:【〇〇】 (T) トーン:【〇〇】 (A) 対象読者:【〇〇】 (R) 応答:以下の形式で回答を構成してください: 1.【〇〇】 2.【〇〇】 3.【〇〇】
  • 5、段階理解プロンプト 「【〇〇】」 ↑の文言を意味を保ったまま別の言葉に言い換えてください
  • 6、プロンプトを短縮して精度向上 https://chatgpt.com/g/g-G7bqU5uCZ-lis…
  • 7、ハルシネーションを避けるプロンプト手法 【〇〇】 わからないことは「知らない」と答えてください。
  • ゴール(目的)
  • 前提(AIの役割、自分の状況)
  • 出力形式(表、json…)
  • ステップ
  • 例示

https://www.perplexity.ai/search/sekiyuriteizhuan-men-jia-asan-EjFLfr6eTEC4waiY5_ZRXQ

Sirilによる画像処理手順

starnetファイルの準備

https://www.starnetastro.com/download/ からコマンドラインツールをダウンロードして、実行ファイルを登録する
ーーーーーーーーーーーーーーーーーーーーーーーーー
快適星活4回目 天体画像処理ソフトSirilの紹介
https://www.youtube.com/watch?v=OEn_rVE-yw0
ZWO SEESTAR S50 DATA POST PROCESSING

Fix your broken Seestar S50 astrophotography images with Siril

Seestar S50 Siril tutorial - easy astrophotography image processing

Using Deconvolution to Improve the Resolution of Deep-Sky Images in Siril


Conversion TAB
addfiles +
 ファイル一覧を選択して
add
シーケンス名を付けて、
debayerにチェックを入れて
Convert

Calibration TAB はスキップ(seestarの場合は、S50内で処理済)
Registration TAB
 Global Star Alignmentの選択を確認

Align 左画面に星が赤色で囲まれる

Plot TABで整列の様子をグラフ表示
左の画像を見るには、AutoStretchを実行
不要な画像をファイルを一枚毎確認しながら除外できる(当該ファイルの行でspace key)
上のStacking(整列) をクリック

必要に応じて、クロップ(左に表示される画像をマウス操作で選択し、、)
背景の除去(Background Extraction)
  一番暗い部分を選択して
 生成ボタン
 背景計算

 グリーンノイズの除去(必要に応じて?)

画像処理(左上)
 色補正
 画像パラメタで、対象の星雲名を入力して、検索をクリック
 見つかると、Rsolver Name の欄に名前が表示される
 OKボタン
上メニュー 保存

線形モードで表示
画像処理(右上)
 StarNet Star removal
   prestretch linear imageにチェックを入れる
  
  Hypabolic Stretch 
     Local Stretchスライダーを最大に
  Stretch Parametersスライダーで調整
  { 調整は、画面を見ながら試行錯誤 }

  カラーサチレーションで調整
  ノイズリダクション

nextCloud

portの確認と変更

$ sudo snap get -d nextcloud

$ sudo snap set nextcloud ports.http=8080 ports.https=8443

snapでインストールしたNextcloudの設定を変更するには

$sudo snap get nextcloud
$sudo snap list
$sudo snap get nextcloud http
$sudo snap get nextcloud ports

$sudo /snap/bin/nextcloud.occ \
config:system:get trusted_domains

$sudo /snap/bin/nextcloud.occ \
config:system:set trusted_domains 1 --value=192.168.68.0/24

Snap(Snappy) コマンドの使い方

Stream deffisionのインストール

秒100枚の画像生成ができるという「Stream Diffusion」を動かしてみる。

git clone https://github.com/cumulo-autumn/StreamDiffusion.git

Step1 環境設定

python3 -m venv .venv

Step2: Install PyTorch

pip3 install torch==2.1.0 torchvision==0.16.0 xformers –index-url https://download.pytorch.org/whl/cu121

Step3: Install StreamDiffusion

#for Latest Version (recommended)

pip install git+https://github.com/cumulo-autumn/StreamDiffusion.git@main#egg=streamdiffusion[tensorrt]

WordPress のインストールとMysql

参考にしたサイト

https://qiita.com/cherubim1111/items/b259493a39e36f5d524b

TimeZOne設定
sudo su - 
timedatectl set-timezone Asia/Tokyo

Apacheのインストール
apt -y update
apt -y install apache2 
systemctl enable apache2
systemctl start apache2

PHP 7.4 のインストール
apt -y install php7.4 php7.4-mysql

MariaDB 10.5 のインストール
apt -y install mariadb-server mariadb-client
systemctl enable mariadb
systemctl start mariadb

WordPress のインストール
cd /var/www/html
wget https://ja.wordpress.org/latest-ja.tar.gz
tar xvf latest-ja.tar.gz
chown -R www-data:www-data .

WordPress 用データベース作成(DB名wirdpressの場合)
CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8;

WordPress 用 MariaDB ユーザの作成
GRANT ALL ON wordpress.* TO UserName@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

MySQLの操作

データベースの一覧表示
MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| press              |
| rf                 |
| wp                 |
+--------------------+
6 rows in set (0.001 sec)

データベースのアクセス
MariaDB [(none)]> use press;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

データベースのテーブル表示
Database changed
MariaDB [press]> show tables;
+-----------------------+
| Tables_in_press       |
+-----------------------+
| ww_commentmeta        |
| ww_comments           |
| ww_links              |
| ww_options            |
| ww_postmeta           |
| ww_posts              |
| ww_term_relationships |
| ww_term_taxonomy      |
| ww_termmeta           |
| ww_terms              |
| ww_usermeta           |
| ww_users              |
+-----------------------+
12 rows in set (0.001 sec)

テーブル表示の中身を表示
MariaDB [press]> select * FROM ww_users;
+----+------------+------------------------------------+---------------+---------------------------+---------------------------+---------------------+---------------------+-------------+--------------+
| ID | user_login | user_pass                          | user_nicename | user_email                | user_url                  | user_registered     | user_activation_key | user_status | display_name |
+----+------------+------------------------------------+---------------+---------------------------+---------------------------+---------------------+---------------------+-------------+--------------+
|  1 | mars       | $P$BpsXyK.d4ER7ABVH9hZioBiaGNFvAJ1 | mars          | ei2k-hrai@asahi-net.or.jp | http://ps2.ddns.net/press | 2021-04-01 12:53:41 |                     |           0 | mars         |
+----+------------+------------------------------------+---------------+---------------------------+---------------------------+---------------------+---------------------+-------------+--------------+
1 row in set (0.001 sec)

データベースを削除する
DROP DATABASE [IF EXISTS] db_name

ユーザパスワードをDBから直接変更する方法

https://www.wakuwakubank.com/posts/648-wordpress-userpassword/

UPDATE 対象DB.DB接頭語users                # UPDATE press.ww_users
SET user_pass = MD5('新しいパスワード')     # SET user_pass = MD5('新しいパスワード') 
WHERE user_login = 'パスを変更したいユーザー名';