switch mp3 to tts, add genserver to app supervisor tree that periodically checks for newly connected devices and plays their associated tts message

This commit is contained in:
2024-07-17 18:20:05 -04:00
parent 8668405143
commit a085aee5c8
18 changed files with 101 additions and 200 deletions

View File

@@ -3,6 +3,6 @@ defmodule HereIAmWeb.PageControllerTest do
test "GET /", %{conn: conn} do
conn = get(conn, ~p"/")
assert html_response(conn, 200) =~ "Peace of mind from prototype to production"
assert html_response(conn, 200) =~ "This site allows you to set a message to play when your device connects to the network"
end
end

View File

@@ -4,9 +4,9 @@ defmodule HereIAmWeb.DeviceLiveTest do
import Phoenix.LiveViewTest
import HereIAm.DevicesFixtures
@create_attrs %{ip_address: "some ip_address", audio: "some audio"}
@update_attrs %{ip_address: "some updated ip_address", audio: "some updated audio"}
@invalid_attrs %{ip_address: nil, audio: nil}
@create_attrs %{ip_address: "some ip_address", tts: "some tts"}
@update_attrs %{ip_address: "some updated ip_address", tts: "some updated tts"}
@invalid_attrs %{ip_address: nil, tts: nil}
defp create_device(_) do
device = device_fixture()