Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

update urls

roryclear7ec4313a35ca
diff --git a/android/clearcam/app/src/main/java/com/rors/clearcam/HomeScreen.kt b/android/clearcam/app/src/main/java/com/rors/clearcam/HomeScreen.kt
index 4724e24..b819d2c 100644
--- a/android/clearcam/app/src/main/java/com/rors/clearcam/HomeScreen.kt
+++ b/android/clearcam/app/src/main/java/com/rors/clearcam/HomeScreen.kt
@@ -169,7 +169,7 @@ suspend fun deleteVideoFromBackend(userId: String, filename: String) {
try {
val backendFilename = filename
val encodedName = URLEncoder.encode(backendFilename, "UTF-8")
- val url = URL("https://rors.ai/video?session_token=$userId&name=$encodedName")
+ val url = URL("https://clearcam.org/video?session_token=$userId&name=$encodedName")
val connection = url.openConnection() as HttpURLConnection
connection.apply {
@@ -238,7 +238,7 @@ fun HomeScreen(userId: String) {
coroutineScope.launch {
try {
withContext(Dispatchers.IO) {
- val url = URL("https://rors.ai/ping")
+ val url = URL("https://clearcam.org/ping")
val connection = url.openConnection() as HttpURLConnection
connection.apply {
requestMethod = "GET"
@@ -1128,7 +1128,7 @@ fun CameraCard(
try {
val success = withContext(Dispatchers.IO) {
try {
- val url = URL("https://rors.ai/toggle_alerts")
+ val url = URL("https://clearcam.org/toggle_alerts")
val connection = url.openConnection() as HttpURLConnection
connection.apply {
requestMethod = "POST"
diff --git a/android/clearcam/app/src/main/java/com/rors/clearcam/MainActivity.kt b/android/clearcam/app/src/main/java/com/rors/clearcam/MainActivity.kt
index 58fd930..0f93ac0 100644
--- a/android/clearcam/app/src/main/java/com/rors/clearcam/MainActivity.kt
+++ b/android/clearcam/app/src/main/java/com/rors/clearcam/MainActivity.kt
@@ -192,7 +192,7 @@ fun LoginScreen(onLoginSuccess: (String) -> Unit) {
text = "Help",
color = MaterialTheme.colorScheme.primary,
modifier = Modifier.clickable {
- val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://roryclear.github.io/clearcam/#how-to-sign-up-on-android"))
+ val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://clearcam.org"))
context.startActivity(intent)
}
)
@@ -225,7 +225,7 @@ object PrefsHelper {
suspend fun validateUser(userId: String): Boolean {
return withContext(Dispatchers.IO) {
try {
- val url = URL("https://rors.ai/validate_user?session_token=$userId")
+ val url = URL("https://clearcam.org/validate_user?session_token=$userId")
val connection = url.openConnection() as HttpURLConnection
connection.requestMethod = "GET"
val responseCode = connection.responseCode
diff --git a/android/clearcam/app/src/main/java/com/rors/clearcam/SettingsScreen.kt b/android/clearcam/app/src/main/java/com/rors/clearcam/SettingsScreen.kt
index 6864774..9228204 100644
--- a/android/clearcam/app/src/main/java/com/rors/clearcam/SettingsScreen.kt
+++ b/android/clearcam/app/src/main/java/com/rors/clearcam/SettingsScreen.kt
@@ -286,7 +286,7 @@ private fun requestNotificationPermissionAndRegister(
val token = task.result
CoroutineScope(Dispatchers.IO).launch {
try {
- val url = URL("https://rors.ai/add_device")
+ val url = URL("https://clearcam.org/add_device")
val connection = url.openConnection() as HttpURLConnection
connection.apply {
requestMethod = "POST"
diff --git a/android/clearcam/app/src/main/java/com/rors/clearcam/VideoHelper.kt b/android/clearcam/app/src/main/java/com/rors/clearcam/VideoHelper.kt
index e4f34dc..b0b1150 100644
--- a/android/clearcam/app/src/main/java/com/rors/clearcam/VideoHelper.kt
+++ b/android/clearcam/app/src/main/java/com/rors/clearcam/VideoHelper.kt
@@ -188,7 +188,7 @@ suspend fun fetchLiveStreamUrl(userId: String, cameraName: String): String? {
return withContext(Dispatchers.IO) {
try {
val encodedName = URLEncoder.encode(cameraName, "UTF-8")
- val url = URL("https://rors.ai/get_stream_download_link?session_token=$userId&name=$encodedName")
+ val url = URL("https://clearcam.org/get_stream_download_link?session_token=$userId&name=$encodedName")
val connection = url.openConnection() as HttpURLConnection
connection.apply {
@@ -217,7 +217,7 @@ suspend fun deleteStreamLink(userId: String, cameraName: String) {
withContext(Dispatchers.IO) {
try {
val encodedName = URLEncoder.encode(cameraName, "UTF-8")
- val url = URL("https://rors.ai/delete_stream_download_link?session_token=$userId&name=$encodedName")
+ val url = URL("https://clearcam.org/delete_stream_download_link?session_token=$userId&name=$encodedName")
val connection = url.openConnection() as HttpURLConnection
connection.apply {
@@ -235,7 +235,7 @@ suspend fun deleteStreamLink(userId: String, cameraName: String) {
suspend fun fetchCameraJson(userId: String): JSONObject? = withContext(Dispatchers.IO) {
try {
- val url = URL("https://rors.ai/get_live_devicesv2?session_token=$userId")
+ val url = URL("https://clearcam.org/get_live_devicesv2?session_token=$userId")
val connection = url.openConnection() as HttpURLConnection
connection.requestMethod = "GET"
@@ -255,7 +255,7 @@ suspend fun fetchEventVideos(
newestCreationTime: Long = 0
): List<EventVideo> = withContext(Dispatchers.IO) {
try {
- val url = URL("https://rors.ai/events?session_token=$userId&newest_creation_time=$newestCreationTime")
+ val url = URL("https://clearcam.org/events?session_token=$userId&newest_creation_time=$newestCreationTime")
val connection = url.openConnection() as HttpURLConnection
connection.apply {
requestMethod = "GET"