Fix for release
This commit is contained in:
parent
e7706744a9
commit
ba8f072d23
7 changed files with 17 additions and 16 deletions
|
@ -5,9 +5,9 @@ defmodule Ui.MessageBot do
|
|||
|
||||
def client do
|
||||
middleware = [
|
||||
{Tesla.Middleware.BaseUrl, base_url()},
|
||||
{Tesla.Middleware.BaseUrl, matrix_ip()},
|
||||
Tesla.Middleware.JSON,
|
||||
{Tesla.Middleware.Headers, [{"Authorization", "Bearer " <> token()}]}
|
||||
{Tesla.Middleware.Headers, [{"Host", matrix_host()}, {"Authorization", "Bearer " <> token()}]}
|
||||
]
|
||||
|
||||
Tesla.client(middleware)
|
||||
|
@ -17,8 +17,12 @@ defmodule Ui.MessageBot do
|
|||
Application.fetch_env!(:ui, :matrix_token)
|
||||
end
|
||||
|
||||
def base_url do
|
||||
Application.fetch_env!(:ui, :matrix_url)
|
||||
def matrix_ip do
|
||||
Application.fetch_env!(:ui, :matrix_ip)
|
||||
end
|
||||
|
||||
def matrix_host do
|
||||
Application.fetch_env!(:ui, :matrix_host)
|
||||
end
|
||||
|
||||
def room do
|
||||
|
|
|
@ -21,8 +21,7 @@ defmodule UiWeb.MorseLive do
|
|||
spawn(fn -> Ui.MessageBot.message("#{ip} pressed the button!") end)
|
||||
end
|
||||
|
||||
spawn(fn -> Ui.MessageBot.message("#{ip} pressed the button!") end)
|
||||
#Morse.Server.toggle_morse()
|
||||
Morse.Server.toggle_morse()
|
||||
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<a href="http://www.geochecker.com/index.php?code=e2ec486eecb6edc040f70ff05adcd463&action=check&wp=47433743363432&name=4573726f6d">en: check your coordinate on GeoChecker.com nl: controleer je coördinaat op GeoChecker.</a>
|
||||
<a href="http://www.geochecker.com/index.php?code=de602fd6ce063e4acdfd69dacd1f081e&action=check&wp=47433743363432&name=4573726f6d">en: check your coordinate on GeoChecker.com nl: controleer je coördinaat op GeoChecker.</a>
|
||||
<br>
|
||||
<br>
|
||||
<button phx-click="toggle_hint" id="hintButton">Click here for a hint!</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue