/sunways-solar-bot

Telegram bot for sunways solar to get notifications about available excess solar power

Primary LanguageGoMIT LicenseMIT

Sunways Solar Bot

What this is

A tool to notify you of excess solar power generated by your sunways inverter

How to

Requirements

config.json with the following

{
    "station_id": "get from https://www.sunways-portal.com/station_more?id=<id>",
    "email": "your sunways portal email",
    "password": "get from https://www.sunways-portal.com/api/sys/login/manager payload",
    "salt": "get from https://www.sunways-portal.com/api/sys/login/manager payload"
    "bot_id": "telegram bot id",
    "recipient": "telegram channel or user id",
}

Running

  1. touch old.json
  2. go build
  3. go run main.go