This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from telegram import Update | |
| from telegram.ext import Application, CommandHandler, MessageHandler, filters, ContextTypes | |
| import pyvisa | |
| import ollama | |
| BOT_TOKEN = "meu token gerado no botfather" | |
| system_context=""" | |
| You are a natural language to fixed command converter for a power supply (channel). | |
| 1. translate from portuguese to english and change all string numbers to digits values if necessary | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | """Use a Rigol DP800 to monitor load and store test on database.""" | |
| import pyvisa | |
| import time | |
| import mysql.connector | |
| from datetime import datetime, timezone | |
| def connect_to_database(): | |
| """Connect to mysql database.""" | |
| try: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ;; START custom ----------------------------------------- | |
| (custom-set-variables | |
| ;; custom-set-variables was added by Custom. | |
| ;; If you edit it by hand, you could mess it up, so be careful. | |
| ;; Your init file should contain only one such instance. | |
| ;; If there is more than one, they won't work right. | |
| '(c-basic-offset 4) | |
| '(custom-enabled-themes '(modus-vivendi-deuteranopia)) | |
| '(custom-safe-themes |