@@ -49,7 +49,10 @@ Circa is a project for [Carbon Hack 22](https://taikai.network/en/gsf/hackathons
4949 <dt ><b >-d</b > < ; duration> ; </dt >
5050 <dd >estimated window of runtime of command/task in minutes</dd >
5151 <dt ><b >-u</b > < ; api url> ; </dt >
52- <dd >url prefix of Carbon Aware API server to consult</dd >
52+ <dd >
53+ url prefix of Carbon Aware API server to consult OR<br>
54+ full path to Carbon Aware CLI executable
55+ </dd >
5356</dl >
5457
5558### Configuration
@@ -173,8 +176,60 @@ make
173176### Building on Ubuntu
174177
175178```
176- sudo apt-get install -y build-essential libjansson-dev libcurl4-openssl-dev
179+ sudo apt-get install -y build-essential libcurl4-openssl-dev libjansson -dev
177180autoreconf -fi
178181./configure
179182make
180183```
184+
185+ ### Building on Fedora
186+
187+ ```
188+ sudo dnf -y install autoconf automake curl-devel jansson-devel
189+ autoreconf -fi
190+ ./configure
191+ make
192+ ```
193+
194+ ### Carbon Aware CLI
195+
196+ To install the SDK CLI you will first need the .NET SDK
197+
198+ * macOS - download and install the (macOS .NET SDK Installer)[ https://dotnet.microsoft.com/en-us/download/dotnet/6.0 ] .
199+ * Ubuntu - ` sudo apt-get install -y dotnet-sdk-6.0 `
200+ * Fedora - ` sudo yum -y install dotnet `
201+
202+ Then you will need the * new* CLI redesign
203+ (pull request)[ https://github.com/Green-Software-Foundation/carbon-aware-sdk/pull/158 ] branch:
204+ ```
205+ curl -LO https://github.com/microsoft/carbon-aware-sdk/archive/refs/heads/162/cli-redesign.tar.gz
206+ tar xf cli-redesign.tar.gz
207+ cd carbon-aware-sdk-162-cli-redesign/src/CarbonAware.CLI/src
208+ ```
209+
210+ Update the ` appsettings.json ` , for example, with your WattTime credentials:
211+ ```
212+ vi appsettings.json
213+ {
214+ "Logging": {
215+ "LogLevel": {
216+ "Default": "Information",
217+ "Microsoft.AspNetCore": "Warning"
218+ }
219+ },
220+ "AllowedHosts": "*",
221+ "carbonAwareVars": {
222+ "carbonIntensityDataSource": "WattTime"
223+ },
224+ "wattTimeClient": {
225+ "username": "<watttime username>",
226+ "password": "<watttime password>"
227+ }
228+ }
229+ ```
230+
231+ Build a release and test it:
232+ ```
233+ dotnet publish -c Release
234+ bin/Release/net6.0/publish/caw emissions -l eastus
235+ ```
0 commit comments