-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ddc5cb
commit a4794be
Showing
4 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
meson _build --prefix=/usr | ||
cd _build/ | ||
sudo ninja install | ||
sudo ninja -C _build install | ||
com.github.subhadeepjasu.pebbles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* | ||
* Authored by: Subhadeep Jasu <[email protected]> | ||
|
@@ -45,7 +45,7 @@ namespace Pebbles { | |
}; | ||
|
||
private int currencyCount = 12; | ||
public double[] muliplier_info; | ||
public double[] muliplier_info; | ||
|
||
public signal void currency_updated (double[] currency_multipliers); | ||
public signal void update_failed (); | ||
|
@@ -94,7 +94,7 @@ namespace Pebbles { | |
public bool request_multiplier (string coin_iso_a, string coin_iso_b, int index) { | ||
var settings = Settings.get_default (); | ||
var api_key = settings.forex_api_key; | ||
var uri = """https://free.currencyconverterapi.com/api/v6/convert?q=%s_%s&compact=y&apiKey=%s""".printf(coin_iso_a, coin_iso_b, api_key); | ||
var uri = """https://free.currconv.com/api/v7/convert?q=%s_%s&compact=y&apiKey=%s""".printf(coin_iso_a, coin_iso_b, api_key); | ||
var session = new Soup.Session (); | ||
var message = new Soup.Message ("GET", uri); | ||
double avg = 0.0; | ||
|