Contains python control script, Android app code, schematics, and an installer script to automate installation on the Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
487 B

  1. package com.example.garagedoorcontroller
  2. import androidx.appcompat.app.AppCompatActivity
  3. import android.os.Bundle
  4. import android.webkit.WebView
  5. class CheckSensor : AppCompatActivity() {
  6. override fun onCreate(savedInstanceState: Bundle?) {
  7. super.onCreate(savedInstanceState)
  8. setContentView(R.layout.activity_check_sensor)
  9. val myWebView = WebView(this)
  10. setContentView(myWebView)
  11. myWebView.loadUrl("http://70.123.32.254:1234/sensor")
  12. }
  13. }