Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryichk/octopusenergy_line_bot_api
Send yesterday's electricity usage and cost to LINE using Octopus Energy's GraphQL API.
https://github.com/ryichk/octopusenergy_line_bot_api
Last synced: 15 days ago
JSON representation
Send yesterday's electricity usage and cost to LINE using Octopus Energy's GraphQL API.
- Host: GitHub
- URL: https://github.com/ryichk/octopusenergy_line_bot_api
- Owner: ryichk
- License: mit
- Created: 2023-11-12T14:12:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-13T16:49:58.000Z (about 1 year ago)
- Last Synced: 2025-01-03T19:14:37.982Z (17 days ago)
- Language: Ruby
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Octopus Energy LINE Bot API
## Description
Send yesterday's electricity usage and cost to LINE using [Octopus Energy's GraphQL API](https://developer.octopus.energy/docs/api/#graphql-api).
## Setting
1. Copy .env.sample file to create .env file.
2. Set the email, password, and account number for your Octopus Energy account in the .env file.
3. Please refer to [this article](https://qiita.com/KNR109/items/e1b5ebd94393441fff74#messaging-api-%E3%81%AE%E3%83%81%E3%83%A3%E3%83%8D%E3%83%AB%E3%81%AE%E4%BD%9C%E6%88%90) to create a channel for LINE's Messaging API.
4. Once you have created a channel for LINE's Messaging API, set the channel secret and channel access token in the .env file.
## Execute
```sh
bin/rails line_notification:send_electricity_usage_and_cost_of_yesterday
```