Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-edp committed Sep 4, 2023
1 parent 2998884 commit 2238cb3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 51 deletions.
11 changes: 0 additions & 11 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,4 @@
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
<filteredResources>
<filter>
<id>1693808423251</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
4 changes: 2 additions & 2 deletions srf-weather-connector-product/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ The use of the SRF Weather API is not free of charge. For development purposes t
To use the connector, you must select a suitable API package via the [SRF API Developer website](https://developer.srgssr.ch/api-catalog/srf-weather) and generate a "bearer token".
This is described in the following instructions: [SRF instruction](https://developer.srgssr.ch/getting-started/easy-description-get-accesstoken)

After a Bearer Token is available, you can store it in the Connector project in the variable "srfWeatherConnector.Token"(under Config-->variables.yaml).
After a Bearer Token is available, you can store it in your project in the variables.yaml as the variable "srfWeatherConnector.Token" (as you can see in the Demo).
1. Register an account on [developer.srgssr.ch/](https://developer.srgssr.ch/).
2. Once logged in, click Apps on the top right and add a new app with the "+ ADD APP" button.
3. After the app is created, you will receive a Consumer Key and Consumer Secret with which you can generate the Bearer Token.
4. Store the API-Key/Token in your variables.yaml under `Variables.SrfWeatherConnector.Token`

```
@variables.yaml@
```
```
Original file line number Diff line number Diff line change
@@ -1,38 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">



<wb-module deploy-name="srf-weather-connector-webTest">



<wb-resource deploy-path="/" source-path="/webContent" tag="defaultRootSource"/>



<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>



<wb-resource deploy-path="/WEB-INF/classes" source-path="/src_hd"/>



<wb-resource deploy-path="/WEB-INF/classes" source-path="/src_wsproc"/>



<wb-resource deploy-path="/WEB-INF/classes" source-path="/src_dataClasses"/>



<property name="java-output-path" value="/srf-weather-connector-webTest/target/classes"/>
<property name="context-root" value="srf-weather-connector-webTest"/>



</wb-module>



</project-modules>
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId"
project-version="1.5.0">
<wb-module deploy-name="srf-weather-connector-webTest">
<wb-resource deploy-path="/" source-path="/webContent"
tag="defaultRootSource" />
<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src" />
<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src_hd" />
<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src_wsproc" />
<wb-resource deploy-path="/WEB-INF/classes"
source-path="/src_dataClasses" />
<property name="java-output-path"
value="/srf-weather-connector-webTest/target/classes" />
<property name="context-root"
value="srf-weather-connector-webTest" />
</wb-module>
</project-modules>

0 comments on commit 2238cb3

Please sign in to comment.