https://github.com/passy/carbon-intensity-bot
A Google Home bot to enquire about your local electricity's carbon intensity.
https://github.com/passy/carbon-intensity-bot
Last synced: about 1 year ago
JSON representation
A Google Home bot to enquire about your local electricity's carbon intensity.
- Host: GitHub
- URL: https://github.com/passy/carbon-intensity-bot
- Owner: passy
- Created: 2017-12-28T21:05:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T03:19:54.000Z (over 3 years ago)
- Last Synced: 2025-03-30T10:11:10.483Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://assistant.google.com/services/a/uid/00000075196ece08?hl=en-GB
- Size: 5.13 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Carbon Intensity [](https://travis-ci.org/passy/carbon-intensity-bot) [](https://greenkeeper.io/)

> A Google Assistant Action to query your current local electricity carbon intensity.
View in the [Google Assistant Directory](https://assistant.google.com/services/a/uid/00000075196ece08?hl=en-GB).
## Running locally
There's an odd limitation of the `firebase-tools` CLI that requires you to
export your configuration locally first. Otherwise you'll get some nice untyped
errors at runtime.
To do that first export your config:
```
firebase functions:config:get > functions/.runtimeconfig.json
```
Then run the local "emulator":
```
firebase serve --only functions
```
I like using `ngrok` to poke a tunnel into my NAT:
```
ngrok http 5000
```
Then point your Fulfilment link to your local endpoint which looks something
like this: https://deadbeef.ngrok.io/carbon-intensity/us-central1/webhook
## Deployment
```
cd functions
npm run deploy
```