<jupyter_start><jupyter_text>Exemple mount with Alpaca and IndiClient<jupyter_code>from alpaca import Telescope
from ciboulette.indiclient.telescope import LX200Generic
from ciboulette.base import ciboulette<jupyter_output><empty_output><jupyter_text>- Create and initialize ciboulette class and Alpaca telescope class, Synscan in driver 0<jupyter_code>cbl = ciboulette.Ciboulette()
cbl.serverport = {'SVR': '192.168.1.18', 'PORT': 11111} 
# cbl.device = 0
# ***Init the mout correctly***
telescope = Telescope(cbl.serverport,cbl.device)<jupyter_output><empty_output><jupyter_text>![CIBOULETTE](mountinit.png) Fig. 1. *Initial state of SynScan application and Skychart application* - Initialize to star position Alpha Boutis<jupyter_code>cbl.positionsbyname = '<NAME>'
cbl.synctocoordinates(telescope)<jupyter_output><empty_output><jupyter_text>![CIBOULETTE](mountsync.png) Fig. 2. *Applications initialized with the coordinates of the star* - Move to star position Eta Boutis<jupyter_code>cbl.positionsbyname = 'Eta Boo'
cbl.slewtocoordinates(telescope)<jupyter_output><empty_output><jupyter_text>![CIBOULETTE](mountslew.png) Fig. 3. *Slew on the referenced star* - Create and initialize ciboulette class and Indilib telescope class<jupyter_code>cbl_indi = ciboulette.Ciboulette()
cbl_indi.serverport = {'SVR': '192.168.1.30', 'PORT': 7624} 
# ***Init the mout correctly***
telescope_indi = LX200Generic(cbl_indi.server,cbl_indi.port)<jupyter_output><newSwitchVector device="Standard LX200" name="CONNECTION"> <oneSwitch name="CONNECT"> On</oneSwitch> <oneSwitch name="DISCONNECT"> Off</oneSwitch> </newSwitchVector> 
<newTextVector device="Standard LX200" name="TIME_UTC"> <oneText name="UTC"> 2021-05-10T09:43:33.418</oneText> <oneText name="OFFSET"> 0.00</oneText> </newTextVector> 
<newTextVector device="Standard LX200" name="TIME_UTC"> <oneText name="UTC"> 2021-05-10T09:43:33.418</oneText> <oneText name="OFFSET"> 0</oneText> </newTextVector> 
<newSwitchVector device="Standard LX200" name="Sites"> <oneSwitch name="Site 1"> Off</oneSwitch> <oneSwitch name="Site 2"> Off</oneSwitch> <oneSwitch name="Site 3"> Off</oneSwitch> <oneSwitch name="Site 4"> On</oneSwitch> </newSwitchVector><jupyter_text>![CIBOULETTE](mountinitLX200.png) Fig. 4. *Skychart application initial state* - Initialize to star position Alpha Perseus<jupyter_code>cbl_indi.positionsbyname = '<NAME>'
cbl_indi.synctocoordinates(telescope_indi)<jupyter_output><newSwitchVector device="Standard LX200" name="TELESCOPE_PARK"> <oneSwitch name="PARK"> Off</oneSwitch> <oneSwitch name="UNPARK"> On</oneSwitch> </newSwitchVector> 
<newSwitchVector device="Standard LX200" name="ON_COORD_SET"> <oneSwitch name="TRACK"> On</oneSwitch> <oneSwitch name="SLEW"> Off</oneSwitch> <oneSwitch name="SYNC"> Off</oneSwitch> </newSwitchVector> 
<newSwitchVector device="Standard LX200" name="ON_COORD_SET"> <oneSwitch name="TRACK"> On</oneSwitch> <oneSwitch name="SLEW"> Off</oneSwitch> <oneSwitch name="SYNC"> Off</oneSwitch> </newSwitchVector> 
<newSwitchVector device="Standard LX200" name="ON_COORD_SET"> <oneSwitch name="TRACK"> Off</oneSwitch> <oneSwitch name="SLEW"> Off</oneSwitch> <oneSwitch name="SYNC"> On</oneSwitch> </newSwitchVector> 
<newNumberVector device="Standard LX200" name="EQUATORIAL_EOD_COORD"> <oneNumber name="RA"> 3.4053805555555554</oneNumber> <oneNumber name="DEC"> 77.79449388888888</oneNumber> </newNumberVector> 
<newNumberVector device="Standard[...]<jupyter_text>![CIBOULETTE](mountsyncLX200.png) Fig. 5. *Applications initialized with the coordinates of the star*<jupyter_code>cbl_indi.positionsbyname = '<NAME>'
cbl_indi.slewtocoordinates(telescope_indi)<jupyter_output><newSwitchVector device="Standard LX200" name="ON_COORD_SET"> <oneSwitch name="TRACK"> On</oneSwitch> <oneSwitch name="SLEW"> Off</oneSwitch> <oneSwitch name="SYNC"> Off</oneSwitch> </newSwitchVector> 
<newSwitchVector device="Standard LX200" name="ON_COORD_SET"> <oneSwitch name="TRACK"> Off</oneSwitch> <oneSwitch name="SLEW"> On</oneSwitch> <oneSwitch name="SYNC"> Off</oneSwitch> </newSwitchVector> 
<newNumberVector device="Standard LX200" name="EQUATORIAL_EOD_COORD"> <oneNumber name="RA"> 3.9022006666666664</oneNumber> <oneNumber name="DEC"> 49.861179166666666</oneNumber> </newNumberVector> 
<newNumberVector device="Standard LX200" name="EQUATORIAL_EOD_COORD"> <oneNumber name="RA"> 3.9022006666666664</oneNumber> <oneNumber name="DEC"> 31.88363361111111</oneNumber> </newNumberVector> 
<newSwitchVector device="Standard LX200" name="ON_COORD_SET"> <oneSwitch name="TRACK"> On</oneSwitch> <oneSwitch name="SLEW"> Off</oneSwitch> <oneSwitch name="SYNC"> Off</oneSwitch> </newSwitchVector>
{'fraction_non_alphanumeric': 0.14610598583994852, 'fraction_numerical': 0.04934563398412358, 'mean_word_length': 9.134782608695652, 'pattern_counts': {'":': 0, '<': 130, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 6, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '238138', 'license': 'MIT', 'n_tokens_mistral': 1776, 'n_tokens_neox': 1618, 'n_words': 316, 'path': 'notebook/exemple-mount.ipynb', 'repo_name': 'dtouzan/ciboulette', 'size': '4664'}