Keywords: FoxESS, solar monitoring, solar tracking, solar system, solar energy, telegram bot, real-time monitoring, solar power, energy management, solar inverter, FoxESS API
This project is a Telegram bot that allows monitoring and obtaining real-time information from a FoxESS solar system. The bot provides access to important data about solar energy production, consumption, and system status, making it an essential tool for solar system owners and energy management.
The bot offers the following features through an interactive menu:
-
📊 Real-time Solar Monitoring
- Grid Voltage
- Solar Power Output
- Load Power Consumption
- Ambient Temperature
- System Frequency
- Last Update Time
-
⚡ Solar Energy Production Tracking
- Energy Generation Metrics
- Grid Feed-in Statistics
- Grid Consumption Analysis
- Battery Charged Energy
- Battery Discharged Energy
-
🔄 Solar System Status
- System State (Online/Offline)
- Last Update Time
- Device Type Information
- System Version Details
- System Configuration (Battery/Solar Panels)
-
📊 Solar Energy History
- Daily Solar Power Production
- Total Energy Consumption
- Grid Feed-in History
- Temperature Records
- PV1 Voltage and Current Data
- Node.js (v14 or higher)
- Telegram Account
- FoxESS Solar System
- FoxESS API Credentials:
- API Key
- Device Serial Number (SN)
- Telegram Bot Token
-
Clone the repository:
git clone https://github.com/mesaque/foxess.git cd foxess -
Install dependencies:
npm install
-
Configure environment variables in the
.envfile:TELEGRAM_TOKEN=your_telegram_token FOXESS_API_KEY=your_foxess_api_key DEVICE_SN=your_device_serial_number
-
Start the FoxESS monitoring bot:
npm start
-
On Telegram, start a conversation with the bot using the
/startcommand -
Use the interactive menu to access different solar monitoring features
- Node.js - Runtime environment
- TypeScript - Programming language
- Telegram Bot API - Bot framework
- FoxESS Cloud API - Solar system integration
- Axios - HTTP client
- dotenv - Environment management
- Secure credential storage in environment variables
- MD5 signature authentication for FoxESS API
- HTTPS encrypted communications
- Regular security updates
Contributions are welcome! Feel free to:
- Open issues for bugs or feature requests
- Submit pull requests for improvements
- Share your experience with the community
This project is licensed under the MIT License - see the LICENSE file for details.